OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [syscalls/] [sysfcntl.c] - Blame information for rev 438

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/* connector for fcntl */
2
/* only called from stdio/fdopen.c, so arg can be int. */
3
 
4
#include <reent.h>
5
#include <errno.h>
6
 
7
int
8
_DEFUN (fcntl, (fd, flag, arg),
9
     int fd _AND
10
     int flag _AND
11
     int arg)
12
{
13
#ifdef HAVE_FCNTL
14
  return _fcntl_r (_REENT, fd, flag, arg);
15
#else /* !HAVE_FCNTL */
16
  errno = ENOSYS;
17
  return -1;
18
#endif /* !HAVE_FCNTL */
19
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.