This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Here's a patch for fcntl64 for ARM. Is it ok to install? Andreas 2000-09-08 Andreas Jaeger <aj@suse.de> * sysdeps/unix/sysv/linux/arm/lockf64.c: New file. * sysdeps/unix/sysv/linux/arm/fcntl.c: New file. * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8. (F_GETLK,F_SETLK,F_SETLKW): Handle __USE_FILE_OFFSET64 correctly. ============================================================ Index: sysdeps/unix/sysv/linux/arm/bits/fcntl.h --- sysdeps/unix/sysv/linux/arm/bits/fcntl.h 2000/07/30 16:07:40 1.1 +++ sysdeps/unix/sysv/linux/arm/bits/fcntl.h 2000/09/08 07:50:44 @@ -65,14 +65,19 @@ #define F_SETFD 2 /* Set file descriptor flags. */ #define F_GETFL 3 /* Get file status flags. */ #define F_SETFL 4 /* Set file status flags. */ -#define F_GETLK 5 /* Get record locking info. */ -#define F_SETLK 6 /* Set record locking info (non-blocking). */ -#define F_SETLKW 7 /* Set record locking info (blocking). */ -/* XXX missing */ -#define F_GETLK64 5 /* Get record locking info. */ -#define F_SETLK64 6 /* Set record locking info (non-blocking). */ -#define F_SETLKW64 7 /* Set record locking info (blocking). */ +#ifndef __USE_FILE_OFFSET64 +# define F_GETLK 5 /* Get record locking info. */ +# define F_SETLK 6 /* Set record locking info (non-blocking). */ +# define F_SETLKW 7 /* Set record locking info (blocking). */ +#else +# define F_GETLK F_GETLK64 /* Get record locking info. */ +# define F_SETLK F_SETLK64 /* Set record locking info (non-blocking).*/ +# define F_SETLKW F_SETLKW64 /* Set record locking info (blocking). */ +#endif +#define F_GETLK64 12 /* Get record locking info. */ +#define F_SETLK64 13 /* Set record locking info (non-blocking). */ +#define F_SETLKW64 14 /* Set record locking info (blocking). */ #if defined __USE_BSD || defined __USE_XOPEN2K # define F_SETOWN 8 /* Get owner of socket (receiver of SIGIO). */ ============================================================ Index: sysdeps/unix/sysv/linux/arm/lockf64.c --- sysdeps/unix/sysv/linux/arm/lockf64.c created +++ sysdeps/unix/sysv/linux/arm/lockf64.c Fri Sep 8 09:49:49 2000 1.1 @@ -0,0 +1 @@ +#include <sysdeps/unix/sysv/linux/i386/lockf64.c> ============================================================ Index: sysdeps/unix/sysv/linux/arm/fcntl.c --- sysdeps/unix/sysv/linux/arm/fcntl.c created +++ sysdeps/unix/sysv/linux/arm/fcntl.c Fri Sep 8 09:49:49 2000 1.1 @@ -0,0 +1 @@ +#include <sysdeps/unix/sysv/linux/i386/fcntl.c> -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |