1 2005-08-02 Andrew Lunn <andrew.lunn@ascom.ch>
3 * tests/socket.c (SHOW_RESULT): Add a cast to avoid compiler
4 warnings about the format string not matching the parameters.
5 * tests/testfs.c: rename strcmp and strcpy to mystrcmp and
6 mystrcpy to avoid clashes with the normal implementations.
8 2005-05-13 Peter Korsgaard <jacmet@sunsite.dk>
10 * src/devfs.cxx (dev_stat, dev_fo_fstat): Corrected mode for block
11 devices, made nlink 1.
12 * src/devfs.cxx (dev_fo_fstat): Set st_dev to zero to match dev_stat.
14 2005-05-26 Gary Thomas <gary@mlbassoc.com>
16 * tests/socket.c: Fix config test (CYGPKG_POSIX_SIGNALS)
18 * tests/pselect.c: Fix config test (CYGPKG_POSIX_SIGNALS is
19 only defined in <pkgconf/posix.h>) Also, reduce number of
20 iterations so test completes in a reasonable time (~30 seconds).
22 2005-03-27 Andrew Lunn <andrew.lunn@ascom.ch>
24 * tests/testfs.c: Fixed compiler warnigs for passing wrong types
26 * tests/fileio1.c: Ditto
27 * tests/select.c: Ditto
30 2005-02-24 Andrew Lunn <andrew.lunn@ascom.ch>
32 * include/fileio.h: Only include kapi.h when
33 CYGFUN_IO_FILEIO_SELECT is enabled and then define the select
36 2005-01-27 Yoshinori Sato <ysato@users.sourceforge.jp>
38 * src/io.cxx (ioctl): Change ioctl to use varargs so that it works
39 on with h8300 who's compiler does not like doing it the other way.
41 2005-01-22 Andrew Lunn <andrew.lunn@ascom.ch>
43 * src/misc.cxx (cyg_fs_root_lookup): New function to find the mount
44 point of a give filesystems root directory.
46 * include/fileio.h: Made cyg_fs_{un}lock accessible outside of the
49 2004-01-22 Andrew Lunn <andrew.lunn@ascom.ch>
52 2004-12-15 Andrew Lunn <andrew.lunn@ascom.ch>
54 * src/select.cxx (cyg_pselect): We need the oldmask under all
57 2004-12-01 Alex Paulis and Cameron Taylor <ctaylor@waverider.com>
59 * include/fileio.h: Changed si_thread to si_waitFlag
60 * src/select.cxx: Improved efficiency: 1. Only threads waiting
61 on a selector are woken up in selwake. This is done by swapping
62 the condition variable for an event flag and registering threads
63 for wakeup in selrecord. 2. No mutex is now required. 3. Search
64 through the FD mask much streamlined.
66 2004-11-17 Jani Monoses <jani@iv.ro>
68 * tests/socket.c: Allow building without kernel config.
70 2004-11-14 Andrew Lunn <andrew.lunn@ascom.ch>
72 * tests/fileio1.c: Start the test using cyg_user_start so that
73 it can be used without the kernel.
74 * tests/testfs.c (testfs_time): If we don't have a kernel return 0
75 as the time rather than the current time.
77 2004-11-14 Jani Monoses <jani@iv.ro>
79 * src/devfs.cxx: Removed unneeded header files so the package can
80 be compiled without the kernel.
82 2004-10-13 David Brennan <eCos@brennanhome.com>
85 * src/file.cxx: Added support for cyg_fs_fssync,
86 cyg_fs_get_attrib, and cyg_fs_set_attrib
88 2004-10-13 David Brennan <eCos@brennanhome.com>
90 * src/file.cxx: Added a check data ptr in LOCK_FS
92 2004-10-06 David Brennan <eCos@brennanhome.com>
94 * tests/pselect.c: Added check for POSIX signals while building
96 * tests/select.c: Include sys/select.h to prevent a possible warning.
98 2004-10-01 Oyvind Harboe <oyvind.harboe@zylin.com>
100 * src/select.cxx: place the CYGBLD_ATTRIB_INIT_PRI such that it
101 compiles for gcc 3.4.2 which is more picky about its placement.
103 2004-07-23 Oyvind Harboe <oyvind.harboe@zylin.com>
105 * src/select.cxx: now correctly returns from select() on
106 e.g. closed file pointers.
108 2004-04-15 Jonathan Larmour <jifl@eCosCentric.com>
110 * tests/fileio1.c: include stdio.h for rename() prototype.
112 2004-04-07 Andrew Lunn <andrew.lunn@ascom.ch>
114 * src/fd.cxx: Fix the assert just added. 0 is a valid fd.
116 2004-03-25 Sebastien Couret <sebastien.couret@elios-informatique.fr>
118 * src/fd.cxx: Added CYG_ASSERT bound checking for file descriptor
119 numbers (0<fd<CYGNUM_FILEIO_NFD).
121 2004-03-12 Jonathan Larmour <jifl@eCosCentric.com>
123 * src/fio.h: If no POSIX then CYG_FILEIO_DELIVER_SIGNALS
124 and CYG_FILEIO_SIGMASK_SET call CYG_UNUSED_PARAM on their
125 arguments to silence warnings.
126 * src/file.cxx (rename): Use a throw specifier to match
129 2004-02-16 Andrew Lunn <andrew.lunn@ascom.ch>
131 * src/io.cxx (readwritev): For EWOULDBLOCK and EAGAIN return
132 the number of bytes written if any have been written.
134 2004-01-07 Jonathan Larmour <jifl@eCosCentric.com>
136 * src/select.cxx: No need to make pselect() dependent on
137 CYGPKG_POSIX - that would depend on the arguments. Assert instead,
138 and more correctly make it contingent on CYGPKG_POSIX_SIGNALS.
140 * src/fio.h: Separate out signal functionality into its own separate
143 2003-12-21 Sandeep Kumar <sandeep@codito.com>
145 * src/dir.cxx (readdir_r): Handle NULL dirp argument and return
148 2003-12-03 Dan Jakubiec <djakubiec@yahoo.com>
150 * src/select.cxx (pselect): Fixed the pselect() call to correctly
151 handle NULL timeout arguments. The previous implementation would
152 cause a random timeout value to be used.
154 2003-11-28 David Woodhouse <dwmw2@redhat.com>
156 * include/fileio.h, include/sockio.h, src/dir.cxx, src/fd.cxx,
157 src/io.cxx: Don't include kernel headers if no kernel support.
159 2003-10-23 Savin Zlobec <savin@elatec.si>
161 * src/io.cxx: Added cyg_fs_fsetinfo and cyg_fs_fgetinfo functions.
163 * src/file.cxx: Added cyg_fs_setinfo and cyg_fs_getinfo functions.
165 * include/fileio.h: Added cyg_fs_fsetinfo, cyg_fs_fgetinfo,
166 cyg_fs_setinfo and cyg_fs_getinfo function prototypes.
168 2003-10-16 Andrew Lunn <andrew.lunn@ascom.ch>
170 * src/socket.cxx (bind): Pass a copy of the socket address so the
171 stack can modify it without changing the users copy. Bug found by
174 2003-10-06 Andrew Lunn <andrew.lunn@ascom.ch>
176 * src/fio.h (CYG_FILEIO_SIGMASK_SET): Fixed a compiler warning
177 about an unused variable.
179 2003-09-22 Eric Doenges <Eric.Doenges@DynaPel.com>
180 * src/devfs.cxx: prototype of dev_fo_select now matches
182 * include/fileio.h: changed definition of cyg_fileop_select to
183 return a cyg_bool instead of int to match current implementations
184 * src/misc.cxx: changed cyg_fileio_seltrue() to match prototype.
186 2003-07-11 Andrew Lunn <andrew.lunn@ascom.ch>
188 * src/socket.cxx (socket): If there are no network stacks configured
189 return EAFNOSUPPORT when opening a socket.
191 2003-04-11 Jonathan Larmour <jifl@eCosCentric.com>
193 * src/socket.cxx: Give nstab_lock mutex a priority. Also it's
194 local, so make static.
195 Change nstab and nstab_end to cyg_nstab and cyg_nstab_end for
197 * include/sockio.h: nstab -> cyg_nstab.
198 * src/misc.cxx, src/dir.cxx, src/fio.h, src/file.cxx: Change
199 fstab, fstab_end, mtab, mtab_end, cdir_dir, cdir_mtab_entry to
200 have cyg_ prefix for cleaner namespace.
202 2003-03-20 Gary Thomas <gary@mlbassoc.com>
204 * src/devfs.cxx: Remove unnecessary checks for -EAGAIN (should
205 no longer happen in lower layers).
207 2003-03-08 Jonathan Larmour <jifl@eCosCentric.com>
209 * tests/pselect.c (pthread_entry1): Allow for infrequent but
210 occasional off by one error due to race condition when
213 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
215 * cdl/fileio.cdl: Add doc link.
217 2003-02-20 Bart Veer <bartv@ecoscentric.com>
219 * cdl/fileio.cdl: identify test binaries, not test sources
221 2003-01-30 Andrew Lunn <andrew.lunn@ascom.ch>
223 * cdl/fileio.cdl: Added interface CYGINT_IO_FILEIO_FS which any
224 FS which FILEIO can use should implement.
226 2003-01-23 Gary Thomas <gary@mlbassoc.com>
228 * src/misc.cxx (cyg_mtab_lookup): Return an error if the current
229 directory is not known - happens if no file systems are mounted.
231 2002-11-10 Nick Garnett <nickg@ecoscentric.com>
233 * src/fio.h: Added macros to deal with signal handling. These will
234 call into the POSIX package if it is present, but are null if it
237 * src/select.cxx: Renamed original select() to cyg_pselect() and
238 added select() and pselect() routine from POSIX-200X to call
239 it. Reorganized code a little and added calls to macros to deal
240 with signal delivery and detection.
243 * tests/pselect.c: New test added to verify the signal masking and
244 delivery behaviour of pselect().
246 * tests/select.c: Fixed up some printfs to make it a little tidier.
248 2002-11-03 Gary Thomas <gthomas@ecoscentric.com>
251 * cdl/fileio.cdl: Add readv()/writev() support.
253 2002-08-08 Nick Garnett <nickg@calivar.demon.co.uk>
255 * src/select.cxx (select): Changed mechanism for calculating
256 select timeout to avoid possible race conditions between this code
259 2002-05-29 Jesper Skov <jskov@redhat.com>
261 * tests/fileio1.c: Removed strcat definition. Rely on string.h to
264 2002-05-28 Jonathan Larmour <jlarmour@redhat.com>
266 * include/limits.h (NAME_MAX): Increase default to 64.
267 * cdl/fileio.cdl: Set CYGBLD_ISO_NAME_MAX_HEADER.
269 2002-04-11 Nick Garnett <nickg@redhat.com>
271 * doc/fileio.sgml: Added a section on writing a new
272 filesystem. This probably still needs more work, but it's better
275 2002-04-05 Nick Garnett <nickg@redhat.com>
277 * src/devfs.cxx: Changed test for EAGAIN in dev_fo_read() and
278 dev_fo_write() to negate value first.
280 2002-03-07 Nick Garnett <nickg@redhat.com>
282 * doc/fileio.sgml: Added this file to contain documentation on
285 2002-02-04 Gary Thomas <gthomas@redhat.com>
287 * tests/socket.c (main):
288 * tests/select.c (main): sin_len field must be set.
290 2002-01-29 Jonathan Larmour <jlarmour@redhat.com>
292 * cdl/fileio.cdl: Actually, don't bother to build testfs.c at all.
294 2002-01-29 Jesper Skov <jskov@redhat.com>
296 * cdl/fileio.cdl: Added CYGPKG_FILEIO_BUILD_TESTS option and made
297 building of testfs dependant on it.
299 2002-01-25 Jonathan Larmour <jlarmour@redhat.com>
301 * include/inode.h: New API defining a common generic inode type.
302 * src/inocache.cxx: Implement the inode cache functions.
303 * cdl/fileio.cdl: (Configurably) build it.
305 2002-01-23 David Woodhouse <dwmw2@redhat.com>
306 2002-01-23 Jonathan Larmour <jlarmour@redhat.com>
308 * cdl/fileio.cdl: Remove select compilation and support to new
309 CYGFUN_IO_FILEIO_SELECT option conditional on the kernel
310 Ditto for DEVS and CYGPKG_IO_FILEIO_DEVFS_SUPPORT.
311 Make CYGPKG_IO_FILEIO_SOCKET_SUPPORT also conditional on kernel.
312 * src/fio.h: Define FILEIO_MUTEX_LOCK() and FILEIO_MUTEX_UNLOCK()
313 so that code doesn't need to care whether the kernel is included or
315 * src/fd.cxx: Conditionalize mutex usage throughout on CYGPKG_KERNEL,
316 and FILEIO_MUTEX_LOCK()/UNLOCK().
317 * src/file.cxx: Ditto.
318 * src/misc.cxx: Ditto.
319 (cyg_timestamp): Only use Cyg_Clock implementation if CYGPKG_KERNEL.
321 2002-01-23 Jonathan Larmour <jlarmour@redhat.com>
323 * src/misc.cxx: Initialize fileio_initializer at prio CYG_INIT_IO_FS
324 so it happens after the devices it depends on.
325 * src/file.cxx (getcwd_lock): Ditto.
326 * src/select.cxx (select_mutex): ditto.
328 * src/fd.cxx (fdlock): ditto
330 * src/dir.cxx (readdir): Use FILEIO_RETURN_VALUE on exit.
332 * src/devfs.cxx (dev_stat): Don't use handle for st_dev - it will
333 probably be truncated.
335 2002-01-04 Wade Jensen <Wade_Jensen@inter-tel.com>
336 2002-01-04 Jonathan Larmour <jlarmour@redhat.com>
338 * src/socket.cxx (recvfrom): Set msg.msg_namelen correctly for
341 2001-12-28 Gary Thomas <gthomas@redhat.com>
343 * src/io.cxx (readwrite): Add missing check for return (errors).
345 2001-11-29 Jonathan Larmour <jlarmour@redhat.com>
347 * src/file.cxx (chdir): Don't detach from current dir if unset.
349 2001-11-02 Felix Wong <felixwong@i-technologies.cc>
350 2001-11-02 Jonathan Larmour <jlarmour@redhat.com>
352 * src/devfs.cxx (dev_fo_read): Support block devices.
353 (dev_fo_write): Ditto.
355 2001-10-09 Jonathan Larmour <jlarmour@redhat.com>
357 * src/fio.h: Make cancellation point dependand on
358 CYGINT_ISO_PTHREAD_IMPL from <pkgconf/isoinfra.h> really.
359 * tests/select.c: Ditto.
361 2001-10-09 Jesper Skov <jskov@redhat.com>
363 * tests/select.c: Do NA check for posix threads.
365 * src/fio.h: Make cancellation point dependant on
366 CYGPKG_POSIX_PTHREAD as in the POSIX package.
368 2001-07-26 Jonathan Larmour <jlarmour@redhat.com>
370 * cdl/fileio.cdl: Implements select().
371 * src/select.cxx: Include <sys/select.h> from isoinfra.
373 2001-07-19 Jonathan Larmour <jlarmour@redhat.com>
375 * src/devfs.cxx (dev_fo_read): Treat non-blocking reads returning
377 (dev_fo_write): Ditto for writes.
379 2001-06-14 Jonathan Larmour <jlarmour@redhat.com>
381 * src/fio.h (FILEIO_ENTRY): Don't use CYG_MACRO_START/END around
383 Reported by Richard Panton.
385 2001-06-11 Jonathan Larmour <jlarmour@redhat.com>
387 * src/socket.cxx (cyg_sock_unlock): Fix cyg_file_lock->cyg_file_unlock
390 2001-03-15 Gary Thomas <gthomas@redhat.com>
392 * src/file.cxx (open): Check for required/valid open mode.
394 2001-03-14 Jonathan Larmour <jlarmour@redhat.com>
396 * src/misc.cxx (cyg_mtab_lookup): check valid mtab entry
399 2001-03-14 Martin van Veen <martin_van_veen@yahoo.com>
401 * src/misc.cxx (mount): Return error if mount fails.
403 2001-03-12 Gary Thomas <gthomas@redhat.com>
405 * src/misc.cxx (mount): Do implicit 'chdir()' in the
406 absence of any statically mounted file systems.
407 (cyg_fs_lock, cyg_fs_unlock): Add assertions.
409 * src/file.cxx (LOCK_FS):
410 * src/dir.cxx (LOCK_FS): Add assertions on 'mte'.
412 2001-01-05 Nick Garnett <nickg@cygnus.co.uk>
414 * tests/socket.c (main):
415 Added call to init_all_network_interfaces().
417 2000-12-15 Nick Garnett <nickg@cygnus.co.uk>
419 * src/misc.cxx: Fixed some bugs in initialization of timestamp
420 function when Wallclock and POSIX packages are absent.
422 2000-11-01 Jonathan Larmour <jlarmour@redhat.com>
424 * src/io.cxx (readwrite): Ensure we call FILEIO_RETURN_VALUE() to
429 * src/file.cxx (open): If applicable, refer to stdin, stdout and stderr
430 here to ensure they are pulled in, in case selective linking would
431 otherwise eliminate them. This is to ensure they get allocated to
434 2000-10-13 Nick Garnett <nickg@cygnus.co.uk>
436 * src/io.cxx (readwrite): Merged both read() and write() functions
437 into this single common routine.
439 * include/fileio.h: Introduced a common typedef for both read and
442 * doc/fileio.txt: Added some text about getcwd() and tidied up
445 2000-10-05 Nick Garnett <nickg@cygnus.co.uk>
447 * src/file.cxx: Added support for getcwd(). There are three
448 mechanisms provided here. The first is to use the FS_INFO_GETCWD
449 key on the filesystem to use any support it has for this. If that
450 fails it falls back on one of the two other mechanisms. If
451 CYGPKG_IO_FILEIO_TRACK_CWD is set then the current directory is
452 tracked textually in chdir() and the result of that is reported in
453 getcwd(). Otherwise an attempt is made to traverse the directory
454 tree to its root using ".." entries. This last option is
455 complicated and expensive, so the other two mechanisms are to be
456 preferred if possible.
458 * include/fileio.h: Added FS_INFO_GETCWD getinfo option and a
459 matching struct cyg_getcwd_info. These are used to access getcwd()
460 support in a filesystem.
462 * src/fio.h: Added initial support for POSIX API function entry
465 * cdl/fileio.cdl: Added CYGPKG_IO_FILEIO_TRACK_CWD option to
466 enable current directory tracking.
468 2000-09-28 Nick Garnett <nickg@cygnus.co.uk>
470 * src/select.cxx (cyg_selwakeup):
471 Removed test for whether the waiting thread is actually waiting
472 for this event. This lead to a race condition when the thread is
473 still polling other objects but has already checked this
474 event. Now all waiting selectors are woken up by each selectable
477 2000-09-18 Jonathan Larmour <jlarmour@redhat.com>
479 * src/select.cxx: Apply constructor prioritization to mutexes and
483 2000-09-11 Jonathan Larmour <jlarmour@redhat.com>
485 * tests/select.c: NA if no POSIX package
487 * cdl/fileio.cdl: Set CYGBLD_ISO_OPEN_MAX_HEADER to this package's
489 * include/limits.h: New file to define OPEN_MAX (and other things in
492 2000-09-08 Nick Garnett <nickg@cygnus.co.uk>
495 Removed spaces from arguments to CYG_HAL_TABLE_ENTRY().
497 2000-09-04 Jonathan Larmour <jlarmour@redhat.com>
499 * include/sockio.h (struct cyg_nstab_entry): Apply CYG_HAL_TABLE_TYPE
500 * include/fileio.h (struct cyg_mtab_entry): Ditto
503 2000-08-31 Nick Garnett <nickg@cygnus.co.uk>
505 * src/select.cxx (select): Added scheduler unlock in timeout
508 2000-08-22 Jonathan Larmour <jlarmour@redhat.co.uk>
510 * doc/fileio.txt: Add Nick's text description of plug-in filesystems
511 and sockets here for now.
513 2000-08-18 Nick Garnett <nickg@cygnus.co.uk>
515 * include/fileio.h: Added CYG_FAPPEND flag for preservation in
517 Added prototype for cyg_timestamp().
519 * src/misc.cxx: Fixed bug in cyg_mtab_lookup() when dealing with
520 empty mount table entries.
521 Added cyg_timestamp() to provide timestamp support to client
524 2000-08-09 Jonathan Larmour <jlarmour@redhat.co.uk>
526 * src/misc.cxx: Don't define own strcmp() function (which had a bug
527 anyway). Use string.h.
528 * cdl/fileio.cdl: requires ISO C string functions
530 2000-08-01 Jonathan Larmour <jlarmour@redhat.co.uk>
532 * src/misc.cxx: Use correct initializer for mtab_extra
534 * src/fio.h (FILEIO_RETURN_VOID): Surround in CYG_MACRO_START to
535 prevent problems when used with one-line if.
536 (FILEIO_RETURN_VALUE): Likewise
538 * include/fileio.h: Make getinfo/setinfo take void *bufs, not char *
539 for easier casting (and more correct)
541 * tests/testfs.c: Likewise
543 * src/devfs.cxx: Likewise.
544 Also fix bug with Nick's change below that set non-blocking mode
547 2000-07-31 Nick Garnett <nickg@cygnus.co.uk>
549 * src/devfs.cxx (dev_open): Added support for O_NONBLOCK.
551 2000-07-27 Nick Garnett <nickg@cygnus.co.uk>
553 * tests/select.c: Wrapped include of pkgconf/io_serial.h in
554 #ifdef CYGPKG_IO_SERIAL.
556 2000-07-25 Jonathan Larmour <jlarmour@redhat.co.uk>
558 * tests/select.c (main): Wrap call to init_all_network_interfaces()
561 2000-07-25 Nick Garnett <nickg@cygnus.co.uk>
563 * tests/select.c (main): Added call to
564 init_all_network_interfaces().
566 2000-07-21 Nick Garnett <nickg@cygnus.co.uk>
572 Added support for link() API call. This was the only major file
575 2000-07-20 Nick Garnett <nickg@cygnus.co.uk>
577 * include/fileio.h: Added some modes for fsync().
579 * src/file.cxx: Added access() function.
581 * src/io.cxx: Added fdatasync() and isatty().
583 * src/devfs.cxx: Added fsync() support.
585 * tests/fileio1.c: Added calls to access() to check (non-)existence
586 of files where appropriate.
588 2000-07-13 Nick Garnett <nickg@cygnus.co.uk>
590 * src/select.cxx (select): Fixed return value when timing out. Now
591 returns zero and no error, it used to return -1 and ETIMEDOUT.
593 * src/io.cxx: Fixed fsync() to match standard.
596 Added lseek() support - all devices are always at position
597 zero. Added [f]stat() support - currently just fills in the stat
598 buffer with some predefined values. When we have more
599 sophisticated devices this may need to be improved.
601 * tests/testfs.c (testfs_open): Added support for O_TRUNC open
606 Added stdio.c to test C library IO integration. This does not test
607 the C library functionality, just that it works with the fileio
608 package in certain limited ways.
610 2000-06-30 Nick Garnett <nickg@cygnus.co.uk>
612 * src/misc.cxx: Fixed definition of mtab_extra[] so that it gets
613 emitted correctly into the object file.
616 Added support for dynamic mount()/umount().
617 Added testfs_dump() to report state of filesystem, and to do a
618 little consistency checking.
620 * tests/fileio1.c: Extended testing to mount() and maximum file
623 2000-06-28 Nick Garnett <nickg@cygnus.co.uk>
625 * include/dirent.h: Added this file to contain directory support
629 Introduced separate typedefs for all operation functions.
630 Added CYG_FDIR to mark directory streams.
631 Added some default operation functions.
633 * src/fio.h (FILEIO_RETURN_VOID): Added this macro.
635 * src/dir.cxx: Added this file to contain directory listing API
639 Added default operation functions.
642 Fixed mkdir() to have correct prototype.
643 Moved opendir() to dir.cxx.
644 Added support in chdir() for deregistering the current directory.
646 * cdl/fileio.cdl: Added dev.cxx to compile list. Added support for
647 dirent.h implementation.
649 * tests/testfs.c: Lots of changes towards a more complete
652 * tests/select.c: Changed SHOW_RESULT() message a little. Fixed up
653 some warnings when no testing is possible.
656 Largely rewritten to do more complete testing.
658 2000-06-19 Nick Garnett <nickg@cygnus.co.uk>
660 * src/select.cxx: Added selwake_count variable to count select
661 wakeups. This allows us to avoid sleeping when a selectee calls
662 cyg_selwakeup() while we are still scanning the FD sets.
668 Converted tables to new mechanism.
670 * tests/select.c: Reduced buffer size to avoid buffer overflow in
673 2000-06-15 Nick Garnett <nickg@cygnus.co.uk>
676 Added typedef for cyg_selinfo.
677 Added umount to fstab entry structure.
678 Added mount() and unmount() prototypes.
679 Added const in various places.
680 Changed some types from CYG_ADDRWORD to their ISO standard
682 Added si_thread field to cyg_selinfo structure, added
683 cyg_selinit() prototype.
685 * src/socket.cxx: Converted an errant LOCK_NS() into the
686 UNLOCK_NS() it should be.
689 Added cyg_selinit() which must be called by all selectees at
690 initialization to prepare a cyg_selinfo structure for use.
691 Modified cyg_selwakeup() to minimize the number for actual wakeup
692 operations it actually performs.
695 Added mtab_extra[] to contain dynamic mount table entries,
696 modified startup scan of mtab to cope with this.
697 changed matchlen() to cope with "/" mountpoint, this function is
698 rapidly ceasing to be the neat bit of code it started out as.
699 Added implementations of mount() and umount().
701 * src/devfs.cxx: Added dev_umount, various minor tweaks.
703 * cdl/fileio.cdl: Added CYGNUM_FILEIO_MTAB_EXTRA to define how
704 many extra mount table entries should exist for dynamic mounts.
705 Added select.c to list of tests.
707 * tests/select.c: Added this file to test select() functionality
708 on both sockets and (serial) devices.
710 * tests/socket.c: Tidied some compilation warnings.
712 * tests/testfs.c: Added umount stub function.
714 2000-06-12 Nick Garnett <nickg@cygnus.co.uk>
726 Tidied up and sorted out locking protocols and synchronization
729 2000-06-09 Nick Garnett <nickg@cygnus.co.uk>
735 Added select() support.
737 * src/socket.cxx: Fixed a resource management bug in accept().
739 * tests/socket.c: Extended to test that all API calls work, at
740 least minimally, as they should. Still some calls to add here.
742 2000-06-07 Nick Garnett <nickg@cygnus.co.uk>
744 * tests/socket.c: Simple socket API test program. Needs much more
745 work to give full coverage.
747 * src/socket.cxx: Filled in some implementations. Changed some
750 * src/select.cxx: Added this file to contain select()
751 implementation. At present it does nothing.
754 Added definition of socklen_t for use when the NET package is
755 absent - just so this file compiles.
756 Added macro to generate an nstab entry.
757 Changed prototypes of socket operation ffunctions to better match
758 both API definition and BSD stack implementation.
760 * cdl/fileio.cdl: Added support for socket API. This is only
761 active if the NET package is present.
762 Added initial socket API test program.
764 2000-06-02 Nick Garnett <nickg@cygnus.co.uk>
767 Added this file to implement socket interface. This is still a
768 rough draft that has not yet been tested.
772 * src/fio.h: Various minor changes and bug fixes.
774 * src/file.cxx: Various bug fixes. Added pathconf().
776 * src/fd.cxx: Various changes and bug fixes, mostly in the
777 handling of the locking mechanisms.
779 * src/devfs.cxx: Added this filesystem to interface to the device
780 IO subsystem. Not yet tested.
782 * include/sockio.h: Various minor changes prompted by
786 Added macros to instantiate filesystem and mount table entries.
787 Added mode mask for setting up f_flags.
788 Changed file object types, added device type.
791 Added some extra files to compile. Some now go in libextras.
792 Added table maxima for fstab, mtab and nstab.
795 * tests/fileio1.c: Added this simple test for the fileio
799 Created this simple ROM filesystem to test out the fileio
800 infrastructure. This is not really usable for anything other than
801 this, and should not be used in "production" systems. Hence its
802 presence in tests rather than src.
803 At present this only has support for open(), close(), read(),
804 write(), lseek() and unlink(). Other parts will be implemented as
807 2000-05-31 Nick Garnett <nickg@cygnus.co.uk>
813 Roughed out most of the file IO infrastructure. While this code
814 compiles, none of it has actually been executed yet. A lot of this
815 was cut-and-paste-and-edit, so some minor blemishes are to be
818 * src/fd.cxx: Several modifications in response to implementing
819 rest of infrastructure. Added dup() and dup2() API routines.
821 * include/fileio.h: Many changes and tidies prompted by
822 infrastructure implementation.
824 * cdl/fileio.cdl: Added "implements" directives for isoinfra
825 interfaces. Extended compile to new files.
827 2000-05-26 Nick Garnett <nickg@cygnus.co.uk>
833 Created these files as a start at defining the file IO package.
834 There is still a lot to do here, so expect radical changes to all
835 of these files in the near future.