2010-04-09 09:38:09 +00:00
|
|
|
#include <reent.h>
|
2010-04-26 10:21:24 +00:00
|
|
|
#include <sys/errno.h>
|
2010-04-09 09:38:09 +00:00
|
|
|
|
2010-04-26 10:21:24 +00:00
|
|
|
int _fork_r (struct _reent *r)
|
2010-04-09 09:38:09 +00:00
|
|
|
{
|
|
|
|
/* return "not supported" */
|
2010-04-26 10:21:24 +00:00
|
|
|
r->_errno = ENOTSUP;
|
2010-04-09 09:38:09 +00:00
|
|
|
return -1;
|
|
|
|
}
|
2010-04-26 10:21:24 +00:00
|
|
|
|
|
|
|
_ssize_t
|
|
|
|
_read_r (struct _reent *r, int fd, void *buf, size_t nbytes)
|
|
|
|
{
|
|
|
|
_ssize_t rc;
|
|
|
|
|
|
|
|
rc = -1;
|
|
|
|
|
|
|
|
/* return "not supported" */
|
|
|
|
r->_errno = ENOTSUP;
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
_ssize_t
|
|
|
|
_write_r (struct _reent *r, int fd, const void *buf, size_t nbytes)
|
|
|
|
{
|
|
|
|
_ssize_t rc;
|
|
|
|
|
|
|
|
rc = -1;
|
|
|
|
|
|
|
|
/* return "not supported" */
|
|
|
|
r->_errno = ENOTSUP;
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
_close_r (struct _reent *r, int fd)
|
|
|
|
{
|
|
|
|
_ssize_t rc;
|
|
|
|
|
|
|
|
rc = -1;
|
|
|
|
|
|
|
|
/* return "not supported" */
|
|
|
|
r->_errno = ENOTSUP;
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
_off_t
|
|
|
|
_lseek_r (struct _reent *r, int fd, _off_t offset, int whence)
|
|
|
|
{
|
|
|
|
_ssize_t rc;
|
|
|
|
|
|
|
|
rc = -1;
|
|
|
|
|
|
|
|
/* return "not supported" */
|
|
|
|
r->_errno = ENOTSUP;
|
|
|
|
return rc;
|
|
|
|
}
|