From 41f792f83ea6fcd009651e718e36db80f8153f52 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Mon, 12 Aug 2019 19:26:08 +0000 Subject: [PATCH 7/7] sys/ioctl.h: add time_t abi related ioctls from linux v5.2 TODO: this is similar to the uncommitted linux v5.1 SO_TIMESTAMP_{NEW,OLD} socket option changes. instead of explicit number, the _IOR macro is used, so same definition works on mips and powerpc (and the long long[2] type is available without header includes) --- include/sys/ioctl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/sys/ioctl.h b/include/sys/ioctl.h index 372e3ddc..73245afa 100644 --- a/include/sys/ioctl.h +++ b/include/sys/ioctl.h @@ -116,6 +116,11 @@ struct winsize { #define SIOCDEVPRIVATE 0x89F0 #define SIOCPROTOPRIVATE 0x89E0 +#define SIOCGSTAMP_OLD SIOCGSTAMP +#define SIOCGSTAMPNS_OLD SIOCGSTAMPNS +#define SIOCGSTAMP_NEW _IOR(0x89, 0x06, long long[2]) +#define SIOCGSTAMPNS_NEW _IOR(0x89, 0x07, long long[2]) + int ioctl (int, int, ...); #ifdef __cplusplus -- 2.21.0