about summary refs log tree commit diff
path: root/misc/sys
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-07-21 11:42:31 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-07-21 11:58:09 +0200
commit82c395d91ea4f69120d453aeec398e3042cad5fc (patch)
tree303dc68a9a65b06962c834932cd02c72f35a2432 /misc/sys
parent39e8eb597303fb8bea07d87f82f4df1cf1586c1c (diff)
downloadglibc-82c395d91ea4f69120d453aeec398e3042cad5fc.tar.gz
glibc-82c395d91ea4f69120d453aeec398e3042cad5fc.tar.xz
glibc-82c395d91ea4f69120d453aeec398e3042cad5fc.zip
misc: Add time64 alias for ioctl
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'misc/sys')
-rw-r--r--misc/sys/ioctl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/sys/ioctl.h b/misc/sys/ioctl.h
index ddd204d95f..6884d9925f 100644
--- a/misc/sys/ioctl.h
+++ b/misc/sys/ioctl.h
@@ -38,7 +38,17 @@ __BEGIN_DECLS
 /* Perform the I/O control operation specified by REQUEST on FD.
    One argument may follow; its presence and type depend on REQUEST.
    Return value depends on REQUEST.  Usually -1 indicates error.  */
+#ifndef __USE_TIME_BITS64
 extern int ioctl (int __fd, unsigned long int __request, ...) __THROW;
+#else
+# ifdef __REDIRECT
+extern int __REDIRECT (ioctl, (int __fd, unsigned long int __request, ...),
+		       __ioctl_time64) __THROW;
+# else
+extern int __ioctl_time64 (int __fd, unsigned long int __request, ...) __THROW;
+#  define ioctl __ioctl_time64
+# endif
+#endif
 
 __END_DECLS