source: rtems/doc/posix1003.1/ch05.t @ 3664547d

4.104.114.84.95
Last change on this file since 3664547d was 6449498, checked in by Joel Sherrill <joel.sherrill@…>, on 01/17/02 at 21:47:47

2001-01-17 Joel Sherrill <joel@…>

  • SUPPORT, LICENSE: New files.
  • Numerous files touched as part of merging the 4.5 branch onto the mainline development trunk and ensuring that the script that cuts snapshots and releases works on the documentation.
  • Property mode set to 100644
File size: 4.6 KB
Line 
1@c
2@c  COPYRIGHT (c) 1988-2002.
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
18struct dirent, Type, Implemented
19opendir(), Function, Implemented
20readdir(), Function, Implemented
21readdir_r(), Function, Implemented
22rewinddir(), Function, Implemented
23closedir(), Function, Implemented
24@end example
25
26@section Working Directory
27
28@subsection Change Current Working Directory
29
30@example
31chdir(), Function, Implemented
32@end example
33
34@subsection Get Working Directory Pathname
35
36@example
37getcwd(), Function, Implemented
38@end example
39
40@section General File Creation
41
42@subsection Open a File
43
44@example
45open(), Function, Implemented
46O_RDONLY, Constant, Implemented
47O_WRONLY, Constant, Implemented
48O_RDWR, Constant, Implemented
49O_APPEND, Constant, Implemented
50O_CREAT, Constant, Implemented
51O_DSYNC, Constant, Unimplemented
52O_EXCL, Constant, Implemented
53O_NOCTTY, Constant, Implemented
54O_NONBLOCK, Constant, Implemented
55O_RSYNC, Constant, Unimplemented
56O_SYNC, Constant, Implemented
57O_TRUNC, Constant, Implemented
58@end example
59
60NOTE: In the newlib fcntl.h, O_SYNC is defined only if _POSIX_SOURCE is
61not defined.  This seems wrong.
62
63@subsection Create a New File or Rewrite an Existing One
64
65@example
66creat(), Function, Implemented
67@end example
68
69@subsection Set File Creation Mask
70
71@example
72umask(), Function, Implemented
73@end example
74
75@subsection Link to a File
76
77@example
78link(), Function, Implemented
79@end example
80
81@section Special File Creation
82
83@subsection Make a Directory
84
85@example
86mkdir(), Function, Implemented
87@end example
88
89@subsection Make a FIFO Special File
90
91@example
92mkfifo(), Function, Untested Implementation
93@end example
94
95NOTE: mkfifo() is implemented but no filesystem supports FIFOs.
96
97@section File Removal
98
99@subsection Remove Directory Entries
100
101@example
102unlink(), Function, Implemented
103@end example
104
105@subsection Remove a Directory
106
107@example
108rmdir(), Function, Implemented
109@end example
110
111@subsection Rename a File
112
113@example
114rename(), Function, Implemented
115@end example
116
117@section File Characteristics
118
119@subsection File Characteristics Header and Data Structure
120
121@example
122struct stat, Type, Implemented
123@end example
124
125@subsubsection <sys/stat.h> File Types
126
127@example
128S_ISBLK(), Function, Implemented
129S_ISCHR(), Function, Implemented
130S_ISDIR(), Function, Implemented
131S_ISFIFO(), Function, Implemented
132S_ISREG(), Function, Implemented
133S_TYPEISMQ(), Function, Unimplemented
134S_TYPEISSEM(), Function, Unimplemented
135S_TYPEISSHM(), Function, Unimplemented
136@end example
137
138@subsubsection <sys/stat.h> File Modes
139
140@example
141S_IRWXU, Constant, Implemented
142S_IRUSR, Constant, Implemented
143S_IWUSR, Constant, Implemented
144S_IXUSR, Constant, Implemented
145S_IRWXG, Constant, Implemented
146S_IRGRP, Constant, Implemented
147S_IWGRP, Constant, Implemented
148S_IXGRP, Constant, Implemented
149S_IRWXO, Constant, Implemented
150S_IROTH, Constant, Implemented
151S_IWOTH, Constant, Implemented
152S_IXOTH, Constant, Implemented
153S_ISUID, Constant, Implemented
154S_ISGID, Constant, Implemented
155@end example
156
157@subsubsection <sys/stat.h> Time Entries
158
159@subsection Get File Status
160
161@example
162stat(), Function, Implemented
163fstat(), Function, Implemented
164@end example
165
166@subsection Check File Accessibility
167
168@example
169access(), Function, Implemented
170@end example
171
172@subsection Change File Modes
173
174@example
175chmod(), Function, Implemented
176fchmod(), Function, Implemented
177@end example
178
179@subsection Change Owner and Group of a File
180
181@example
182chown(), Function, Implemented
183@end example
184
185@subsection Set File Access and Modification Times
186
187@example
188struct utimbuf, Type, Implemented
189utime(), Function, Implemented
190@end example
191
192@subsection Truncate a File to a Specified Length
193
194@example
195ftruncate(), Function, Implemented
196@end example
197
198@section Configurable Pathname Variable
199
200@subsection Get Configurable Pathname Variables
201
202@example
203pathconf(), Function, Implemented
204fpathconf(), Function, Implemented
205_PC_LINK_MAX, Constant, Implemented
206_PC_MAX_CANON, Constant, Implemented
207_PC_MAX_INPUT, Constant, Implemented
208_PC_MAX_INPUT, Constant, Implemented
209_PC_NAME_MAX, Constant, Implemented
210_PC_PATH_MAX, Constant, Implemented
211_PC_PIPE_BUF, Constant, Implemented
212_PC_ASYNC_IO, Constant, Implemented
213_PC_CHOWN_RESTRICTED, Constant, Implemented
214_PC_NO_TRUNC, Constant, Implemented
215_PC_PRIO_IO, Constant, Implemented
216_PC_SYNC_IO, Constant, Implemented
217_PC_VDISABLE, Constant, Implemented
218@end example
219
220NOTE: The newlib unistd.h and sys/unistd.h are installed and the
221include search patch is used to get the right one.  There are
222conflicts between the newlib unistd.h and RTEMS' version.
Note: See TracBrowser for help on using the repository browser.