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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [syscalls/] [sysfcntl.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/* connector for fcntl */
2
/* only called from stdio/fdopen.c, so arg can be int. */
3
 
4
#include <reent.h>
5
 
6
int
7
fcntl (fd, flag, arg)
8
     int fd;
9
     int flag;
10
     int arg;
11
{
12
#ifdef REENTRANT_SYSCALLS_PROVIDED
13
  return _fcntl_r (_REENT, fd, flag, arg);
14
#else
15
  return _fcntl (fd, flag, arg);
16
#endif
17
}

powered by: WebSVN 2.1.0

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