Changeset 634e746 in rtems for c/src/lib/libbsp/a29k
- Timestamp:
- Jan 29, 1997, 12:28:47 AM (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- dcec5a4
- Parents:
- 2f93371
- Location:
- c/src/lib/libbsp/a29k/portsw/startup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/a29k/portsw/startup/bspstart.c
r2f93371 r634e746 86 86 /* 87 87 * Init the RTEMS libio facility to provide UNIX-like system 88 * calls for use by newlib (ie: provide __ open, __close, etc)88 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 89 89 * Uses malloc() to get area for the iops, so must be after malloc init 90 90 */ … … 153 153 error_code = 'S' << 24 | 'T' << 16; 154 154 155 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)155 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 156 156 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 157 157 158 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)158 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 159 159 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 160 160 161 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)161 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 162 162 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 163 163 -
c/src/lib/libbsp/a29k/portsw/startup/iface.c
r2f93371 r634e746 20 20 int nbytes) 21 21 { 22 return __r ead(fd, buf, nbytes);22 return __rtems_read(fd, buf, nbytes); 23 23 } 24 24 … … 28 28 int nbytes) 29 29 { 30 return __ write(fd, buf, nbytes);30 return __rtems_write(fd, buf, nbytes); 31 31 } 32 32 … … 36 36 int mode) 37 37 { 38 return __ open(buf, flags, mode);38 return __rtems_open(buf, flags, mode); 39 39 } 40 40 … … 42 42 close(int fd) 43 43 { 44 return __ close(fd);44 return __rtems_close(fd); 45 45 } 46 46 … … 52 52 isatty(int fd) 53 53 { 54 return __ isatty(fd);54 return __rtems_isatty(fd); 55 55 } 56 56 … … 64 64 int whence) 65 65 { 66 return __ lseek(fd, offset, whence);66 return __rtems_lseek(fd, offset, whence); 67 67 } 68 68 … … 75 75 struct stat *buf) 76 76 { 77 return __ fstat(fd, buf);77 return __rtems_fstat(fd, buf); 78 78 } 79 79 … … 81 81 getpid() 82 82 { 83 return __ getpid();83 return __rtems_getpid(); 84 84 } 85 85 … … 91 91 int sig) 92 92 { 93 return __ kill(pid, sig);93 return __rtems_kill(pid, sig); 94 94 } 95 95
Note: See TracChangeset
for help on using the changeset viewer.