diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-11-23 19:07:58 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-11-23 19:07:58 +0000 |
commit | 07a3253de2c3f9bc2d96a351680ec72548dadd2d (patch) | |
tree | b4f85e78927202cffe01b194c708c3dd800d8e57 /c/src/lib/libc/newlibif.c | |
parent | Added new tests in support of the file system infrastructure. (diff) | |
download | rtems-07a3253de2c3f9bc2d96a351680ec72548dadd2d.tar.bz2 |
Added base version of file system infrastructure. This includes a major
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.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libc/newlibif.c | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/c/src/lib/libc/newlibif.c b/c/src/lib/libc/newlibif.c deleted file mode 100644 index 8b995fed92..0000000000 --- a/c/src/lib/libc/newlibif.c +++ /dev/null @@ -1,93 +0,0 @@ - -/* - * This file contains the glue which maps newlib system calls onto their - * RTEMS implementations. This formerly was in the file - * libgloss/rtems/iface.c which was installed as rtems.o. Merging this - * into the RTEMS source tree minimizes the files which must be linked - * to build an rtems application. - * - * $Id$ - * - */ - -#include <rtems.h> -#if defined(RTEMS_NEWLIB) - -#include <sys/types.h> -#include <sys/stat.h> -#include <errno.h> -#include <reent.h> - -#include <termios.h> - -#include "internal.h" -#include "libio.h" - -int -read(int fd, - char *buf, - int nbytes) -{ - return __rtems_read(fd, buf, nbytes); -} - -int -write(int fd, - char *buf, - int nbytes) -{ - return __rtems_write(fd, buf, nbytes); -} - -int -open(char *buf, - int flags, - int mode) -{ - return __rtems_open(buf, flags, mode); -} - -int -close(int fd) -{ - return __rtems_close(fd); -} - -/* - * lseek -- move read/write pointer. Since a serial port - * is non-seekable, we return an error. - */ -off_t -lseek(int fd, - off_t offset, - int whence) -{ - return __rtems_lseek(fd, offset, whence); -} - -/* - * fstat -- get status of a file. Since we have no file - * system, we just return an error. - */ -int -fstat(int fd, - struct stat *buf) -{ - return __rtems_fstat(fd, buf); -} - -/* - * getpid and kill are provided directly by rtems - */ - -/* - * ioctl -- IO control - */ - -int -ioctl(int fd, int request, void *argp) -{ - return __rtems_ioctl(fd,request,argp); -} - -#endif |