source: rtems/doc/posix1003.1/ch05.t @ 7331714

4.104.114.84.95
Last change on this file since 7331714 was 7331714, checked in by Joel Sherrill <joel.sherrill@…>, on 03/18/98 at 18:15:01

Added Constants, Feature Flags, and Macros (included in Functions).
No status information was included.

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