- Timestamp:
- 01/29/97 00:28:47 (26 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- dcec5a4
- Parents:
- 2f93371
- Location:
- c/src/lib/libbsp
- Files:
-
- 21 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 -
c/src/lib/libbsp/hppa1.1/simhppa/startup/bspstart.c
r2f93371 r634e746 131 131 /* 132 132 * Init the RTEMS libio facility to provide UNIX-like system 133 * calls for use by newlib (ie: provide __ open, __close, etc)133 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 134 134 * Uses malloc() to get area for the iops, so must be after malloc init 135 135 */ … … 246 246 error_code = 'S' << 24 | 'T' << 16; 247 247 248 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)248 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 249 249 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 250 250 251 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)251 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 252 252 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 253 253 254 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)254 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 255 255 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 256 256 -
c/src/lib/libbsp/i386/force386/startup/bspstart.c
r2f93371 r634e746 61 61 /* 62 62 * Init the RTEMS libio facility to provide UNIX-like system 63 * calls for use by newlib (ie: provide __ open, __close, etc)63 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 64 64 * Uses malloc() to get area for the iops, so must be after malloc init 65 65 */ … … 127 127 error_code = 'S' << 24 | 'T' << 16; 128 128 129 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)129 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 130 130 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 131 131 132 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)132 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 133 133 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 134 134 135 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)135 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 136 136 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 137 137 -
c/src/lib/libbsp/i386/go32/startup/bspstart.c
r2f93371 r634e746 68 68 /* 69 69 * Init the RTEMS libio facility to provide UNIX-like system 70 * calls for use by newlib (ie: provide __ open, __close, etc)70 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 71 71 * Uses malloc() to get area for the iops, so must be after malloc init 72 72 */ … … 134 134 error_code = 'S' << 24 | 'T' << 16; 135 135 136 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)136 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 137 137 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 138 138 139 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)139 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 140 140 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 141 141 142 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)142 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 143 143 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 144 144 -
c/src/lib/libbsp/i386/i386ex/startup/bspstart.c
r2f93371 r634e746 62 62 /* 63 63 * Init the RTEMS libio facility to provide UNIX-like system 64 * calls for use by newlib (ie: provide __ open, __close, etc)64 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 65 65 * Uses malloc() to get area for the iops, so must be after malloc init 66 66 */ … … 128 128 error_code = 'S' << 24 | 'T' << 16; 129 129 130 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)130 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 131 131 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 132 132 133 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)133 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 134 134 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 135 135 136 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)136 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 137 137 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 138 138 -
c/src/lib/libbsp/i960/cvme961/startup/bspstart.c
r2f93371 r634e746 63 63 /* 64 64 * Init the RTEMS libio facility to provide UNIX-like system 65 * calls for use by newlib (ie: provide __ open, __close, etc)65 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 66 66 * Uses malloc() to get area for the iops, so must be after malloc init 67 67 */ … … 129 129 error_code = 'S' << 24 | 'T' << 16; 130 130 131 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)131 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 132 132 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 133 133 134 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)134 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 135 135 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 136 136 137 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)137 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 138 138 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 139 139 -
c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c
r2f93371 r634e746 61 61 /* 62 62 * Init the RTEMS libio facility to provide UNIX-like system 63 * calls for use by newlib (ie: provide __ open, __close, etc)63 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 64 64 * Uses malloc() to get area for the iops, so must be after malloc init 65 65 */ … … 127 127 error_code = 'S' << 24 | 'T' << 16; 128 128 129 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)129 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 130 130 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 131 131 132 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)132 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 133 133 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 134 134 135 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)135 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 136 136 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 137 137 -
c/src/lib/libbsp/m68k/efi332/startup/bspstart.c
r2f93371 r634e746 61 61 /* 62 62 * Init the RTEMS libio facility to provide UNIX-like system 63 * calls for use by newlib (ie: provide __ open, __close, etc)63 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 64 64 * Uses malloc() to get area for the iops, so must be after malloc init 65 65 */ … … 127 127 error_code = 'S' << 24 | 'T' << 16; 128 128 129 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)129 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 130 130 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 131 131 132 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)132 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 133 133 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 134 134 135 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)135 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 136 136 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 137 137 -
c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c
r2f93371 r634e746 67 67 /* 68 68 * Init the RTEMS libio facility to provide UNIX-like system 69 * calls for use by newlib (ie: provide __ open, __close, etc)69 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 70 70 * Uses malloc() to get area for the iops, so must be after malloc init 71 71 */ … … 134 134 error_code = 'S' << 24 | 'T' << 16; 135 135 136 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)136 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 137 137 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 138 138 139 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)139 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 140 140 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 141 141 142 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)142 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 143 143 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 144 144 -
c/src/lib/libbsp/m68k/gen68302/startup/bspstart.c
r2f93371 r634e746 69 69 /* 70 70 * Init the RTEMS libio facility to provide UNIX-like system 71 * calls for use by newlib (ie: provide __ open, __close, etc)71 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 72 72 * Uses malloc() to get area for the iops, so must be after malloc init 73 73 */ … … 135 135 error_code = 'S' << 24 | 'T' << 16; 136 136 137 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)137 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 138 138 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 139 139 140 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)140 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 141 141 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 142 142 143 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)143 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 144 144 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 145 145 -
c/src/lib/libbsp/m68k/gen68360/startup/bspstart.c
r2f93371 r634e746 65 65 /* 66 66 * Init the RTEMS libio facility to provide UNIX-like system 67 * calls for use by newlib (ie: provide __ open, __close, etc)67 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 68 68 * Uses malloc() to get area for the iops, so must be after malloc init 69 69 */ … … 131 131 error_code = 'S' << 24 | 'T' << 16; 132 132 133 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)133 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 134 134 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 135 135 136 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)136 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 137 137 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 138 138 139 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)139 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 140 140 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 141 141 -
c/src/lib/libbsp/m68k/idp/startup/bspstart.c
r2f93371 r634e746 70 70 /* 71 71 * Init the RTEMS libio facility to provide UNIX-like system 72 * calls for use by newlib (ie: provide __ open, __close, etc)72 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 73 73 * Uses malloc() to get area for the iops, so must be after malloc init 74 74 */ … … 136 136 error_code = 'S' << 24 | 'T' << 16; 137 137 138 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)138 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 139 139 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 140 140 141 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)141 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 142 142 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 143 143 144 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)144 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 145 145 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 146 146 -
c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c
r2f93371 r634e746 63 63 /* 64 64 * Init the RTEMS libio facility to provide UNIX-like system 65 * calls for use by newlib (ie: provide __ open, __close, etc)65 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 66 66 * Uses malloc() to get area for the iops, so must be after malloc init 67 67 */ … … 129 129 error_code = 'S' << 24 | 'T' << 16; 130 130 131 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)131 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 132 132 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 133 133 134 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)134 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 135 135 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 136 136 137 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)137 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 138 138 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 139 139 -
c/src/lib/libbsp/m68k/mvme147/startup/bspstart.c
r2f93371 r634e746 66 66 /* 67 67 * Init the RTEMS libio facility to provide UNIX-like system 68 * calls for use by newlib (ie: provide __ open, __close, etc)68 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 69 69 * Uses malloc() to get area for the iops, so must be after malloc init 70 70 */ … … 132 132 error_code = 'S' << 24 | 'T' << 16; 133 133 134 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)134 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 135 135 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 136 136 137 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)137 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 138 138 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 139 139 140 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)140 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 141 141 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 142 142 -
c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c
r2f93371 r634e746 66 66 /* 67 67 * Init the RTEMS libio facility to provide UNIX-like system 68 * calls for use by newlib (ie: provide __ open, __close, etc)68 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 69 69 * Uses malloc() to get area for the iops, so must be after malloc init 70 70 */ … … 132 132 error_code = 'S' << 24 | 'T' << 16; 133 133 134 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)134 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 135 135 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 136 136 137 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)137 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 138 138 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 139 139 140 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)140 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 141 141 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 142 142 -
c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c
r2f93371 r634e746 69 69 /* 70 70 * Init the RTEMS libio facility to provide UNIX-like system 71 * calls for use by newlib (ie: provide __ open, __close, etc)71 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 72 72 * Uses malloc() to get area for the iops, so must be after malloc init 73 73 */ … … 135 135 error_code = 'S' << 24 | 'T' << 16; 136 136 137 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)137 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 138 138 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 139 139 140 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)140 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 141 141 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 142 142 143 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)143 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 144 144 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 145 145 -
c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c
r2f93371 r634e746 70 70 /* 71 71 * Init the RTEMS libio facility to provide UNIX-like system 72 * calls for use by newlib (ie: provide __ open, __close, etc)72 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 73 73 * Uses malloc() to get area for the iops, so must be after malloc init 74 74 */ … … 136 136 error_code = 'S' << 24 | 'T' << 16; 137 137 138 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)138 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 139 139 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 140 140 141 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)141 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 142 142 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 143 143 144 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)144 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 145 145 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 146 146 -
c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c
r2f93371 r634e746 87 87 /* 88 88 * Init the RTEMS libio facility to provide UNIX-like system 89 * calls for use by newlib (ie: provide __ open, __close, etc)89 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 90 90 * Uses malloc() to get area for the iops, so must be after malloc init 91 91 */ … … 154 154 error_code = 'S' << 24 | 'T' << 16; 155 155 156 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)156 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 157 157 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 158 158 159 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)159 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 160 160 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 161 161 162 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)162 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 163 163 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 164 164 -
c/src/lib/libbsp/powerpc/papyrus/startup/linkcmds
r2f93371 r634e746 22 22 /* Do we need any of these for elf? 23 23 __DYNAMIC = 0; */ 24 25 /* What are these for? */ 26 27 __EXCEPT_START__ = 0; 28 __EXCEPT_END__ = 0; 29 __SDATA2_START__ = 0; 30 __SDATA2_END__ = 0; 31 __SBSS2_START__ = 0; 32 __SBSS2_END__ = 0; 33 __FIXUP_START__ = 0; 34 __FIXUP_END__ = 0; 35 __GOT2_START__ = 0; 36 __GOT2_END__ = 0; 37 __SDATA_START__ = 0; 38 __SDATA_END__ = 0; 39 40 24 41 SECTIONS 25 42 { … … 38 55 *(.descriptors) 39 56 *(rom_ver) 57 etext = ALIGN(0x10); 58 _etext = .; 59 __CTOR_LIST__ = .; 60 LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2) 61 *(.ctors) 62 LONG(0) 63 __CTOR_END__ = .; 64 __DTOR_LIST__ = .; 65 LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2) 66 *(.dtors) 67 LONG(0) 68 __DTOR_END__ = .; 69 *(.lit) 70 *(.shdata) 71 *(.init) 72 *(.fini) 73 _endtext = .; 40 74 } > RAM 41 75 … … 47 81 } > RAM 48 82 83 __GOT_START__ = .; 49 84 .got : 50 85 { … … 52 87 *(.got.plt) *(.got) 53 88 } > RAM 89 __GOT_END__ = .; 54 90 91 __SBSS_START__ = .; 55 92 .bss : 56 93 { … … 59 96 bss.end = ALIGN(4); 60 97 } > RAM 98 __SBSS_END__ = .; 61 99 62 100 bss.size = bss.end - bss.start; -
c/src/lib/libbsp/unix/posix/startup/bspstart.c
r2f93371 r634e746 109 109 /* 110 110 * Init the RTEMS libio facility to provide UNIX-like system 111 * calls for use by newlib (ie: provide __ open, __close, etc)111 * calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc) 112 112 * Uses malloc() to get area for the iops, so must be after malloc init 113 113 */ … … 188 188 error_code = 'S' << 24 | 'T' << 16; 189 189 190 if ((stdin_fd = __ open("/dev/console", O_RDONLY, 0)) == -1)190 if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1) 191 191 rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' ); 192 192 193 if ((stdout_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)193 if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 194 194 rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' ); 195 195 196 if ((stderr_fd = __ open("/dev/console", O_WRONLY, 0)) == -1)196 if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1) 197 197 rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' ); 198 198
Note: See TracChangeset
for help on using the changeset viewer.