diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-01-29 00:29:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-01-29 00:29:25 +0000 |
commit | dcec5a4d60405c206b1fab8630534e917fdf9857 (patch) | |
tree | 53dd9f4fbaffd74fbb5e8311ec6a2efe83eb84ea /c/src/lib/include/rtems/libio.h | |
parent | All RTEMS system call implementation renamed to be __rtems_*. (diff) | |
download | rtems-dcec5a4d60405c206b1fab8630534e917fdf9857.tar.bz2 |
Merged newlib's libgloss support for rtems into this directory. This
should simplify the build process.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/include/rtems/libio.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/c/src/lib/include/rtems/libio.h b/c/src/lib/include/rtems/libio.h index 07d72620b1..b518100484 100644 --- a/c/src/lib/include/rtems/libio.h +++ b/c/src/lib/include/rtems/libio.h @@ -13,6 +13,8 @@ #ifndef _RTEMS_LIBIO_H #define _RTEMS_LIBIO_H +#include <sys/stat.h> + typedef unsigned32 rtems_libio_offset_t; /* @@ -88,11 +90,13 @@ typedef struct { void rtems_libio_config(rtems_configuration_table *config, unsigned32 max_fds); void rtems_libio_init(void); -int __open(const char *pathname, unsigned32 flag, unsigned32 mode); -int __close(int fd); -int __read(int fd, void *buffer, unsigned32 count); -int __write(int fd, const void *buffer, unsigned32 count); -int __ioctl(int fd, unsigned32 command, void *buffer); -int __lseek(int fd, rtems_libio_offset_t offset, int whence); +int __rtems_open(const char *pathname, unsigned32 flag, unsigned32 mode); +int __rtems_close(int fd); +int __rtems_read(int fd, void *buffer, unsigned32 count); +int __rtems_write(int fd, const void *buffer, unsigned32 count); +int __rtems_ioctl(int fd, unsigned32 command, void *buffer); +int __rtems_lseek(int fd, rtems_libio_offset_t offset, int whence); +int __rtems_fstat(int _fd, struct stat* _sbuf); +int __rtems_isatty(int _fd); #endif /* _RTEMS_LIBIO_H */ |