URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 345 |
/* connector for fcntl */
|
/* connector for fcntl */
|
/* only called from stdio/fdopen.c, so arg can be int. */
|
/* only called from stdio/fdopen.c, so arg can be int. */
|
|
|
#include <reent.h>
|
#include <reent.h>
|
#include <errno.h>
|
#include <errno.h>
|
|
|
int
|
int
|
_DEFUN (fcntl, (fd, flag, arg),
|
_DEFUN (fcntl, (fd, flag, arg),
|
int fd _AND
|
int fd _AND
|
int flag _AND
|
int flag _AND
|
int arg)
|
int arg)
|
{
|
{
|
#ifdef HAVE_FCNTL
|
#ifdef HAVE_FCNTL
|
return _fcntl_r (_REENT, fd, flag, arg);
|
return _fcntl_r (_REENT, fd, flag, arg);
|
#else /* !HAVE_FCNTL */
|
#else /* !HAVE_FCNTL */
|
errno = ENOSYS;
|
errno = ENOSYS;
|
return -1;
|
return -1;
|
#endif /* !HAVE_FCNTL */
|
#endif /* !HAVE_FCNTL */
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.