~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/asm-s390/posix_types.h

Version: ~ [ linux-6.2-rc3 ] ~ [ linux-6.1.5 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.87 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.162 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.228 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.269 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.302 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.302 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  *  include/asm-s390/posix_types.h
  3  *
  4  *  S390 version
  5  *
  6  *  Derived from "include/asm-i386/posix_types.h"
  7  */
  8 
  9 #ifndef __ARCH_S390_POSIX_TYPES_H
 10 #define __ARCH_S390_POSIX_TYPES_H
 11 
 12 /*
 13  * This file is generally used by user-level software, so you need to
 14  * be a little careful about namespace pollution etc.  Also, we cannot
 15  * assume GCC is being used.
 16  */
 17 
 18 typedef long            __kernel_off_t;
 19 typedef int             __kernel_pid_t;
 20 typedef unsigned long   __kernel_size_t;
 21 typedef long            __kernel_time_t;
 22 typedef long            __kernel_suseconds_t;
 23 typedef long            __kernel_clock_t;
 24 typedef int             __kernel_timer_t;
 25 typedef int             __kernel_clockid_t;
 26 typedef int             __kernel_daddr_t;
 27 typedef char *          __kernel_caddr_t;
 28 typedef unsigned short  __kernel_uid16_t;
 29 typedef unsigned short  __kernel_gid16_t;
 30 
 31 #ifdef __GNUC__
 32 typedef long long       __kernel_loff_t;
 33 #endif
 34 
 35 #ifndef __s390x__
 36 
 37 typedef unsigned long   __kernel_ino_t;
 38 typedef unsigned short  __kernel_mode_t;
 39 typedef unsigned short  __kernel_nlink_t;
 40 typedef unsigned short  __kernel_ipc_pid_t;
 41 typedef unsigned short  __kernel_uid_t;
 42 typedef unsigned short  __kernel_gid_t;
 43 typedef int             __kernel_ssize_t;
 44 typedef int             __kernel_ptrdiff_t;
 45 typedef unsigned int    __kernel_uid32_t;
 46 typedef unsigned int    __kernel_gid32_t;
 47 typedef unsigned short  __kernel_old_uid_t;
 48 typedef unsigned short  __kernel_old_gid_t;
 49 typedef unsigned short  __kernel_old_dev_t;
 50 
 51 #else /* __s390x__ */
 52 
 53 typedef unsigned int    __kernel_ino_t;
 54 typedef unsigned int    __kernel_mode_t;
 55 typedef unsigned int    __kernel_nlink_t;
 56 typedef int             __kernel_ipc_pid_t;
 57 typedef unsigned int    __kernel_uid_t;
 58 typedef unsigned int    __kernel_gid_t;
 59 typedef long            __kernel_ssize_t;
 60 typedef long            __kernel_ptrdiff_t;
 61 typedef unsigned long   __kernel_sigset_t;      /* at least 32 bits */
 62 typedef __kernel_uid_t __kernel_old_uid_t;
 63 typedef __kernel_gid_t __kernel_old_gid_t;
 64 typedef __kernel_uid_t __kernel_uid32_t;
 65 typedef __kernel_gid_t __kernel_gid32_t;
 66 typedef unsigned short __kernel_old_dev_t;
 67 
 68 #endif /* __s390x__ */
 69 
 70 typedef struct {
 71 #if defined(__KERNEL__) || defined(__USE_ALL)
 72         int     val[2];
 73 #else                        /* !defined(__KERNEL__) && !defined(__USE_ALL)*/
 74         int     __val[2];
 75 #endif                       /* !defined(__KERNEL__) && !defined(__USE_ALL)*/
 76 } __kernel_fsid_t;
 77 
 78 
 79 #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
 80 
 81 #ifndef _S390_BITOPS_H
 82 #include <asm/bitops.h>
 83 #endif
 84 
 85 #undef  __FD_SET
 86 #define __FD_SET(fd,fdsetp)  set_bit(fd,fdsetp->fds_bits)
 87 
 88 #undef  __FD_CLR
 89 #define __FD_CLR(fd,fdsetp)  clear_bit(fd,fdsetp->fds_bits)
 90 
 91 #undef  __FD_ISSET
 92 #define __FD_ISSET(fd,fdsetp)  test_bit(fd,fdsetp->fds_bits)
 93 
 94 #undef  __FD_ZERO
 95 #define __FD_ZERO(fdsetp) (memset (fdsetp, 0, sizeof(*(fd_set *)fdsetp)))
 96 
 97 #endif     /* defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)*/
 98 
 99 #endif
100 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp