From: Yury Norov <ynorov@caviumnetworks.com>
To: <libc-alpha@sourceware.org>
Cc: Yury Norov <ynorov@caviumnetworks.com>
Subject: [PATCH] fcntl: define F_GETLK, F_SETLK, F_SETLKW to 64-bit versions if __OFF_T_MATCHES_OFF64_T is enabled
Date: Tue, 11 Oct 2016 16:39:00 -0000 [thread overview]
Message-ID: <1476203966-23614-1-git-send-email-ynorov@caviumnetworks.com> (raw)
If __OFF_T_MATCHES_OFF64_T is enabled, the behavior of sys_fcntl should
be the same as if __USE_FILE_OFFSET64 is enabled. This patch adds
required definitions.
Tested with aarch64/lp64 and aarch64/ilp32
* sysdeps/unix/sysv/linux/bits/fcntl-linux.h: define F_GETLK,
F_SETLK, F_SETLKW to 64-bit versions depending on
__OFF_T_MATCHES_OFF64_T
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
---
sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
index 7e5b0ae..2e84835 100644
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
@@ -101,7 +101,7 @@
#endif
#ifndef F_GETLK
-# ifndef __USE_FILE_OFFSET64
+# if !defined (__USE_FILE_OFFSET64) && !defined (__OFF_T_MATCHES_OFF64_T)
# 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). */
--
2.7.4
next reply other threads:[~2016-10-11 16:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-11 16:39 Yury Norov [this message]
2016-10-25 21:03 ` Yury Norov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476203966-23614-1-git-send-email-ynorov@caviumnetworks.com \
--to=ynorov@caviumnetworks.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).