From 07a3253de2c3f9bc2d96a351680ec72548dadd2d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 23 Nov 1998 19:07:58 +0000 Subject: 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. --- c/src/lib/libc/newlibifr.c | 103 --------------------------------------------- 1 file changed, 103 deletions(-) delete mode 100644 c/src/lib/libc/newlibifr.c (limited to 'c/src/lib/libc/newlibifr.c') diff --git a/c/src/lib/libc/newlibifr.c b/c/src/lib/libc/newlibifr.c deleted file mode 100644 index 5d870c91a6..0000000000 --- a/c/src/lib/libc/newlibifr.c +++ /dev/null @@ -1,103 +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 -#if defined(RTEMS_NEWLIB) - -#include -#include -#include -#include - -#include - -#include "internal.h" -#include "libio.h" - -_ssize_t _read_r( - struct _reent *ptr, - int fd, - void *buf, - size_t nbytes -) -{ - return __rtems_read(fd, buf, nbytes); -} - -long _write_r( - struct _reent *ptr, - int fd, - const void *buf, - size_t nbytes -) -{ - return __rtems_write(fd, buf, nbytes); -} - -int _open_r( - struct _reent *ptr, - const char *buf, - int flags, - int mode -) -{ - return __rtems_open(buf, flags, mode); -} - -int _close_r( - struct _reent *ptr, - int fd -) -{ - return __rtems_close(fd); -} - -off_t _lseek_r( - struct _reent *ptr, - int fd, - off_t offset, - int whence -) -{ - return __rtems_lseek(fd, offset, whence); -} - -int _stat_r( - struct _reent *ptr, - const char *path, - struct stat *buf -) -{ - return stat(path, buf); -} - -int _fstat_r( - struct _reent *ptr, - int fd, - struct stat *buf -) -{ - return __rtems_fstat(fd, buf); -} - -pid_t _getpid_r(struct _reent *ptr) -{ - pid_t __getpid(); - return __getpid(); -} - -int _kill_r( struct _reent *ptr, pid_t pid, int sig ) -{ - int __kill(); - return __kill(pid, sig); -} -#endif -- cgit v1.2.3