This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: _fcntl for ARM



This patch adds a missing dummy system call for fcntl.  It's needed in
order to build the gcj runtime for xscale-elf now.  Ok to commit?

Thanks,

AG


Fri Mar 15 17:29:44 2002  Anthony Green  <green@redhat.com>

	* libc/sys/arm/syscalls.c: Add _fcntl.

Index: libc/sys/arm/syscalls.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/arm/syscalls.c,v
retrieving revision 1.5
diff -u -p -c -r1.5 syscalls.c
*** syscalls.c	2002/03/12 21:25:12	1.5
--- syscalls.c	2002/03/16 06:16:01
*************** int     _unlink		_PARAMS ((void));
*** 23,28 ****
--- 23,29 ----
  int     _link 		_PARAMS ((void));
  int     _stat 		_PARAMS ((const char *, struct stat *));
  int     _fstat 		_PARAMS ((int, struct stat *));
+ int     _fcntl 		_PARAMS ((int, int, ...));
  caddr_t _sbrk		_PARAMS ((int));
  int     _getpid		_PARAMS ((int));
  int     _kill		_PARAMS ((int, int));
*************** _fstat (int file, struct stat * st)
*** 514,519 ****
--- 515,526 ----
    st->st_blksize = 1024;
    return 0;
    file = file;
+ }
+ 
+ int
+ _fcntl (int fd, int flag, ...)
+ {
+   return -1;
  }
  
  int _stat (const char *fname, struct stat *st)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]