From 00c02822b89f12806ee764fb3031a880bc7ecc78 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 12 Aug 2000 22:08:19 +0000 Subject: [PATCH] Update. 2000-08-12 Jakub Jelinek * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64): Define for 2.4.1 on sparc as well. * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values for F_GETLK64, F_SETLK64, and F_SETLKW64. * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file. * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file. --- ChangeLog | 9 +++++++++ sysdeps/unix/sysv/linux/sparc/bits/fcntl.h | 13 +++++++++---- sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c | 1 + sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c | 1 + 4 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c create mode 100644 sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c diff --git a/ChangeLog b/ChangeLog index 8641090..ef61a2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2000-08-12 Jakub Jelinek + + * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64): + Define for 2.4.1 on sparc as well. + * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fill in correct values + for F_GETLK64, F_SETLK64, and F_SETLKW64. + * sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c: New file. + * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: New file. + 2000-08-12 Ulrich Drepper * io/fts.c (fts_stat): Recognize DT_WHT only if S_IFWHT is also diff --git a/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h b/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h index cee74b7..4cf16f2 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h @@ -88,10 +88,15 @@ # define F_GETSIG 11 /* Get number of signal to be sent. */ #endif -/* XXX missing */ -#define F_GETLK64 7 /* Get record locking info. */ -#define F_SETLK64 8 /* Set record locking info (non-blocking). */ -#define F_SETLKW64 9 /* Set record locking info (blocking). */ +#if __WORDSIZE == 64 +#define F_GETLK64 F_GETLK /* Get record locking info. */ +#define F_SETLK64 F_SETLK /* Set record locking info (non-blocking). */ +#define F_SETLKW64 F_SETLKW /* Set record locking info (blocking). */ +#else +#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). */ +#endif /* for F_[GET|SET]FL */ #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c b/sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c new file mode 100644 index 0000000..ea951bc --- /dev/null +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/fcntl.c @@ -0,0 +1 @@ +#include diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c b/sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c new file mode 100644 index 0000000..a88f5a7 --- /dev/null +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c @@ -0,0 +1 @@ +#include -- 2.7.4