Changeset a05de51 in rtems
- Timestamp:
- 07/01/98 21:33:38 (25 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 132f194
- Parents:
- dd6dddc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libc/newlibifr.c
rdd6dddc ra05de51 24 24 #include "libio.h" 25 25 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 ) 31 32 { 32 33 return __rtems_read(fd, buf, nbytes); 33 34 } 34 35 35 long 36 _write_r(struct _reent *ptr,37 38 39 36 long _write_r( 37 struct _reent *ptr, 38 int fd, 39 const void *buf, 40 size_t nbytes 40 41 ) 41 42 { 42 43 return __rtems_write(fd, buf, nbytes); 43 44 } 44 45 45 int 46 _open_r(struct _reent *ptr, 47 const char *buf, 48 int flags, 49 int mode) 46 int _open_r( 47 struct _reent *ptr, 48 const char *buf, 49 int flags, 50 int mode 51 ) 50 52 { 51 53 return __rtems_open(buf, flags, mode); 52 54 } 53 55 54 int 55 _close_r(struct _reent *ptr, 56 int fd) 56 int _close_r( 57 struct _reent *ptr, 58 int fd 59 ) 57 60 { 58 61 return __rtems_close(fd); 59 62 } 60 63 61 off_t 62 _lseek_r(struct _reent *ptr, 63 int fd, 64 off_t offset, 65 int whence) 64 off_t _lseek_r( 65 struct _reent *ptr, 66 int fd, 67 off_t offset, 68 int whence 69 ) 66 70 { 67 71 return __rtems_lseek(fd, offset, whence); 68 72 } 69 73 70 int 71 _fstat_r(struct _reent *ptr, 72 int fd, 73 struct stat *buf) 74 int _stat_r( 75 struct _reent *ptr, 76 const char *path, 77 struct stat *buf 78 ) 74 79 { 75 return __rtems_fstat(fd, buf); 80 return stat(path, buf); 81 } 82 83 int _fstat_r( 84 struct _reent *ptr, 85 int fd, 86 struct stat *buf 87 ) 88 { 89 return __rtems_fstat(fd, buf); 76 90 } 77 91
Note: See TracChangeset
for help on using the changeset viewer.