Changeset 634e746 in rtems for c/src/lib/libbsp/a29k/portsw


Ignore:
Timestamp:
Jan 29, 1997, 12:28:47 AM (24 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/a29k/portsw/startup
Files:
2 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
Note: See TracChangeset for help on using the changeset viewer.