1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-1998. |
---|
3 | @c On-Line Applications Research Corporation (OAR). |
---|
4 | @c All rights reserved. |
---|
5 | @c |
---|
6 | @c $Id$ |
---|
7 | @c |
---|
8 | |
---|
9 | @chapter Files and Directories |
---|
10 | |
---|
11 | @section Directories |
---|
12 | |
---|
13 | @subsection Format of Directory Entries |
---|
14 | |
---|
15 | @subsection Directory Operations |
---|
16 | |
---|
17 | @example |
---|
18 | struct dirent, Type, Unimplemented |
---|
19 | opendir(), Function, Untested Implementation, assumes directory services |
---|
20 | readdir(), Function, Untested Implementation, assumes directory services |
---|
21 | readdir_r(), Function, Untested Implementation, assumes directory services |
---|
22 | rewinddir(), Function, Untested Implementation, assumes directory services |
---|
23 | closedir(), Function, Untested Implementation, assumes directory services |
---|
24 | @end example |
---|
25 | |
---|
26 | @section Working Directory |
---|
27 | |
---|
28 | @subsection Change Current Working Directory |
---|
29 | |
---|
30 | @example |
---|
31 | chdir(), Function, Unimplemented |
---|
32 | @end example |
---|
33 | |
---|
34 | @subsection Get Working Directory Pathname |
---|
35 | |
---|
36 | @example |
---|
37 | getcwd(), Function, Untested Implementation, assumes directory services |
---|
38 | @end example |
---|
39 | |
---|
40 | @section General File Creation |
---|
41 | |
---|
42 | @subsection Open a File |
---|
43 | |
---|
44 | @example |
---|
45 | open(), Function, Implemented, requires rework for directory services |
---|
46 | O_RDONLY, Constant, |
---|
47 | O_WRONLY, Constant, |
---|
48 | O_RDWR, Constant, |
---|
49 | O_APPEND, Constant, |
---|
50 | O_CREAT, Constant, |
---|
51 | O_DSYNC, Constant, |
---|
52 | O_EXCL, Constant, |
---|
53 | O_NOCTTY, Constant, |
---|
54 | O_NONBLOCK, Constant, |
---|
55 | O_RSYNC, Constant, |
---|
56 | O_SYNC, Constant, |
---|
57 | O_TRUNC, Constant, |
---|
58 | @end example |
---|
59 | |
---|
60 | @subsection Create a New File or Rewrite an Existing One |
---|
61 | |
---|
62 | @example |
---|
63 | creat(), Function, Untested Implementation |
---|
64 | @end example |
---|
65 | |
---|
66 | @subsection Set File Creation Mask |
---|
67 | |
---|
68 | @example |
---|
69 | umask(), Function, Unimplemented |
---|
70 | @end example |
---|
71 | |
---|
72 | @subsection Link to a File |
---|
73 | |
---|
74 | @example |
---|
75 | link(), Function, Dummy Implementation |
---|
76 | @end example |
---|
77 | |
---|
78 | @section Special File Creation |
---|
79 | |
---|
80 | @subsection Make a Directory |
---|
81 | |
---|
82 | @example |
---|
83 | mkdir(), Function, Unimplemented, assumes directory services |
---|
84 | @end example |
---|
85 | |
---|
86 | @subsection Make a FIFO Special File |
---|
87 | |
---|
88 | @example |
---|
89 | mkfifo(), Function, Unimplemented |
---|
90 | @end example |
---|
91 | |
---|
92 | @section File Removal |
---|
93 | |
---|
94 | @subsection Remove Directory Entries |
---|
95 | |
---|
96 | @example |
---|
97 | unlink(), Function, Dummy Implementation |
---|
98 | @end example |
---|
99 | |
---|
100 | @subsection Remove a Directory |
---|
101 | |
---|
102 | @example |
---|
103 | rmdir(), Function, Unimplemented |
---|
104 | @end example |
---|
105 | |
---|
106 | @subsection Rename a File |
---|
107 | |
---|
108 | @example |
---|
109 | rename(), Function, Untested Implementation, assumes link/unlink |
---|
110 | @end example |
---|
111 | |
---|
112 | @section File Characteristics |
---|
113 | |
---|
114 | @subsection File Characteristics Header and Data Structure |
---|
115 | |
---|
116 | @example |
---|
117 | struct stat, Type, Untested Implementation |
---|
118 | @end example |
---|
119 | |
---|
120 | @subsubsection <sys/stat.h> File Types |
---|
121 | |
---|
122 | @example |
---|
123 | S_ISDIR(), Function, |
---|
124 | S_ISCHR(), Function, |
---|
125 | S_ISBLK(), Function, |
---|
126 | S_ISREG(), Function, |
---|
127 | S_ISFIFO(), Function, |
---|
128 | S_TYPEISMQ(), Function, |
---|
129 | S_TYPEISSEM(), Function, |
---|
130 | S_TYPEISSHM(), Function, |
---|
131 | @end example |
---|
132 | |
---|
133 | @subsubsection <sys/stat.h> File Modes |
---|
134 | |
---|
135 | @example |
---|
136 | S_IRWXU, Constant, |
---|
137 | S_IRUSR, Constant, |
---|
138 | S_IWUSR, Constant, |
---|
139 | S_IXUSR, Constant, |
---|
140 | S_IRWXG, Constant, |
---|
141 | S_IRGRP, Constant, |
---|
142 | S_IWGRP, Constant, |
---|
143 | S_IXGRP, Constant, |
---|
144 | S_IRWXO, Constant, |
---|
145 | S_IROTH, Constant, |
---|
146 | S_IWOTH, Constant, |
---|
147 | S_IXOTH, Constant, |
---|
148 | S_ISUID, Constant, |
---|
149 | S_ISGID, Constant, |
---|
150 | @end example |
---|
151 | |
---|
152 | @subsubsection <sys/stat.h> Time Entries |
---|
153 | |
---|
154 | @subsection Get File Status |
---|
155 | |
---|
156 | @example |
---|
157 | stat(), Function, Partial Implementation |
---|
158 | fstat(), Function, Partial Implementation |
---|
159 | @end example |
---|
160 | |
---|
161 | @subsection Check File Accessibility |
---|
162 | |
---|
163 | @example |
---|
164 | access(), Function, Unimplemented |
---|
165 | @end example |
---|
166 | |
---|
167 | @subsection Change File Modes |
---|
168 | |
---|
169 | @example |
---|
170 | chmod(), Function, Unimplemented |
---|
171 | fchmod(), Function, Unimplemented |
---|
172 | @end example |
---|
173 | |
---|
174 | @subsection Change Owner and Group of a File |
---|
175 | |
---|
176 | @example |
---|
177 | chown(), Function, Unimplemented |
---|
178 | @end example |
---|
179 | |
---|
180 | @subsection Set File Access and Modification Times |
---|
181 | |
---|
182 | @example |
---|
183 | struct utimbuf, Type, Unimplemented |
---|
184 | utime(), Function, Unimplemented |
---|
185 | @end example |
---|
186 | |
---|
187 | @subsection Truncate a File to a Specified Length |
---|
188 | |
---|
189 | @example |
---|
190 | ftruncate(), Function, Unimplemented |
---|
191 | @end example |
---|
192 | |
---|
193 | @section Configurable Pathname Variable |
---|
194 | |
---|
195 | @subsection Get Configurable Pathname Variables |
---|
196 | |
---|
197 | @example |
---|
198 | pathconf(), Function, Unimplemented |
---|
199 | fpathconf(), Function, Unimplemented |
---|
200 | _PC_LINK_MAX, Constant, |
---|
201 | _PC_MAX_CANON, Constant, |
---|
202 | _PC_MAX_INPUT, Constant, |
---|
203 | _PC_MAX_INPUT, Constant, |
---|
204 | _PC_NAME_MAX, Constant, |
---|
205 | _PC_PATH_MAX, Constant, |
---|
206 | _PC_PIPE_BUF, Constant, |
---|
207 | _PC_ASYNC_IO, Constant, |
---|
208 | _PC_CHOWN_RESTRICTED, Constant, |
---|
209 | _PC_NO_TRUNC, Constant, |
---|
210 | _PC_PRIO_IO, Constant, |
---|
211 | _PC_SYNC_IO, Constant, |
---|
212 | _PC_VDISABLE, Constant, |
---|
213 | @end example |
---|
214 | |
---|