10646
10646
10647
10647
\rSec 3[fs.path.generic]{Generic pathname format}
10648
10648
10649
+ \def\impldefrootname {\impldef {supported \grammarterm {root-name}{s} in addition to
10650
+ any operating system dependent \grammarterm {root-name}{s}}}
10651
+
10649
10652
\begin {ncbnf }
10650
10653
\nontermdef {pathname}\br
10651
10654
root-name root-directory\opt relative-path\opt\br
10655
10658
10656
10659
\begin {ncbnf }
10657
10660
\nontermdef {root-name}\br
10658
- \textnormal {An operating system dependent name identifying the
10659
- starting location for pathname resolution~(\ref {fs.def.pathres }).
10660
- If the operating system does not define at least one \grammarterm {root-name},
10661
- then the implementation defines a \grammarterm {root-name}.
10662
- Implementations are permitted to define additional \grammarterm {root-name}{s}.
10663
- \begin {note } Many operating systems define a name
10664
- beginning with two \grammarterm {directory-separator} characters
10665
- as a \grammarterm {root-name} that identifies
10666
- network or other resource locations.
10667
- Some operating systems
10668
- define a single letter followed by a colon
10669
- as a drive specifier -- a \grammarterm {root-name}
10670
- identifying a specific device such as a disk drive.
10671
- \end {note }
10672
- }
10661
+ \textnormal {operating system dependent sequences of characters}\br
10662
+ \textnormal {\impldefrootname {} sequences of characters}
10673
10663
\end {ncbnf }
10674
10664
10675
10665
\begin {ncbnf }
10687
10677
10688
10678
\begin {ncbnf }
10689
10679
\nontermdef {filename}\br
10690
- \textnormal {A non-empty sequence of characters other than \grammarterm {directory-separator} characters.
10691
- \begin {note }
10692
- Operating systems often place restrictions
10693
- on the characters that may be used in a \grammarterm {filename}.
10694
- For wide portability, users may wish to limit \grammarterm {filename}
10695
- characters to the POSIX Portable Filename Character Set: \\
10696
- \tcode {A B C D E F G H I J K L M N O P Q R S T U V W X Y Z} \\
10697
- \tcode {a b c d e f g h i j k l m n o p q r s t u v w x y z} \\
10698
- \tcode {0 1 2 3 4 5 6 7 8 9 . _ -}
10699
- \end {note }
10700
- }
10680
+ \textnormal {non-empty sequence of characters other than \grammarterm {directory-separator} characters}
10701
10681
\end {ncbnf }
10702
10682
10703
10683
\begin {ncbnf }
@@ -10710,14 +10690,25 @@
10710
10690
10711
10691
\begin {ncbnf }
10712
10692
\nontermdef {preferred-separator}\br
10713
- \textnormal {An operating system dependent directory separator character. May be a synonym for \grammarterm {slash}.}
10693
+ \textnormal {operating system dependent directory separator character\footnote { May be a synonym for \grammarterm {slash}.} }
10714
10694
\end {ncbnf }
10715
10695
10716
10696
\begin {ncbnf }
10717
10697
\nontermdef {slash}\br
10718
- \textnormal {The slash character ( \ tcode {/}). }
10698
+ \tcode {/}
10719
10699
\end {ncbnf }
10720
10700
10701
+ \pnum
10702
+ \begin {note }
10703
+ Operating systems often place restrictions
10704
+ on the characters that may be used in a \grammarterm {filename}.
10705
+ For wide portability, users may wish to limit \grammarterm {filename}
10706
+ characters to the POSIX Portable Filename Character Set: \\
10707
+ \tcode {A B C D E F G H I J K L M N O P Q R S T U V W X Y Z} \\
10708
+ \tcode {a b c d e f g h i j k l m n o p q r s t u v w x y z} \\
10709
+ \tcode {0 1 2 3 4 5 6 7 8 9 . _ -}
10710
+ \end {note }
10711
+
10721
10712
\pnum
10722
10713
Except in a \grammarterm {root-name},
10723
10714
multiple successive \grammarterm {directory-separator} characters are considered to
10730
10721
relative to \grammarterm {root-directory} is \impldef {meaning of \grammarterm {dot-dot} in \grammarterm {root-directory}}.
10731
10722
Specific filenames may have special meanings for a particular operating system.
10732
10723
10724
+ \pnum
10725
+ A \grammarterm {root-name} identifies the
10726
+ starting location for pathname resolution~(\ref {fs.def.pathres }).
10727
+ If there are no operating system dependent \grammarterm {root-name}{s},
10728
+ at least one \impldefrootname {} \grammarterm {root-name} is required.
10729
+ \begin {note } Many operating systems define a name
10730
+ beginning with two \grammarterm {directory-separator} characters
10731
+ as a \grammarterm {root-name} that identifies
10732
+ network or other resource locations.
10733
+ Some operating systems
10734
+ define a single letter followed by a colon
10735
+ as a drive specifier -- a \grammarterm {root-name}
10736
+ identifying a specific device such as a disk drive.
10737
+ \end {note }
10738
+
10733
10739
\pnum
10734
10740
If a \grammarterm {root-name} is otherwise ambiguous,
10735
10741
the possibility with the longest sequence of characters is chosen.
0 commit comments