input.h (69ac8c4cb93f2685839ff7b857cef306b388ff3c) | input.h (d9cb4336159a00bd0d9c81b93f02874ef3626057) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2/* 3 * Copyright (c) 1999-2002 Vojtech Pavlik 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 as published by 7 * the Free Software Foundation. 8 */ --- 9 unchanged lines hidden (view full) --- 18 19/* 20 * The event structure itself 21 * Note that __USE_TIME_BITS64 is defined by libc based on 22 * application's request to use 64 bit time_t. 23 */ 24 25struct input_event { | 1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2/* 3 * Copyright (c) 1999-2002 Vojtech Pavlik 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 as published by 7 * the Free Software Foundation. 8 */ --- 9 unchanged lines hidden (view full) --- 18 19/* 20 * The event structure itself 21 * Note that __USE_TIME_BITS64 is defined by libc based on 22 * application's request to use 64 bit time_t. 23 */ 24 25struct input_event { |
26#if (HOST_LONG_BITS != 32 || !defined(__USE_TIME_BITS64)) && !defined(__KERNEL) | 26#if (HOST_LONG_BITS != 32 || !defined(__USE_TIME_BITS64)) && !defined(__KERNEL__) |
27 struct timeval time; 28#define input_event_sec time.tv_sec 29#define input_event_usec time.tv_usec 30#else 31 unsigned long __sec; | 27 struct timeval time; 28#define input_event_sec time.tv_sec 29#define input_event_usec time.tv_usec 30#else 31 unsigned long __sec; |
32#if defined(__sparc__) && defined(__arch64__) 33 unsigned int __usec; 34#else |
|
32 unsigned long __usec; | 35 unsigned long __usec; |
36#endif |
|
33#define input_event_sec __sec 34#define input_event_usec __usec 35#endif 36 uint16_t type; 37 uint16_t code; 38 int32_t value; 39}; 40 --- 466 unchanged lines hidden --- | 37#define input_event_sec __sec 38#define input_event_usec __usec 39#endif 40 uint16_t type; 41 uint16_t code; 42 int32_t value; 43}; 44 --- 466 unchanged lines hidden --- |