Changeset 634e746 in rtems for c/src/lib


Ignore:
Timestamp:
01/29/97 00:28:47 (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
dcec5a4
Parents:
2f93371
Message:

All RTEMS system call implementation renamed to be rtems_*.

Location:
c/src/lib/libbsp
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/a29k/portsw/startup/bspstart.c

    r2f93371 r634e746  
    8686    /*
    8787     *  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)
    8989     *  Uses malloc() to get area for the iops, so must be after malloc init
    9090     */
     
    153153  error_code = 'S' << 24 | 'T' << 16;
    154154 
    155   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     155  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    156156    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    157157 
    158   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     158  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    159159    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    160160 
    161   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     161  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    162162    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    163163 
  • c/src/lib/libbsp/a29k/portsw/startup/iface.c

    r2f93371 r634e746  
    2020     int nbytes)
    2121{
    22     return __read(fd, buf, nbytes);
     22    return __rtems_read(fd, buf, nbytes);
    2323}
    2424
     
    2828      int nbytes)
    2929{
    30     return __write(fd, buf, nbytes);
     30    return __rtems_write(fd, buf, nbytes);
    3131}
    3232
     
    3636     int mode)
    3737{
    38     return __open(buf, flags, mode);
     38    return __rtems_open(buf, flags, mode);
    3939}
    4040
     
    4242close(int fd)
    4343{
    44     return __close(fd);
     44    return __rtems_close(fd);
    4545}
    4646
     
    5252isatty(int fd)
    5353{
    54     return __isatty(fd);
     54    return __rtems_isatty(fd);
    5555}
    5656
     
    6464      int whence)
    6565{
    66     return __lseek(fd, offset, whence);
     66    return __rtems_lseek(fd, offset, whence);
    6767}
    6868
     
    7575      struct stat *buf)
    7676{
    77     return __fstat(fd, buf);
     77    return __rtems_fstat(fd, buf);
    7878}
    7979
     
    8181getpid()
    8282{
    83   return __getpid();
     83  return __rtems_getpid();
    8484}
    8585
     
    9191     int sig)
    9292{
    93     return __kill(pid, sig);
     93    return __rtems_kill(pid, sig);
    9494}
    9595
  • c/src/lib/libbsp/hppa1.1/simhppa/startup/bspstart.c

    r2f93371 r634e746  
    131131    /*
    132132     *  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)
    134134     *  Uses malloc() to get area for the iops, so must be after malloc init
    135135     */
     
    246246  error_code = 'S' << 24 | 'T' << 16;
    247247 
    248   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     248  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    249249    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    250250 
    251   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     251  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    252252    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    253253 
    254   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     254  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    255255    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    256256 
  • c/src/lib/libbsp/i386/force386/startup/bspstart.c

    r2f93371 r634e746  
    6161    /*
    6262     *  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)
    6464     *  Uses malloc() to get area for the iops, so must be after malloc init
    6565     */
     
    127127  error_code = 'S' << 24 | 'T' << 16;
    128128 
    129   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     129  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    130130    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    131131 
    132   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     132  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    133133    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    134134 
    135   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     135  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    136136    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    137137 
  • c/src/lib/libbsp/i386/go32/startup/bspstart.c

    r2f93371 r634e746  
    6868    /*
    6969     *  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)
    7171     *  Uses malloc() to get area for the iops, so must be after malloc init
    7272     */
     
    134134  error_code = 'S' << 24 | 'T' << 16;
    135135 
    136   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     136  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    137137    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    138138 
    139   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     139  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    140140    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    141141 
    142   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     142  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    143143    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    144144 
  • c/src/lib/libbsp/i386/i386ex/startup/bspstart.c

    r2f93371 r634e746  
    6262    /*
    6363     *  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)
    6565     *  Uses malloc() to get area for the iops, so must be after malloc init
    6666     */
     
    128128  error_code = 'S' << 24 | 'T' << 16;
    129129 
    130   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     130  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    131131    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    132132 
    133   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     133  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    134134    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    135135 
    136   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     136  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    137137    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    138138 
  • c/src/lib/libbsp/i960/cvme961/startup/bspstart.c

    r2f93371 r634e746  
    6363    /*
    6464     *  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)
    6666     *  Uses malloc() to get area for the iops, so must be after malloc init
    6767     */
     
    129129  error_code = 'S' << 24 | 'T' << 16;
    130130 
    131   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     131  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    132132    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    133133 
    134   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     134  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    135135    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    136136 
    137   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     137  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    138138    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    139139 
  • c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c

    r2f93371 r634e746  
    6161    /*
    6262     *  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)
    6464     *  Uses malloc() to get area for the iops, so must be after malloc init
    6565     */
     
    127127  error_code = 'S' << 24 | 'T' << 16;
    128128 
    129   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     129  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    130130    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    131131 
    132   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     132  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    133133    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    134134 
    135   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     135  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    136136    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    137137 
  • c/src/lib/libbsp/m68k/efi332/startup/bspstart.c

    r2f93371 r634e746  
    6161  /*
    6262   *  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)
    6464   *  Uses malloc() to get area for the iops, so must be after malloc init
    6565   */
     
    127127  error_code = 'S' << 24 | 'T' << 16;
    128128 
    129   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     129  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    130130    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    131131 
    132   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     132  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    133133    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    134134 
    135   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     135  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    136136    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    137137 
  • c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c

    r2f93371 r634e746  
    6767  /*
    6868   *  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)
    7070   *  Uses malloc() to get area for the iops, so must be after malloc init
    7171   */
     
    134134  error_code = 'S' << 24 | 'T' << 16;
    135135 
    136   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     136  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    137137    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    138138 
    139   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     139  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    140140    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    141141 
    142   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     142  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    143143    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    144144 
  • c/src/lib/libbsp/m68k/gen68302/startup/bspstart.c

    r2f93371 r634e746  
    6969    /*
    7070     *  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)
    7272     *  Uses malloc() to get area for the iops, so must be after malloc init
    7373     */
     
    135135  error_code = 'S' << 24 | 'T' << 16;
    136136 
    137   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     137  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    138138    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    139139 
    140   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     140  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    141141    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    142142 
    143   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     143  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    144144    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    145145 
  • c/src/lib/libbsp/m68k/gen68360/startup/bspstart.c

    r2f93371 r634e746  
    6565    /*
    6666     *  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)
    6868     *  Uses malloc() to get area for the iops, so must be after malloc init
    6969     */
     
    131131  error_code = 'S' << 24 | 'T' << 16;
    132132 
    133   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     133  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    134134    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    135135 
    136   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     136  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    137137    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    138138 
    139   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     139  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    140140    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    141141 
  • c/src/lib/libbsp/m68k/idp/startup/bspstart.c

    r2f93371 r634e746  
    7070    /*
    7171     *  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)
    7373     *  Uses malloc() to get area for the iops, so must be after malloc init
    7474     */
     
    136136  error_code = 'S' << 24 | 'T' << 16;
    137137 
    138   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     138  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    139139    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    140140 
    141   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     141  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    142142    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    143143 
    144   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     144  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    145145    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    146146 
  • c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c

    r2f93371 r634e746  
    6363    /*
    6464     *  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)
    6666     *  Uses malloc() to get area for the iops, so must be after malloc init
    6767     */
     
    129129  error_code = 'S' << 24 | 'T' << 16;
    130130 
    131   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     131  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    132132    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    133133 
    134   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     134  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    135135    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    136136 
    137   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     137  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    138138    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    139139 
  • c/src/lib/libbsp/m68k/mvme147/startup/bspstart.c

    r2f93371 r634e746  
    6666    /*
    6767     *  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)
    6969     *  Uses malloc() to get area for the iops, so must be after malloc init
    7070     */
     
    132132  error_code = 'S' << 24 | 'T' << 16;
    133133 
    134   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     134  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    135135    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    136136 
    137   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     137  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    138138    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    139139 
    140   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     140  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    141141    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    142142 
  • c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c

    r2f93371 r634e746  
    6666    /*
    6767     *  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)
    6969     *  Uses malloc() to get area for the iops, so must be after malloc init
    7070     */
     
    132132  error_code = 'S' << 24 | 'T' << 16;
    133133 
    134   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     134  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    135135    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    136136 
    137   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     137  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    138138    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    139139 
    140   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     140  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    141141    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    142142 
  • c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c

    r2f93371 r634e746  
    6969    /*
    7070     *  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)
    7272     *  Uses malloc() to get area for the iops, so must be after malloc init
    7373     */
     
    135135  error_code = 'S' << 24 | 'T' << 16;
    136136 
    137   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     137  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    138138    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    139139 
    140   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     140  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    141141    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    142142 
    143   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     143  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    144144    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    145145 
  • c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c

    r2f93371 r634e746  
    7070    /*
    7171     *  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)
    7373     *  Uses malloc() to get area for the iops, so must be after malloc init
    7474     */
     
    136136  error_code = 'S' << 24 | 'T' << 16;
    137137 
    138   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     138  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    139139    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    140140 
    141   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     141  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    142142    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    143143 
    144   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     144  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    145145    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    146146 
  • c/src/lib/libbsp/powerpc/papyrus/startup/bspstart.c

    r2f93371 r634e746  
    8787    /*
    8888     *  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)
    9090     *  Uses malloc() to get area for the iops, so must be after malloc init
    9191     */
     
    154154  error_code = 'S' << 24 | 'T' << 16;
    155155 
    156   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     156  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    157157    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    158158 
    159   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     159  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    160160    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    161161 
    162   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     162  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    163163    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    164164 
  • c/src/lib/libbsp/powerpc/papyrus/startup/linkcmds

    r2f93371 r634e746  
    2222/* Do we need any of these for elf?
    2323   __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
    2441SECTIONS
    2542{
     
    3855     *(.descriptors)
    3956     *(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 = .;
    4074  } > RAM
    4175 
     
    4781  } > RAM
    4882 
     83  __GOT_START__ = .;
    4984  .got :
    5085  {
     
    5287     *(.got.plt) *(.got)
    5388  } > RAM
     89  __GOT_END__ = .;
    5490 
     91  __SBSS_START__ = .;
    5592  .bss :
    5693  {
     
    5996    bss.end = ALIGN(4);
    6097  } > RAM
     98  __SBSS_END__ = .;
    6199 
    62100  bss.size = bss.end - bss.start;
  • c/src/lib/libbsp/unix/posix/startup/bspstart.c

    r2f93371 r634e746  
    109109    /*
    110110     *  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)
    112112     *  Uses malloc() to get area for the iops, so must be after malloc init
    113113     */
     
    188188  error_code = 'S' << 24 | 'T' << 16;
    189189 
    190   if ((stdin_fd = __open("/dev/console", O_RDONLY, 0)) == -1)
     190  if ((stdin_fd = __rtems_open("/dev/console", O_RDONLY, 0)) == -1)
    191191    rtems_fatal_error_occurred( error_code | 'D' << 8 | '0' );
    192192 
    193   if ((stdout_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     193  if ((stdout_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    194194    rtems_fatal_error_occurred( error_code | 'D' << 8 | '1' );
    195195 
    196   if ((stderr_fd = __open("/dev/console", O_WRONLY, 0)) == -1)
     196  if ((stderr_fd = __rtems_open("/dev/console", O_WRONLY, 0)) == -1)
    197197    rtems_fatal_error_occurred( error_code | 'D' << 8 | '2' );
    198198 
Note: See TracChangeset for help on using the changeset viewer.