summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/syscalls.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added base version of file system infrastructure. This includes a majorJoel Sherrill1998-11-231-99/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Removed fork(), execv(), and wait() since they are now stubbed in theJoel Sherrill1998-10-121-21/+0
| | | | POSIX API.
* execv*() now comes from newlib.Joel Sherrill1998-05-111-0/+2
|
* More stuff removed as a result of using newlib's isatty() implementation.Joel Sherrill1998-04-061-4/+0
| | | | These were noticed by Eric Norum.
* Removed isatty() since we are now using newlib's implementation asJoel Sherrill1998-04-031-9/+0
| | | | a result of enabling the newlib POSIX directory.
* GO32 does not have sockets.Joel Sherrill1998-03-271-0/+2
|
* Removed blank line.Joel Sherrill1998-03-201-1/+1
|
* updated copyright to 1998Joel Sherrill1998-02-171-1/+1
|
* Patch from Eric Norum <eric@skatter.usask.ca>:Joel Sherrill1998-02-171-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've gone through and cleaned up the TFTP driver so that it fits into the libio system. Here's the comment from the new driver: /* * Usage: * * To open `/bootfiles/image' on `hostname' for reading: * fd = open ("/TFTP/hostname/bootfiles/image", O_RDONLY); * * The `hostname' can be a symbolic name or four * dot-separated decimal values. * * To open a file on the host which supplied the BOOTP * information just leave the `hostname' part empty: * fd = open ("/TFTP//bootfiles/image", O_RDONLY); * */ You can `fopen' TFTP files the same way: fp = fopen (fullname, "r"); nread = fread (cbuf, sizeof cbuf[0], sizeof cbuf, fp); The diff's are included below. I've also modified the TFTP demo program and the bootstrap PROM example. They should be on my ftp site `soon'. The one thing I don't like is the way I had to do an end-run on the libio routines to get errno passed back from my driver to the application (since there are some errno codes that don't map to RTEMS status codes). My approach was to set errno in the driver and have the driver routine return an RTEMS status code that I `know' isn't in the errno_assoc[] in libio.c. Perhaps there should be an RTEMS_TRANPARENT_ERRNO status code (or something similar) which driver routines could return to indicate that the driver routine has set errno and that the libio routines shouldn't attempt to map the returned status code to errno. Actually, I think the entire I/O system needs looking at -- as you've already mentioned. The hacks I've dropped in to syscalls.c to make fstat work, for example, are *not* shining examples of good code......
* more info from EricJoel Sherrill1998-01-191-0/+6
|
* Patch from Eric Norum:Joel Sherrill1998-01-191-6/+23
| | | | | With this in place, it is possible to fdopen a TCP stream socket and getc/fprintf/etc. on the STDIO stream!
* Fixed typo in the pointer to the license terms.Joel Sherrill1997-10-081-2/+2
|
* headers updated to reflect new style copyright notice as partJoel Sherrill1997-04-221-5/+5
| | | | of switching to the modified GNU GPL.
* fixed spacingJoel Sherrill1997-04-161-1/+3
|
* made some of this conditional on unix libJoel Sherrill1997-03-101-2/+5
|
* Merged newlib's libgloss support for rtems into this directory. ThisJoel Sherrill1997-01-291-4/+31
| | | | should simplify the build process.
* removed assert() for stat on non-devices. Now it returns -1. ThisJoel Sherrill1997-01-081-2/+1
| | | | makes gnat pass about 55 more tests in the acvc.
* Added asserts for unhandled conditions which need to result in errorJoel Sherrill1996-11-081-0/+9
| | | | | | statuses being returned to gnat runtime in order for it to raise use_errors. This was needed to identify the places in gnat's runtime which needed to be addressed.
* Removed comment about a confusion on newlib buffering.Joel Sherrill1996-01-171-10/+0
|
* Modified fstat and stat to be consistent with isatty in that all threeJoel Sherrill1996-01-171-7/+23
| | | | | now pretend that everything is a tty. This insures that newlib makes the console output line buffered.
* Numerous miscellaneous features incorporated from Tony BennettJoel Sherrill1995-08-171-21/+0
| | | | | | | | | (tbennett@divnc.com) including the following major additions: + variable length messages + named devices + debug monitor + association tables/variables
* Initial revisionJoel Sherrill1995-05-111-0/+77