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

TOMOYO Linux Cross Reference
Linux/arch/arm/include/asm/posix_types.h

Version: ~ [ linux-6.1-rc7 ] ~ [ linux-6.0.10 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.80 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.156 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.225 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.267 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.300 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.334 ] ~ [ 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  *  arch/arm/include/asm/posix_types.h
  3  *
  4  *  Copyright (C) 1996-1998 Russell King.
  5  *
  6  * This program is free software; you can redistribute it and/or modify
  7  * it under the terms of the GNU General Public License version 2 as
  8  * published by the Free Software Foundation.
  9  *
 10  *  Changelog:
 11  *   27-06-1996 RMK     Created
 12  */
 13 #ifndef __ARCH_ARM_POSIX_TYPES_H
 14 #define __ARCH_ARM_POSIX_TYPES_H
 15 
 16 /*
 17  * This file is generally used by user-level software, so you need to
 18  * be a little careful about namespace pollution etc.  Also, we cannot
 19  * assume GCC is being used.
 20  */
 21 
 22 typedef unsigned long           __kernel_ino_t;
 23 typedef unsigned short          __kernel_mode_t;
 24 typedef unsigned short          __kernel_nlink_t;
 25 typedef long                    __kernel_off_t;
 26 typedef int                     __kernel_pid_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 unsigned int            __kernel_size_t;
 31 typedef int                     __kernel_ssize_t;
 32 typedef int                     __kernel_ptrdiff_t;
 33 typedef long                    __kernel_time_t;
 34 typedef long                    __kernel_suseconds_t;
 35 typedef long                    __kernel_clock_t;
 36 typedef int                     __kernel_timer_t;
 37 typedef int                     __kernel_clockid_t;
 38 typedef int                     __kernel_daddr_t;
 39 typedef char *                  __kernel_caddr_t;
 40 typedef unsigned short          __kernel_uid16_t;
 41 typedef unsigned short          __kernel_gid16_t;
 42 typedef unsigned int            __kernel_uid32_t;
 43 typedef unsigned int            __kernel_gid32_t;
 44 
 45 typedef unsigned short          __kernel_old_uid_t;
 46 typedef unsigned short          __kernel_old_gid_t;
 47 typedef unsigned short          __kernel_old_dev_t;
 48 
 49 #ifdef __GNUC__
 50 typedef long long               __kernel_loff_t;
 51 #endif
 52 
 53 typedef struct {
 54         int     val[2];
 55 } __kernel_fsid_t;
 56 
 57 #if defined(__KERNEL__)
 58 
 59 #undef  __FD_SET
 60 #define __FD_SET(fd, fdsetp) \
 61                 (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] |= (1<<((fd) & 31)))
 62 
 63 #undef  __FD_CLR
 64 #define __FD_CLR(fd, fdsetp) \
 65                 (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] &= ~(1<<((fd) & 31)))
 66 
 67 #undef  __FD_ISSET
 68 #define __FD_ISSET(fd, fdsetp) \
 69                 ((((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] & (1<<((fd) & 31))) != 0)
 70 
 71 #undef  __FD_ZERO
 72 #define __FD_ZERO(fdsetp) \
 73                 (memset (fdsetp, 0, sizeof (*(fd_set *)(fdsetp))))
 74 
 75 #endif
 76 
 77 #endif
 78 

~ [ 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