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.
This commit is contained in:
Rich Felker 2019-11-01 20:22:41 -04:00
parent c71dbb24c9
commit b60fdf133c
6 changed files with 5 additions and 21 deletions

View File

@ -1,7 +1,2 @@
#undef FIOQSIZE
#define FIOQSIZE 0x545e
#undef SIOCGSTAMP
#undef SIOCGSTAMPNS
#define SIOCGSTAMP _IOR(0x89, 6, char[16])
#define SIOCGSTAMPNS _IOR(0x89, 7, char[16])

View File

@ -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>

View File

@ -1,4 +0,0 @@
#undef SIOCGSTAMP
#undef SIOCGSTAMPNS
#define SIOCGSTAMP _IOR(0x89, 6, char[16])
#define SIOCGSTAMPNS _IOR(0x89, 7, char[16])

View File

@ -1,4 +0,0 @@
#undef SIOCGSTAMP
#undef SIOCGSTAMPNS
#define SIOCGSTAMP _IOR(0x89, 6, char[16])
#define SIOCGSTAMPNS _IOR(0x89, 7, char[16])

View File

@ -1,4 +0,0 @@
#undef SIOCGSTAMP
#undef SIOCGSTAMPNS
#define SIOCGSTAMP _IOR(0x89, 6, char[16])
#define SIOCGSTAMPNS _IOR(0x89, 7, char[16])

View File

@ -1,4 +0,0 @@
#undef SIOCGSTAMP
#undef SIOCGSTAMPNS
#define SIOCGSTAMP _IOR(0x89, 6, char[16])
#define SIOCGSTAMPNS _IOR(0x89, 7, char[16])