summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/libio.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-01-29 00:29:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-01-29 00:29:25 +0000
commitdcec5a4d60405c206b1fab8630534e917fdf9857 (patch)
tree53dd9f4fbaffd74fbb5e8311ec6a2efe83eb84ea /c/src/lib/libc/libio.c
parentAll RTEMS system call implementation renamed to be __rtems_*. (diff)
downloadrtems-dcec5a4d60405c206b1fab8630534e917fdf9857.tar.bz2
Merged newlib's libgloss support for rtems into this directory. This
should simplify the build process.
Diffstat (limited to 'c/src/lib/libc/libio.c')
-rw-r--r--c/src/lib/libc/libio.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/c/src/lib/libc/libio.c b/c/src/lib/libc/libio.c
index 26448d20a4..3a7325c422 100644
--- a/c/src/lib/libc/libio.c
+++ b/c/src/lib/libc/libio.c
@@ -46,7 +46,7 @@ rtems_libio_t *rtems_libio_last_iop;
#define rtems_libio_check_fd(fd) \
do { \
- if ((fd) >= rtems_libio_number_iops) \
+ if ((unsigned32) (fd) >= rtems_libio_number_iops) \
{ \
errno = EBADF; \
return -1; \
@@ -243,7 +243,7 @@ rtems_libio_free(rtems_libio_t *iop)
}
int
-__open(
+__rtems_open(
const char *pathname,
unsigned32 flag,
unsigned32 mode)
@@ -254,10 +254,12 @@ __open(
rtems_libio_open_close_args_t args;
if ((rc = rtems_io_lookup_name(pathname, &np)) != RTEMS_SUCCESSFUL) {
+/*
if ( rc == RTEMS_UNSATISFIED ) {
puts( "open -- ENOSYS case" );
assert( 0 );
}
+*/
goto done;
}
@@ -291,7 +293,7 @@ done:
}
int
-__close(
+__rtems_close(
int fd
)
{
@@ -316,7 +318,7 @@ __close(
}
int
-__read(
+__rtems_read(
int fd,
void * buffer,
unsigned32 count
@@ -352,7 +354,7 @@ __read(
}
int
-__write(
+__rtems_write(
int fd,
const void *buffer,
unsigned32 count
@@ -388,7 +390,7 @@ __write(
}
int
-__ioctl(
+__rtems_ioctl(
int fd,
unsigned32 command,
void * buffer)
@@ -420,7 +422,7 @@ __ioctl(
int
-__lseek(
+__rtems_lseek(
int fd,
rtems_libio_offset_t offset,
int whence