Changeset a05de51 in rtems


Ignore:
Timestamp:
07/01/98 21:33:38 (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
132f194
Parents:
dd6dddc
Message:

Added _stat_r and changed spacing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libc/newlibifr.c

    rdd6dddc ra05de51  
    2424#include "libio.h"
    2525
    26 _ssize_t
    27 _read_r(struct _reent *ptr,
    28      int fd,
    29      void *buf,
    30      size_t nbytes)
     26_ssize_t _read_r(
     27  struct _reent *ptr,
     28  int fd,
     29  void *buf,
     30  size_t nbytes
     31)
    3132{
    32     return __rtems_read(fd, buf, nbytes);
     33  return __rtems_read(fd, buf, nbytes);
    3334}
    3435
    35 long
    36 _write_r(struct _reent *ptr,
    37      int fd,
    38      const void *buf,
    39      size_t nbytes
     36long _write_r(
     37  struct _reent *ptr,
     38  int fd,
     39  const void *buf,
     40  size_t nbytes
    4041)
    4142{
    42     return __rtems_write(fd, buf, nbytes);
     43  return __rtems_write(fd, buf, nbytes);
    4344}
    4445
    45 int
    46 _open_r(struct _reent *ptr,
    47      const char *buf,
    48      int flags,
    49      int mode)
     46int _open_r(
     47  struct _reent *ptr,
     48  const char *buf,
     49  int flags,
     50  int mode
     51)
    5052{
    51     return __rtems_open(buf, flags, mode);
     53  return __rtems_open(buf, flags, mode);
    5254}
    5355
    54 int
    55 _close_r(struct _reent *ptr,
    56     int fd)
     56int _close_r(
     57  struct _reent *ptr,
     58  int fd
     59)
    5760{
    58     return __rtems_close(fd);
     61  return __rtems_close(fd);
    5962}
    6063
    61 off_t
    62 _lseek_r(struct _reent *ptr,
    63       int fd,
    64       off_t offset,
    65       int whence)
     64off_t _lseek_r(
     65  struct _reent *ptr,
     66  int fd,
     67  off_t offset,
     68  int whence
     69)
    6670{
    67     return __rtems_lseek(fd, offset, whence);
     71  return __rtems_lseek(fd, offset, whence);
    6872}
    6973
    70 int
    71 _fstat_r(struct _reent *ptr,
    72       int fd,
    73       struct stat *buf)
     74int _stat_r(
     75  struct _reent *ptr,
     76  const char *path,
     77  struct stat *buf
     78)
    7479{
    75     return __rtems_fstat(fd, buf);
     80  return stat(path, buf);
     81}
     82
     83int _fstat_r(
     84  struct _reent *ptr,
     85  int fd,
     86  struct stat *buf
     87)
     88{
     89  return __rtems_fstat(fd, buf);
    7690}
    7791
Note: See TracChangeset for help on using the changeset viewer.