1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 3 * S390 version 4 * 5 */ 6 7 #ifndef __ARCH_S390_POSIX_TYPES_H 8 #define __ARCH_S390_POSIX_TYPES_H 9 10 /* 11 * This file is generally used by user-level software, so you need to 12 * be a little careful about namespace pollution etc. Also, we cannot 13 * assume GCC is being used. 14 */ 15 16 typedef unsigned long __kernel_size_t; 17 typedef long __kernel_ssize_t; 18 #define __kernel_size_t __kernel_size_t 19 20 typedef unsigned short __kernel_old_dev_t; 21 #define __kernel_old_dev_t __kernel_old_dev_t 22 23 #ifndef __s390x__ 24 25 typedef unsigned long __kernel_ino_t; 26 typedef unsigned short __kernel_mode_t; 27 typedef unsigned short __kernel_ipc_pid_t; 28 typedef unsigned short __kernel_uid_t; 29 typedef unsigned short __kernel_gid_t; 30 typedef int __kernel_ptrdiff_t; 31 32 #else /* __s390x__ */ 33 34 typedef unsigned int __kernel_ino_t; 35 typedef unsigned int __kernel_mode_t; 36 typedef int __kernel_ipc_pid_t; 37 typedef unsigned int __kernel_uid_t; 38 typedef unsigned int __kernel_gid_t; 39 typedef long __kernel_ptrdiff_t; 40 typedef unsigned long __kernel_sigset_t; /* at least 32 bits */ 41 42 #endif /* __s390x__ */ 43 44 #define __kernel_ino_t __kernel_ino_t 45 #define __kernel_mode_t __kernel_mode_t 46 #define __kernel_ipc_pid_t __kernel_ipc_pid_t 47 #define __kernel_uid_t __kernel_uid_t 48 #define __kernel_gid_t __kernel_gid_t 49 50 #include <asm-generic/posix_types.h> 51 52 #endif 53