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 Input and Output Primitives |
---|
10 | |
---|
11 | @section Pipes |
---|
12 | |
---|
13 | @subsection Create an Inter-Process Channel |
---|
14 | |
---|
15 | @example |
---|
16 | pipe(), Function, Unimplemented |
---|
17 | @end example |
---|
18 | |
---|
19 | @section File Descriptor Manipulation |
---|
20 | |
---|
21 | @subsection Duplicate an Open File Descriptor |
---|
22 | |
---|
23 | @example |
---|
24 | dup(), Function, Unimplemented |
---|
25 | dup2(), Function, Unimplemented |
---|
26 | @end example |
---|
27 | |
---|
28 | @section File Descriptor Deassignment |
---|
29 | |
---|
30 | @subsection Close a File |
---|
31 | |
---|
32 | @example |
---|
33 | close(), Function, Partial Implementation |
---|
34 | @end example |
---|
35 | |
---|
36 | @section Input and Output |
---|
37 | |
---|
38 | @subsection Read from a File |
---|
39 | |
---|
40 | @example |
---|
41 | read(), Function, Partial Implementation |
---|
42 | @end example |
---|
43 | |
---|
44 | @subsection Write to a File |
---|
45 | |
---|
46 | @example |
---|
47 | write(), Function, Partial Implementation |
---|
48 | @end example |
---|
49 | |
---|
50 | @section Control Operations on Files |
---|
51 | |
---|
52 | @subsection Data Definitions for File Control Operations |
---|
53 | |
---|
54 | @subsection File Control |
---|
55 | |
---|
56 | @example |
---|
57 | struct flock, Type, Unimplemented |
---|
58 | fcntl(), Function, Unimplemented |
---|
59 | F_DUPFD, Constant, Implemented |
---|
60 | F_GETFD, Constant, Implemented |
---|
61 | F_GETLK, Constant, Implemented |
---|
62 | F_SETFD, Constant, Implemented |
---|
63 | F_GETFL, Constant, Implemented |
---|
64 | F_SETFL, Constant, Implemented |
---|
65 | F_SETLK, Constant, Implemented |
---|
66 | F_SETLKW, Constant, Implemented |
---|
67 | FD_CLOEXEC, Constant, Implemented |
---|
68 | F_RDLCK, Constant, Implemented |
---|
69 | F_UNLCK, Constant, Implemented |
---|
70 | F_WRLCK, Constant, Implemented |
---|
71 | O_ACCMODE, Constant, Implemented |
---|
72 | @end example |
---|
73 | |
---|
74 | NOTE: A number of constants are used by both @code{open} and @code{fcntl}. |
---|
75 | @code{O_CREAT}, @code{O_EXCL}, @code{O_NOCTTY}, @code{O_TRUNC}, |
---|
76 | @code{O_APPEND}, @code{O_DSYNC}, @code{O_NONBLOCK}, @code{O_RSYNC}, |
---|
77 | @code{O_SYNC}, @code{O_RDONLY}, @code{O_RDWR}, and @code{O_WRONLY} |
---|
78 | are also included in another section. @xref{Open a File}. |
---|
79 | |
---|
80 | @subsection Reposition Read/Write File Offset |
---|
81 | |
---|
82 | @example |
---|
83 | lseek(), Function, Partial Implementation |
---|
84 | SEEK_SET, Constant, Implemented |
---|
85 | SEEK_CUR, Constant, Implemented |
---|
86 | SEEK_END, Constant, Implemented |
---|
87 | @end example |
---|
88 | |
---|
89 | @section File Synchronization |
---|
90 | |
---|
91 | @subsection Synchronize the State of a File |
---|
92 | |
---|
93 | @example |
---|
94 | fsync(), Function, Unimplemented |
---|
95 | @end example |
---|
96 | |
---|
97 | @subsection Synchronize the Data of a File |
---|
98 | |
---|
99 | @example |
---|
100 | fdatasync(), Function, Unimplemented |
---|
101 | @end example |
---|
102 | |
---|
103 | @section Asynchronous Input and Output |
---|
104 | |
---|
105 | @subsection Data Definitions for Asynchronous Input and Output |
---|
106 | |
---|
107 | @subsubsection Asynchronous I/O Control Block |
---|
108 | |
---|
109 | @example |
---|
110 | struct aiocb, Type, Untested Implementation |
---|
111 | @end example |
---|
112 | |
---|
113 | @subsubsection Asynchronous I/O Manifest Constants |
---|
114 | |
---|
115 | @example |
---|
116 | AIO_CANCELED, Constant, Implemented |
---|
117 | AIO_NOTCANCELED, Constant, Implemented |
---|
118 | AIO_ALLDONE, Constant, Implemented |
---|
119 | LIO_WAIT, Constant, Implemented |
---|
120 | LIO_NOWAIT, Constant, Implemented |
---|
121 | LIO_READ, Constant, Implemented |
---|
122 | LIO_WRITE, Constant, Implemented |
---|
123 | LIO_NOP, Constant, Implemented |
---|
124 | @end example |
---|
125 | |
---|
126 | @subsection Asynchronous Read |
---|
127 | |
---|
128 | @example |
---|
129 | aio_read(), Function, Dummy Implementation |
---|
130 | @end example |
---|
131 | |
---|
132 | @subsection Asynchronous Write |
---|
133 | |
---|
134 | @example |
---|
135 | aio_write(), Function, Dummy Implementation |
---|
136 | @end example |
---|
137 | |
---|
138 | @subsection List Directed I/O |
---|
139 | |
---|
140 | @example |
---|
141 | lio_listio(), Function, Dummy Implementation |
---|
142 | @end example |
---|
143 | |
---|
144 | @subsection Retrieve Error Status of Asynchronous I/O Operation |
---|
145 | |
---|
146 | @example |
---|
147 | aio_error(), Function, Dummy Implementation |
---|
148 | @end example |
---|
149 | |
---|
150 | @subsection Retrieve Return Status of Asynchronous I/O Operation |
---|
151 | |
---|
152 | @example |
---|
153 | aio_return(), Function, Dummy Implementation |
---|
154 | @end example |
---|
155 | |
---|
156 | @subsection Cancel Asynchronous I/O Request |
---|
157 | |
---|
158 | @example |
---|
159 | aio_cancel(), Function, Dummy Implementation |
---|
160 | @end example |
---|
161 | |
---|
162 | @subsection Wait for Asynchronous I/O Request |
---|
163 | |
---|
164 | @example |
---|
165 | aio_suspend(), Function, Dummy Implementation |
---|
166 | @end example |
---|
167 | |
---|
168 | @subsection Asynchronous File Synchronization |
---|
169 | |
---|
170 | @example |
---|
171 | aio_fsync(), Function, Dummy Implementation |
---|
172 | @end example |
---|
173 | |
---|