summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/libio.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/libio.h')
-rw-r--r--c/src/lib/libc/libio.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/c/src/lib/libc/libio.h b/c/src/lib/libc/libio.h
index 07d72620b1..b518100484 100644
--- a/c/src/lib/libc/libio.h
+++ b/c/src/lib/libc/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 */