This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Patch: _fcntl for ARM
- From: "J. Johnston" <jjohnstn at redhat dot com>
- To: Anthony Green <green at redhat dot com>
- Cc: newlib at sources dot redhat dot com
- Date: Mon, 08 Apr 2002 16:24:12 -0400
- Subject: Re: Patch: _fcntl for ARM
- Organization: Red Hat Inc.
- References: <200203160620.g2G6Kpn20589@louie.sfbay.redhat.com>
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)