summaryrefslogtreecommitdiff
path: root/arch/generic/bits/ioctl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-11-01 20:22:41 -0400
committerRich Felker <dalias@aerifal.cx>2019-11-02 18:30:56 -0400
commitb60fdf133c033d4ad6b04a8237f253563fae5928 (patch)
tree57b2e9aac0bc4b00c10415f16a6b34ce41d427c2 /arch/generic/bits/ioctl.h
parentc71dbb24c947dc14f43960bfec4da670fccba580 (diff)
downloadmusl-b60fdf133c033d4ad6b04a8237f253563fae5928.tar.gz
move time64 ioctl numbers to generic bits/ioctl.h
now that all 32-bit archs have 64-bit time types, the values for the time-related ioctls can be shared. the mechanism for this is an arch/generic version of the bits header. archs which don't use the generic header still need to duplicate the definitions. x32, which does not use the new time64 values of the macros, already has its own overrides, so this commit does not affect it.
Diffstat (limited to 'arch/generic/bits/ioctl.h')
-rw-r--r--arch/generic/bits/ioctl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/generic/bits/ioctl.h b/arch/generic/bits/ioctl.h
index d1a6c035..60ae8b85 100644
--- a/arch/generic/bits/ioctl.h
+++ b/arch/generic/bits/ioctl.h
@@ -104,7 +104,12 @@
#define FIOGETOWN 0x8903
#define SIOCGPGRP 0x8904
#define SIOCATMARK 0x8905
+#if __LONG_MAX == 0x7fffffff
+#define SIOCGSTAMP _IOR(0x89, 6, char[16])
+#define SIOCGSTAMPNS _IOR(0x89, 7, char[16])
+#else
#define SIOCGSTAMP 0x8906
#define SIOCGSTAMPNS 0x8907
+#endif
#include <bits/ioctl_fix.h>