Patch: _fcntl for ARM
J. Johnston
jjohnstn@redhat.com
Mon Apr 8 13:24:00 GMT 2002
Anthony Green wrote:
>
> 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?
>
Yes. Sorry for the delay. Go ahead.
-- Jeff J.
> 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)
More information about the Newlib
mailing list