Added _stat_r and changed spacing.

This commit is contained in:
Joel Sherrill
1998-07-01 21:33:38 +00:00
parent dd6dddcf1e
commit a05de51283

View File

@@ -23,17 +23,18 @@
#include "internal.h"
#include "libio.h"
_ssize_t
_read_r(struct _reent *ptr,
_ssize_t _read_r(
struct _reent *ptr,
int fd,
void *buf,
size_t nbytes)
size_t nbytes
)
{
return __rtems_read(fd, buf, nbytes);
}
long
_write_r(struct _reent *ptr,
long _write_r(
struct _reent *ptr,
int fd,
const void *buf,
size_t nbytes
@@ -42,35 +43,48 @@ _write_r(struct _reent *ptr,
return __rtems_write(fd, buf, nbytes);
}
int
_open_r(struct _reent *ptr,
int _open_r(
struct _reent *ptr,
const char *buf,
int flags,
int mode)
int mode
)
{
return __rtems_open(buf, flags, mode);
}
int
_close_r(struct _reent *ptr,
int fd)
int _close_r(
struct _reent *ptr,
int fd
)
{
return __rtems_close(fd);
}
off_t
_lseek_r(struct _reent *ptr,
off_t _lseek_r(
struct _reent *ptr,
int fd,
off_t offset,
int whence)
int whence
)
{
return __rtems_lseek(fd, offset, whence);
}
int
_fstat_r(struct _reent *ptr,
int _stat_r(
struct _reent *ptr,
const char *path,
struct stat *buf
)
{
return stat(path, buf);
}
int _fstat_r(
struct _reent *ptr,
int fd,
struct stat *buf)
struct stat *buf
)
{
return __rtems_fstat(fd, buf);
}