comparison packages/io/fileio/current/ChangeLog @ 115:6ed91473a1cd ecos-sw-2000-08-21

Merge from eCos master repository on 2000-08-21-22:40:54-BST
author jlarmour
date Fri, 25 Aug 2000 17:32:38 +0000
parents
children bd1a71e3e476
comparison
equal deleted inserted replaced
114:5ad2b71d525e 115:6ed91473a1cd
1 2000-08-18 Nick Garnett <nickg@cygnus.co.uk>
2
3 * include/fileio.h: Added CYG_FAPPEND flag for preservation in
4 file object flags.
5 Added prototype for cyg_timestamp().
6
7 * src/misc.cxx: Fixed bug in cyg_mtab_lookup() when dealing with
8 empty mount table entries.
9 Added cyg_timestamp() to provide timestamp support to client
10 filesystems.
11
12 2000-08-09 Jonathan Larmour <jlarmour@redhat.co.uk>
13
14 * src/misc.cxx: Don't define own strcmp() function (which had a bug
15 anyway). Use string.h.
16 * cdl/fileio.cdl: requires ISO C string functions
17
18 2000-08-01 Jonathan Larmour <jlarmour@redhat.co.uk>
19
20 * src/misc.cxx: Use correct initializer for mtab_extra
21
22 * src/fio.h (FILEIO_RETURN_VOID): Surround in CYG_MACRO_START to
23 prevent problems when used with one-line if.
24 (FILEIO_RETURN_VALUE): Likewise
25
26 * include/fileio.h: Make getinfo/setinfo take void *bufs, not char *
27 for easier casting (and more correct)
28
29 * tests/testfs.c: Likewise
30
31 * src/devfs.cxx: Likewise.
32 Also fix bug with Nick's change below that set non-blocking mode
33 in all cases.
34
35 2000-07-31 Nick Garnett <nickg@cygnus.co.uk>
36
37 * src/devfs.cxx (dev_open): Added support for O_NONBLOCK.
38
39 2000-07-27 Nick Garnett <nickg@cygnus.co.uk>
40
41 * tests/select.c: Wrapped include of pkgconf/io_serial.h in
42 #ifdef CYGPKG_IO_SERIAL.
43
44 2000-07-25 Jonathan Larmour <jlarmour@redhat.co.uk>
45
46 * tests/select.c (main): Wrap call to init_all_network_interfaces()
47 in #ifdef TEST_NET
48
49 2000-07-25 Nick Garnett <nickg@cygnus.co.uk>
50
51 * tests/select.c (main): Added call to
52 init_all_network_interfaces().
53
54 2000-07-21 Nick Garnett <nickg@cygnus.co.uk>
55
56 * include/fileio.h:
57 * src/file.cxx:
58 * src/devfs.cxx:
59 * tests/testfs.c:
60 Added support for link() API call. This was the only major file
61 operation omitted.
62
63 2000-07-20 Nick Garnett <nickg@cygnus.co.uk>
64
65 * include/fileio.h: Added some modes for fsync().
66
67 * src/file.cxx: Added access() function.
68
69 * src/io.cxx: Added fdatasync() and isatty().
70
71 * src/devfs.cxx: Added fsync() support.
72
73 * tests/fileio1.c: Added calls to access() to check (non-)existence
74 of files where appropriate.
75
76 2000-07-13 Nick Garnett <nickg@cygnus.co.uk>
77
78 * src/select.cxx (select): Fixed return value when timing out. Now
79 returns zero and no error, it used to return -1 and ETIMEDOUT.
80
81 * src/io.cxx: Fixed fsync() to match standard.
82
83 * src/devfs.cxx:
84 Added lseek() support - all devices are always at position
85 zero. Added [f]stat() support - currently just fills in the stat
86 buffer with some predefined values. When we have more
87 sophisticated devices this may need to be improved.
88
89 * tests/testfs.c (testfs_open): Added support for O_TRUNC open
90 flag.
91
92 * tests/stdio.c:
93 * cdl/fileio.cdl:
94 Added stdio.c to test C library IO integration. This does not test
95 the C library functionality, just that it works with the fileio
96 package in certain limited ways.
97
98 2000-06-30 Nick Garnett <nickg@cygnus.co.uk>
99
100 * src/misc.cxx: Fixed definition of mtab_extra[] so that it gets
101 emitted correctly into the object file.
102
103 * tests/testfs.c:
104 Added support for dynamic mount()/umount().
105 Added testfs_dump() to report state of filesystem, and to do a
106 little consistency checking.
107
108 * tests/fileio1.c: Extended testing to mount() and maximum file
109 sizes.
110
111 2000-06-28 Nick Garnett <nickg@cygnus.co.uk>
112
113 * include/dirent.h: Added this file to contain directory support
114 definitions.
115
116 * include/fileio.h:
117 Introduced separate typedefs for all operation functions.
118 Added CYG_FDIR to mark directory streams.
119 Added some default operation functions.
120
121 * src/fio.h (FILEIO_RETURN_VOID): Added this macro.
122
123 * src/dir.cxx: Added this file to contain directory listing API
124 functions.
125
126 * src/misc.cxx:
127 Added default operation functions.
128
129 * src/file.cxx:
130 Fixed mkdir() to have correct prototype.
131 Moved opendir() to dir.cxx.
132 Added support in chdir() for deregistering the current directory.
133
134 * cdl/fileio.cdl: Added dev.cxx to compile list. Added support for
135 dirent.h implementation.
136
137 * tests/testfs.c: Lots of changes towards a more complete
138 implementation.
139
140 * tests/select.c: Changed SHOW_RESULT() message a little. Fixed up
141 some warnings when no testing is possible.
142
143 * tests/fileio1.c:
144 Largely rewritten to do more complete testing.
145
146 2000-06-19 Nick Garnett <nickg@cygnus.co.uk>
147
148 * src/select.cxx: Added selwake_count variable to count select
149 wakeups. This allows us to avoid sleeping when a selectee calls
150 cyg_selwakeup() while we are still scanning the FD sets.
151
152 * include/fileio.h:
153 * include/sockio.h:
154 * src/misc.cxx:
155 * src/socket.cxx:
156 Converted tables to new mechanism.
157
158 * tests/select.c: Reduced buffer size to avoid buffer overflow in
159 serial devices.
160
161 2000-06-15 Nick Garnett <nickg@cygnus.co.uk>
162
163 * include/fileio.h:
164 Added typedef for cyg_selinfo.
165 Added umount to fstab entry structure.
166 Added mount() and unmount() prototypes.
167 Added const in various places.
168 Changed some types from CYG_ADDRWORD to their ISO standard
169 equivalents.
170 Added si_thread field to cyg_selinfo structure, added
171 cyg_selinit() prototype.
172
173 * src/socket.cxx: Converted an errant LOCK_NS() into the
174 UNLOCK_NS() it should be.
175
176 * src/select.cxx:
177 Added cyg_selinit() which must be called by all selectees at
178 initialization to prepare a cyg_selinfo structure for use.
179 Modified cyg_selwakeup() to minimize the number for actual wakeup
180 operations it actually performs.
181
182 * src/misc.cxx:
183 Added mtab_extra[] to contain dynamic mount table entries,
184 modified startup scan of mtab to cope with this.
185 changed matchlen() to cope with "/" mountpoint, this function is
186 rapidly ceasing to be the neat bit of code it started out as.
187 Added implementations of mount() and umount().
188
189 * src/devfs.cxx: Added dev_umount, various minor tweaks.
190
191 * cdl/fileio.cdl: Added CYGNUM_FILEIO_MTAB_EXTRA to define how
192 many extra mount table entries should exist for dynamic mounts.
193 Added select.c to list of tests.
194
195 * tests/select.c: Added this file to test select() functionality
196 on both sockets and (serial) devices.
197
198 * tests/socket.c: Tidied some compilation warnings.
199
200 * tests/testfs.c: Added umount stub function.
201
202 2000-06-12 Nick Garnett <nickg@cygnus.co.uk>
203
204 * include/sockio.h:
205 * include/fileio.h:
206 * src/fio.h:
207 * tests/testfs.c:
208 * src/socket.cxx:
209 * src/misc.cxx:
210 * src/file.cxx:
211 * src/fd.cxx:
212 * src/io.cxx:
213 * src/devfs.cxx:
214 Tidied up and sorted out locking protocols and synchronization
215 mechanisms.
216
217 2000-06-09 Nick Garnett <nickg@cygnus.co.uk>
218
219 * src/select.cxx:
220 * src/devfs.cxx:
221 * include/fileio.h:
222 * tests/testfs.c:
223 Added select() support.
224
225 * src/socket.cxx: Fixed a resource management bug in accept().
226
227 * tests/socket.c: Extended to test that all API calls work, at
228 least minimally, as they should. Still some calls to add here.
229
230 2000-06-07 Nick Garnett <nickg@cygnus.co.uk>
231
232 * tests/socket.c: Simple socket API test program. Needs much more
233 work to give full coverage.
234
235 * src/socket.cxx: Filled in some implementations. Changed some
236 type specifications.
237
238 * src/select.cxx: Added this file to contain select()
239 implementation. At present it does nothing.
240
241 * include/sockio.h:
242 Added definition of socklen_t for use when the NET package is
243 absent - just so this file compiles.
244 Added macro to generate an nstab entry.
245 Changed prototypes of socket operation ffunctions to better match
246 both API definition and BSD stack implementation.
247
248 * cdl/fileio.cdl: Added support for socket API. This is only
249 active if the NET package is present.
250 Added initial socket API test program.
251
252 2000-06-02 Nick Garnett <nickg@cygnus.co.uk>
253
254 * src/socket.cxx:
255 Added this file to implement socket interface. This is still a
256 rough draft that has not yet been tested.
257
258 * src/misc.cxx:
259 * src/io.cxx:
260 * src/fio.h: Various minor changes and bug fixes.
261
262 * src/file.cxx: Various bug fixes. Added pathconf().
263
264 * src/fd.cxx: Various changes and bug fixes, mostly in the
265 handling of the locking mechanisms.
266
267 * src/devfs.cxx: Added this filesystem to interface to the device
268 IO subsystem. Not yet tested.
269
270 * include/sockio.h: Various minor changes prompted by
271 implementation.
272
273 * include/fileio.h:
274 Added macros to instantiate filesystem and mount table entries.
275 Added mode mask for setting up f_flags.
276 Changed file object types, added device type.
277
278 * cdl/fileio.cdl:
279 Added some extra files to compile. Some now go in libextras.
280 Added table maxima for fstab, mtab and nstab.
281 Added tests.
282
283 * tests/fileio1.c: Added this simple test for the fileio
284 infrastructure.
285
286 * tests/testfs.c:
287 Created this simple ROM filesystem to test out the fileio
288 infrastructure. This is not really usable for anything other than
289 this, and should not be used in "production" systems. Hence its
290 presence in tests rather than src.
291 At present this only has support for open(), close(), read(),
292 write(), lseek() and unlink(). Other parts will be implemented as
293 and when required.
294
295 2000-05-31 Nick Garnett <nickg@cygnus.co.uk>
296
297 * src/fio.h:
298 * src/file.cxx:
299 * src/io.cxx:
300 * src/misc.cxx:
301 Roughed out most of the file IO infrastructure. While this code
302 compiles, none of it has actually been executed yet. A lot of this
303 was cut-and-paste-and-edit, so some minor blemishes are to be
304 expected.
305
306 * src/fd.cxx: Several modifications in response to implementing
307 rest of infrastructure. Added dup() and dup2() API routines.
308
309 * include/fileio.h: Many changes and tidies prompted by
310 infrastructure implementation.
311
312 * cdl/fileio.cdl: Added "implements" directives for isoinfra
313 interfaces. Extended compile to new files.
314
315 2000-05-26 Nick Garnett <nickg@cygnus.co.uk>
316
317 * include/fileio.h:
318 * include/sockio.h:
319 * src/fd.cxx:
320 * cdl/fileio.cdl:
321 Created these files as a start at defining the file IO package.
322 There is still a lot to do here, so expect radical changes to all
323 of these files in the near future.