summaryrefslogtreecommitdiffstats
path: root/c/src/lib/include/rtems (unfollow)
Commit message (Collapse)AuthorFilesLines
2001-08-172001-08-17 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-0/+8
* include/rtems/libio_.h: Added ifdef to ensure that LOGIN_NAME_MAX is defined on GNU/Linux (RedHat 6.2 distribution). * libc/unixlibc.c: Added stubs for rtems_io_register_name() and rtems_io_lookup_name() so UNIX port would compile the IO manager sptest that registers /dev/null.
2001-08-162001-08-16 Mike Siers <mikes@poliac.com>Joel Sherrill1-0/+14
* include/rtems/termiostypes.h, include/sys/ioccom.h: Update of PPPD to 2.3.11 from 2.3.5 touched these files.
2001-05-242000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es>Joel Sherrill1-0/+18
* include/rtems/libio_.h: Added login name, uid, gid, euid, and egid so they can be part of the private environment.
2001-04-202001-04-20 Correo Fernando-ruiz <correo@fernando-ruiz.com>Joel Sherrill1-0/+3
* include/rtems/libio_.h, libc/chroot.c, libc/privateenv.c: Private environment and chroot() enhancements and fixes. Comments: + privateenv has been modified to let at chroot() to be more POSIX like Sergei Organov recommended. + A task owner lets that rtems_set_private_env() will be called twice or more times. + chroot() can be called without a previous rtems_set_private_env(); (transpanrently) + The second call of rtems_set_private_env() makes a internal chroot("/") into global imfs_root. + chroot() runs like chdir() without a previous chdir("/") with the global root. + The current directory can be in a wrong place like Linux and many other Unices.
2001-02-052001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill1-3/+3
* include/zilog/Makefile.am, include/Makefile.am, include/motorola/Makefile.am, include/sys/Makefile.am include/rtems/Makefile.am: Apply include_*HEADERS instead of H_FILES.
2001-01-252001-01-25 Fernando Ruiz <fernando.ruiz@ctv.es>Joel Sherrill1-9/+20
* Alternate email is correo@fernando-ruiz.com * libc/privateenv.c: New file. * include/rtems/libio_.h, libc/Makefile.am, libc/base_fs.c, libc/unmount.c: Moved default umask, current working directory, root, and links followed count into a structure "user environment" that can then be treated as a unit. This enable giving unique copies of these to individual threads or collection of threads.
2000-11-302000-11-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* include/rtems/Makefile.am: Added termiostypes.h. * libc/Makefile.am: Removed termiostypes.h. * libc/termios.c: Changed include of "termiostypes.h" to <rtems/termiostypes.h> since that is an RTEMS specific header file.
2000-11-272000-11-27 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-0/+163
* libc/termiostypes.h: New file -- missed in earlier commits.
2000-11-012000-11-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill3-2/+25
* include/Makefile.am, include/rtems/libio_.h, libc/Makefile.am, libc/assoc.c, libc/assocnamebad.c, libc/base_fs.c, libc/cfsetispeed.c, libc/cfsetospeed.c, libc/chdir.c, libc/chmod.c, libc/chown.c, libc/close.c, libc/closedir.c, libc/dup2.c, libc/error.c, libc/eval.c, libc/fchdir.c, libc/fchmod.c, libc/fcntl.c, libc/fdatasync.c, libc/fpathconf.c, libc/fstat.c, libc/fsync.c, libc/ftruncate.c, libc/getdents.c, libc/ioctl.c, libc/libio.c, libc/libio_sockets.c, libc/link.c, libc/lseek.c, libc/malloc.c, libc/mallocfreespace.c, libc/mknod.c, libc/mount.c, libc/newlibc.c, libc/no_libc.c, libc/open.c, libc/read.c, libc/readlink.c, libc/rmdir.c, libc/stat.c, libc/symlink.c, libc/tcsetattr.c, libc/telldir.c, libc/ttyname.c, libc/ttyname_r.c, libc/umask.c, libc/unlink.c, libc/unmount.c, libc/utime.c, libc/write.c: assoc.h, error.h, libio_.h, libio.h, and libcsupport.h moved from libc to lib/include/rtems and now must be referenced as <rtems/XXX.h>. * include/rtems/Makefile.am, include/rtems/.cvsignore: New file. * include/rtems/assoc.h, include/rtems/error.h, include/rtems/libcsupport.h, include/rtems/libio.h, include/rtems/libio_.h: New/moved files.
2000-10-252000-10-24 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-4/+0
* libc/ioman.c: Moved to libfs. * libc/Makefile.am: Removed ioman.c as part of moving it to libfs. * libc/base_fs.c: Removed include of imfs.h and reworded comment to avoid being IMFS specific. * libc/libio.h: Removed prototype of IMFS_ops since it should not be in this file. * libc/mount.c: Removed IMFS specific configuration information. * libc/unmount.c: Removed include of imfs.h and reworded comment to avoid being IMFS specific.
2000-10-182000-10-18 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-0/+1
* libc/Makefile.am: Added mallocfreespace.c. * libc/mallocfreespace.c: New file based on work by Nick Simon <Nick.SIMON@syntegra.bt.co.uk> which he included in malloc.c. * libc/libcsupport.h: Added prototype for malloc_free_space().
2000-09-282000-09-28 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2-32/+32
* libc/libio.h (rtems_filesystem_file_handlers_r, rtems_filesystem_operations_table): Added _h to all structure fields to indicate they are "handlers". * libc/libio_.h, libc/chdir.c, libc/chmod.c, libc/chown.c, libc/close.c, libc/eval.c, libc/fchdir.c, libc/fchmod.c, libc/fcntl.c, libc/fdatasync.c, libc/fstat.c, libc/fsync.c, libc/ftruncate.c, libc/getdents.c, libc/imfs_eval.c, libc/imfs_unlink.c, libc/ioctl.c, libc/ioman.c, libc/link.c, libc/lseek.c, libc/mknod.c, libc/mount.c, libc/open.c, libc/read.c, libc/readlink.c, libc/rmdir.c, libc/stat.c, libc/symlink.c, libc/unlink.c, libc/unmount.c, libc/utime.c, libc/write.c: Modified to reflect above name change.
2000-08-112000-08-11 Chris Johns <ccj@acm.org>Joel Sherrill1-2/+8
* libc/chmod.c: Return ENOTSUP if filesystem does not have handler. * libc/eval.c: Ditto. * libc/fcntl.c: Ditto. * libc/fsync.c: Ditto. * libc/ioctl.c: Ditto. * libc/ioman.c: Ditto. * libc/link.c: Ditto. * libc/memfile.c: Ditto. * libc/mknod.c: Ditto. * libc/symlink.c: Ditto. * libc/libio.h(rtems_filesystem_dev_major_t): New macro. * libc/libio.h(rtems_filesystem_dev_minor_t): New macro.
2000-06-14*** empty log message ***Joel Sherrill1-9/+1
2000-06-13Temporary hack to compile. Need to probably address definitionJoel Sherrill1-0/+1
of all FIO constants and conflict with libnetworking code.
2000-06-12Merged from 4.5.0-beta3aJoel Sherrill1-0/+9
1999-11-17Updated copyright notice.Joel Sherrill3-6/+3
1999-10-29Moved the rmnod callback from the operations table to the handler table.Jennifer Averett1-5/+5
1999-10-29Joel added a table of mount entry requests to be processed duringJennifer Averett1-0/+14
initialization.
1999-10-26Added include of libio.h so this would compile when posix is disabled.Joel Sherrill1-0/+1
1999-10-26Added initial cut at miniIMFS which leaves out memfile and directoryJoel Sherrill1-1/+1
readdir support. The next step is to add a mount table and configure either the miniIMFS or the full IMFS at the application level.
1999-10-12Split null handlers table to own file and renamed.Joel Sherrill1-1/+2
Renamed IMFS handler tables to include IMFS prefix.
1999-10-12Added rtems_filesystem_freenode() macro and added calls at appropriateJoel Sherrill1-0/+12
places to make sure memory allocated for filesystem specifif nodes gets freed.
1999-10-12Fixed spacing.Joel Sherrill1-1/+1
1999-06-15After comments D. V. Henkel-Wallace <gumby@zembu.com>, the interface toJoel Sherrill1-1/+1
mount() was changed to avoid the use of a string as the options.
1999-06-14RTEMS_FILESYSTEM_READ_WRITE_ONLY changed to RTEMS_FILESYSTEM_READ_WRITEJoel Sherrill1-1/+1
for simplicity.
1999-03-19Patch from Eric Norum <eric@skatter.usask.ca> that adds externalJoel Sherrill1-0/+6
fcntl support and an external fcntl handler for sockets.
1999-03-16Use proper include for libio.h.Joel Sherrill1-4/+1
1999-03-06Added F_GETFL support so the fdopen() implementation in newlib 1.8.1Joel Sherrill1-0/+4
would work. At the same time, the initial implementation of F_SETFL was added. A support routine was added to convert internal libio flags back to the POSIX style. Eventually the internal representation should be eliminated in the interest of simplicity and code reduction. This problem was reported by Jake Janovetz <janovetz@tempest.ece.uiuc.edu>.
1999-03-01Patch from Eric Norum <eric@skatter.usask.ca> to eliminate externalJoel Sherrill2-45/+0
IO handlers scheme that was implemented originally just to support sockets. The file system IO switch is more general and works fine.
1999-01-20More general fix based on bug report and patch from Ian Lance TaylorJoel Sherrill1-1/+15
<ian@airs.com> to fix this problem: There is a small bug in __rtems_close in c/src/lib/libc/libio.c. It does not check whether the file descriptor it is passed is open. This can cause it to make a null dereference if it is passed a file descriptor which is in the valid range but which was not opened, or which was already closed.
1998-12-10Merged Eric Norum's select patch that was based on 4.0 and resolvedJoel Sherrill2-1/+6
all conflicts.
1998-12-03Modifications for RTEMS_UNIX.Jennifer Averett2-0/+6
1998-11-23Added base version of file system infrastructure. This includes a majorJoel Sherrill2-61/+738
overhaul of the RTEMS system call interface. This base file system is the "In-Memory File System" aka IMFS. The design and implementation was done by the following people: + Joel Sherrill (joel@OARcorp.com) + Jennifer Averett (jennifer@OARcorp.com) + Steve "Mr Mount" Salitasc (salitasc@OARcorp.com) + Kerwin Wade (wade@OARcorp.com) PROBLEMS ======== + It is VERY likely that merging this will break the UNIX port. This can/will be fixed. + There is likely some reentrancy/mutual exclusion needed. + Eventually, there should be a "mini-IMFS" description table to eliminate links, symlinks, etc to save memory. All you need to have "classic RTEMS" functionality is technically directories and device IO. All the rest could be left out to save memory.
1998-09-23Patch from Aleksey (Quality Quorum <qqi@world.std.com>):Joel Sherrill1-1/+1
1. Finally fixes raw interrupts for pc386 2. Makes some minor cleanup in console and startup 3. Makes rtems_termios_dequeue_characters() to return count of outstanding chars - it allows to simplify console isrs a little bit. 4. pc386 uart modified to be friendlier to termios parameter changes, to have minor performance improvement and to take advantage of of above termios modification.
1998-05-20Patch to add return status to rtems_termios_enqueue_raw_characters fromJoel Sherrill1-1/+1
Eric Norum per request from Geoffroy Montel: > The rtems_termios_enqueue_raw_characters function type is void. > The problem is that I can't return an error message if the input > buffer is full. > Could we add a return value? Sure, but what would you do with the overflow indication? POSIX says, ``when the input limit is reached, the saved characters are thrown away without notice''. Anyhow, the change is so small I've done it and enclosed the patch.
1998-05-20Added tcdrain() from Eric NorumJoel Sherrill1-0/+1
1998-05-19Removed prototype of rtems_libio_config() per Chris Johns' eagle eye.Joel Sherrill1-1/+0
1998-05-04Patch from Eric Norum to switch to termios callback structure, addJoel Sherrill1-10/+20
support for device driver support on tcsetattr(), and hardware flow control callbacks.
1998-04-03Removed isatty() since we are now using newlib's implementation asJoel Sherrill1-1/+0
a result of enabling the newlib POSIX directory.
1998-02-17updated copyright to 1998Joel Sherrill1-1/+1
1997-12-22Corrected prototypes for all termios console write driver entries toJoel Sherrill1-1/+2
properly reflect the const on the buffer pointer being passed in.
1997-11-15interrupt driven change from Eric NorumJoel Sherrill1-1/+2
1997-11-10Fixed prototypeJoel Sherrill1-1/+1
1997-10-23Changed prototype of read routine.Joel Sherrill1-1/+1
1997-10-23New termios.c from Eric Norum.Joel Sherrill1-0/+4
Added new entry point to add in per physical port resource requirements.
1997-10-21Added termios submission from Eric Norum and Katsutoshi Shibuya.Joel Sherrill1-2/+22
1997-10-08Fixed typo in the pointer to the license terms.Joel Sherrill1-2/+2
1997-08-01Katsutoshi Shibuya (shibuya@mxb.meshnet.or.jp)of BU-Denken Co., Ltd.Joel Sherrill1-0/+7
(Sapporo, Japan) submitted the extended console driver for the MVME162LX BSP and the POSIX tcsetattr() and tcgetattr() routines. This device driver supports four serial ports, cooked IO, and provides a portable base for Zilog 8530 based console drivers.
1997-04-22headers updated to reflect new style copyright notice as partJoel Sherrill1-5/+5
of switching to the modified GNU GPL.