3 .ds ;G \\*(;G\\f\\$1\\$3\\f\\$2
4 .if !
\a\\$4
\a\a .Af \\$2 \\$1 "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
7 .ie
\a\\$3
\a\a .ft \\$1
11 .Af "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
16 .aF 5 \\n(.f "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
19 .aF 5 1 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
22 .aF 1 5 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
24 .de EX \" start example
41 modecanon \- canonical file mode representation
45 int modei(int \fIexternal\fP);
46 int modex(int \fIinternal\fP);
49 POSIX threw out the file type bit macros and replaced them with
50 function-like macros that test file type.
51 This is bad in many ways, the worst of which is that it provides
52 no way for a user program to synthesize file types in the mode bits.
57 are examples of user programs that must convert between the internal mode
58 representation and a private external representation.
59 These routines provide a canonical external representation
60 with macros to access and synthesize the bits in the external
64 takes an external mode representation
66 and returns the equivalent internal representation.
69 takes an internal mode representation
71 and returns the equivalent external representation.
73 The traditional bit access macro (\f5S_\fP prefix changes to \f5X_\fP) are:
101 returns the type bits for