summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/a29k
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-01-29 00:28:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-01-29 00:28:47 +0000
commit634e746544cc226ef388880bb1d3ec0144ff29db (patch)
treebd4e86ee66bc8f471f65688b51308eaef2f52636 /c/src/lib/libbsp/a29k
parentThe CONSOLE_USE_INTERRUPTS and CONSOLE_USE_POLLED macros are now (diff)
downloadrtems-634e746544cc226ef388880bb1d3ec0144ff29db.tar.bz2
All RTEMS system call implementation renamed to be __rtems_*.
Diffstat (limited to 'c/src/lib/libbsp/a29k')
-rw-r--r--c/src/lib/libbsp/a29k/portsw/startup/bspstart.c8
-rw-r--r--c/src/lib/libbsp/a29k/portsw/startup/iface.c18
2 files changed, 13 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/a29k/portsw/startup/bspstart.c b/c/src/lib/libbsp/a29k/portsw/startup/bspstart.c
index 1553203875..8325195162 100644
--- a/c/src/lib/libbsp/a29k/portsw/startup/bspstart.c
+++ b/c/src/lib/libbsp/a29k/portsw/startup/bspstart.c
@@ -85,7 +85,7 @@ void bsp_libc_init()
/*
* Init the RTEMS libio facility to provide UNIX-like system
- * calls for use by newlib (ie: provide __open, __close, etc)
+ * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc)
* Uses malloc() to get area for the iops, so must be after malloc init
*/
@@ -152,13 +152,13 @@ bsp_postdriver_hook(void)
error_code = 'S' << 24 | 'T' << 16;
- if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
+ if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
- if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
+ if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
- if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
+ if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2))
diff --git a/c/src/lib/libbsp/a29k/portsw/startup/iface.c b/c/src/lib/libbsp/a29k/portsw/startup/iface.c
index 06f49f60bf..90ab480037 100644
--- a/c/src/lib/libbsp/a29k/portsw/startup/iface.c
+++ b/c/src/lib/libbsp/a29k/portsw/startup/iface.c
@@ -19,7 +19,7 @@ read(int fd,
char *buf,
int nbytes)
{
- return __read(fd, buf, nbytes);
+ return __rtems_read(fd, buf, nbytes);
}
int
@@ -27,7 +27,7 @@ write(int fd,
char *buf,
int nbytes)
{
- return __write(fd, buf, nbytes);
+ return __rtems_write(fd, buf, nbytes);
}
int
@@ -35,13 +35,13 @@ open(char *buf,
int flags,
int mode)
{
- return __open(buf, flags, mode);
+ return __rtems_open(buf, flags, mode);
}
int
close(int fd)
{
- return __close(fd);
+ return __rtems_close(fd);
}
/*
@@ -51,7 +51,7 @@ close(int fd)
int
isatty(int fd)
{
- return __isatty(fd);
+ return __rtems_isatty(fd);
}
/*
@@ -63,7 +63,7 @@ lseek(int fd,
off_t offset,
int whence)
{
- return __lseek(fd, offset, whence);
+ return __rtems_lseek(fd, offset, whence);
}
/*
@@ -74,13 +74,13 @@ int
fstat(int fd,
struct stat *buf)
{
- return __fstat(fd, buf);
+ return __rtems_fstat(fd, buf);
}
int
getpid()
{
- return __getpid();
+ return __rtems_getpid();
}
/*
@@ -90,7 +90,7 @@ int
kill(int pid,
int sig)
{
- return __kill(pid, sig);
+ return __rtems_kill(pid, sig);
}