@@ -10006,36 +10006,41 @@
10006
10006
products.
10007
10007
}
10008
10008
10009
- \rSec 2[fs.definitions]{Terms and definitions }
10009
+ \rSec 2[fs.definitions]{Terminology }
10010
10010
10011
- \definition {absolute path}{fs.def.absolute.path}
10012
- A path that unambiguously
10011
+ \pnum
10012
+ An \defn {absolute path} is a path that unambiguously
10013
10013
identifies the location of a file without reference to an additional starting
10014
10014
location. The elements of a path that determine if it is absolute are
10015
10015
operating system dependent.
10016
10016
10017
- \definition {directory}{fs.def.directory}
10018
- A file within a file system that acts as a container of directory entries
10017
+ \pnum
10018
+ A \defn {directory} is
10019
+ a file within a file system that acts as a container of directory entries
10019
10020
that contain information about
10020
10021
other files, possibly including other directory files.
10021
10022
10022
- \definition {file}{fs.def.file}
10023
- An object within a file system that holds user or system data. Files can be written to, or read from, or both. A file
10023
+ \pnum
10024
+ A \defn {file} is
10025
+ an object within a file system that holds user or system data. Files can be written to, or read from, or both. A file
10024
10026
has certain attributes, including type. File types include regular files
10025
10027
and directories. Other types of files, such as symbolic links\iref {fs.def.symlink },
10026
10028
may be supported by the implementation.
10027
10029
10028
- \definition {file system}{fs.def.filesystem}
10029
- A collection of files and their attributes.
10030
+ \pnum
10031
+ A \defn {file system} is
10032
+ a collection of files and their attributes.
10030
10033
10031
- \definition {file system race}{fs.def.race}
10032
- The condition that occurs
10034
+ \pnum
10035
+ A \defn {file system race} is
10036
+ the condition that occurs
10033
10037
when multiple threads, processes, or computers interleave access and
10034
10038
modification of
10035
10039
the same object within a file system.
10036
10040
10037
- \definition {filename}{fs.def.filename}
10038
- The name of a file. Filenames \grammarterm {dot} and \grammarterm {dot-dot},
10041
+ \pnum
10042
+ A \defn {filename} is
10043
+ the name of a file. Filenames \grammarterm {dot} and \grammarterm {dot-dot},
10039
10044
consisting solely of one and two period characters respectively,
10040
10045
have special meaning.
10041
10046
The following characteristics of filenames are operating system dependent:
@@ -10050,30 +10055,32 @@
10050
10055
files, such as directories.
10051
10056
\end {itemize }
10052
10057
10053
- \definition {hard link}{fs.def.hardlink}
10054
- A link\iref {fs.def.link } to an existing file. Some
10058
+ \pnum
10059
+ A \defn {hard link} is
10060
+ a link\iref {fs.def.link } to an existing file. Some
10055
10061
file systems support multiple hard links to a file. If the last hard link to a
10056
10062
file is removed, the file itself is removed.
10057
10063
\begin {note } A hard link can be thought of as a shared-ownership smart
10058
10064
pointer to a file.\end {note }
10059
10065
10060
- \definition {link}{fs.def.link}
10061
- An object that associates a filename with a file. Several links can associate names with the same file.
10066
+ \pnum
10067
+ A \defn {link} is
10068
+ an object that associates a filename with a file. Several links can associate names with the same file.
10062
10069
10063
- \definition {native encoding}{fs.def.native.encode}
10064
- For narrow character strings, the operating system dependent current encoding
10065
- for pathnames\iref {fs.def.pathname }. For wide character strings, the implementation-defined execution
10070
+ \pnum
10071
+ The \defn {native encoding} of a narrow character string is
10072
+ the operating system dependent current encoding
10073
+ for pathnames\iref {fs.def.pathname }.
10074
+ The \defn {native encoding} for wide character strings is
10075
+ the implementation-defined execution
10066
10076
wide-character set encoding\iref {lex.charset }.
10067
10077
10068
- \definition {native pathname format}{fs.def.native}
10069
- The operating system dependent pathname format accepted by the host operating system.
10070
-
10071
- \definition {normal form}{fs.def.normal.form}
10072
- A path in normal form is said to be \term {normalized}.
10073
- The process of obtaining a normalized path
10074
- from a path that is not in normal form is called \term {normalization}.
10078
+ \pnum
10079
+ The \defn {native pathname format} is
10080
+ the operating system dependent pathname format accepted by the host operating system.
10075
10081
10076
- Normalization of a generic format pathname means:
10082
+ \pnum
10083
+ \defnx {Normalization}{normalization!path} of a generic format pathname means:
10077
10084
10078
10085
\begin {enumerate }
10079
10086
\item If the path is empty, stop.
@@ -10092,52 +10099,61 @@
10092
10099
\item If the path is empty, add a \grammarterm {dot}.
10093
10100
\end {enumerate }
10094
10101
10095
- \definition {operating system dependent behavior}{fs.def.osdep}
10096
- Behavior that is dependent upon the behavior
10102
+ The result of normalization is a path in \defn {normal form},
10103
+ which is said to be \term {normalized}.
10104
+
10105
+ \pnum
10106
+ \defnx {Operating system dependent behavior}{operating system dependent behavior} is
10107
+ behavior that is dependent upon the behavior
10097
10108
and characteristics of an operating system. See~\ref {fs.conform.os }.
10098
10109
10099
- \definition {parent directory}{fs.def.parent}
10100
- \defncontext {of a directory} the directory that both contains a
10110
+ \pnum
10111
+ The \defn {parent directory} of a directory is
10112
+ the directory that both contains a
10101
10113
directory entry for the given directory and is represented by the filename
10102
10114
\grammarterm {dot-dot} in the given directory.
10103
-
10104
- \definition {parent directory}{fs.def.parent.other}
10105
- \defncontext {of other types of files} a directory containing a directory
10115
+ The \defn {parent directory}
10116
+ of other types of files is a directory containing a directory
10106
10117
entry for the file under discussion.
10107
10118
10108
- \definition {path}{fs.def.path}
10109
- A sequence of elements that identify
10119
+ \pnum
10120
+ A \defn {path} is
10121
+ a sequence of elements that identify
10110
10122
the location of a file within a filesystem.
10111
10123
The elements are the
10112
10124
\grammarterm {root-name}\opt {},
10113
10125
\grammarterm {root-directory}\opt {},
10114
10126
and an optional sequence of filenames.
10115
10127
The maximum number of elements in the sequence is operating system dependent.
10116
10128
10117
- \definition {pathname}{fs.def.pathname}
10118
- A character string that represents the name of a path. Pathnames are
10129
+ \pnum
10130
+ A \defn {pathname} is
10131
+ a character string that represents the name of a path. Pathnames are
10119
10132
formatted according to the generic pathname format grammar\iref {fs.path.generic } or an
10120
10133
operating system dependent
10121
10134
native pathname format.
10122
10135
10123
- \definition {pathname resolution}{fs.def.pathres}
10124
- Pathname resolution is the operating system dependent mechanism for resolving
10136
+ \pnum
10137
+ \defnx {Pathname resolution}{pathname resolution}
10138
+ is the operating system dependent mechanism for resolving
10125
10139
a pathname to a particular file in a file hierarchy. There may be multiple
10126
10140
pathnames that resolve to the same file.
10127
10141
\begin {example } POSIX specifies the mechanism in section 4.11, Pathname resolution.
10128
10142
\end {example }
10129
10143
10130
- \definition {relative path}{fs.def.rel.path}
10131
- A path that is not absolute, and as such, only unambiguously
10144
+ \pnum
10145
+ A \defn {relative path} is
10146
+ a path that is not absolute, and as such, only unambiguously
10132
10147
identifies the location of a file when resolved\iref {fs.def.pathres } relative to
10133
10148
an implied starting location. The elements of a path that determine if it is
10134
10149
relative are operating system dependent.
10135
10150
\begin {note }
10136
10151
Pathnames `` .'' and `` ..'' are relative paths.
10137
10152
\end {note }
10138
10153
10139
- \definition {symbolic link}{fs.def.symlink}
10140
- A type of file with the
10154
+ \pnum
10155
+ A \defn {symbolic link} is
10156
+ a type of file with the
10141
10157
property that when the file is encountered during pathname resolution, a string
10142
10158
stored by the file is used to modify the pathname resolution.
10143
10159
\begin {note } Symbolic links are often called symlinks. A symbolic link can be thought of as a raw pointer to a file.
0 commit comments