diff options
Diffstat (limited to 'c/src/lib/include/rtems')
-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 */ |