Changeset b82c957 in rtems


Ignore:
Timestamp:
Apr 3, 1998, 6:45:42 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
5fafa0e
Parents:
a456074d
Message:

Removed isatty() since we are now using newlib's implementation as
a result of enabling the newlib POSIX directory.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/include/rtems/libio.h

    ra456074d rb82c957  
    9898int __rtems_lseek(int fd, rtems_libio_offset_t offset, int whence);
    9999int __rtems_fstat(int _fd, struct stat* _sbuf);
    100 int __rtems_isatty(int _fd);
    101100
    102101/*
  • c/src/lib/include/rtems/libio.h

    ra456074d rb82c957  
    9898int __rtems_lseek(int fd, rtems_libio_offset_t offset, int whence);
    9999int __rtems_fstat(int _fd, struct stat* _sbuf);
    100 int __rtems_isatty(int _fd);
    101100
    102101/*
  • c/src/lib/libc/libio.h

    ra456074d rb82c957  
    9898int __rtems_lseek(int fd, rtems_libio_offset_t offset, int whence);
    9999int __rtems_fstat(int _fd, struct stat* _sbuf);
    100 int __rtems_isatty(int _fd);
    101100
    102101/*
  • c/src/lib/libc/newlibif.c

    ra456074d rb82c957  
    5252{
    5353    return __rtems_close(fd);
    54 }
    55 
    56 /*
    57  * isatty -- returns 1 if connected to a terminal device,
    58  *           returns 0 if not.
    59  */
    60 int
    61 isatty(int fd)
    62 {
    63     return __rtems_isatty(fd);
    6454}
    6555
  • c/src/lib/libc/syscalls.c

    ra456074d rb82c957  
    7272}
    7373
    74 int __rtems_isatty(int _fd)
    75 {
    76   struct stat st;
    77 
    78   if (__rtems_fstat(_fd, &st) < 0)
    79     return 0;
    80   return S_ISCHR (st.st_mode);
    81 }
    82 
    8374#if !defined(RTEMS_UNIX)
    8475int stat( const char *path, struct stat *buf )
  • cpukit/libcsupport/include/rtems/libio.h

    ra456074d rb82c957  
    9898int __rtems_lseek(int fd, rtems_libio_offset_t offset, int whence);
    9999int __rtems_fstat(int _fd, struct stat* _sbuf);
    100 int __rtems_isatty(int _fd);
    101100
    102101/*
Note: See TracChangeset for help on using the changeset viewer.