posix_types.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:2k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  *  include/asm-s390/posix_types.h
  3.  *
  4.  *  S390 version
  5.  *
  6.  *  Derived from "include/asm-i386/posix_types.h"
  7.  */
  8. #ifndef __ARCH_S390_POSIX_TYPES_H
  9. #define __ARCH_S390_POSIX_TYPES_H
  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. typedef unsigned short  __kernel_dev_t;
  16. typedef unsigned long   __kernel_ino_t;
  17. typedef unsigned short  __kernel_mode_t;
  18. typedef unsigned short  __kernel_nlink_t;
  19. typedef long            __kernel_off_t;
  20. typedef int             __kernel_pid_t;
  21. typedef unsigned short  __kernel_ipc_pid_t;
  22. typedef unsigned short  __kernel_uid_t;
  23. typedef unsigned short  __kernel_gid_t;
  24. typedef unsigned long   __kernel_size_t;
  25. typedef int             __kernel_ssize_t;
  26. typedef int             __kernel_ptrdiff_t;
  27. typedef long            __kernel_time_t;
  28. typedef long            __kernel_suseconds_t;
  29. typedef long            __kernel_clock_t;
  30. typedef int             __kernel_daddr_t;
  31. typedef char *          __kernel_caddr_t;
  32. typedef unsigned short __kernel_uid16_t;
  33. typedef unsigned short __kernel_gid16_t;
  34. typedef unsigned int __kernel_uid32_t;
  35. typedef unsigned int __kernel_gid32_t;
  36. typedef unsigned short __kernel_old_uid_t;
  37. typedef unsigned short __kernel_old_gid_t;
  38. #ifdef __GNUC__
  39. typedef long long       __kernel_loff_t;
  40. #endif
  41. typedef struct {
  42. #if defined(__KERNEL__) || defined(__USE_ALL)
  43.         int     val[2];
  44. #else                        /* !defined(__KERNEL__) && !defined(__USE_ALL)*/
  45.         int     __val[2];
  46. #endif                       /* !defined(__KERNEL__) && !defined(__USE_ALL)*/
  47. } __kernel_fsid_t;
  48. #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
  49. #ifndef _S390_BITOPS_H
  50. #include <asm/bitops.h>
  51. #endif
  52. #undef  __FD_SET
  53. #define __FD_SET(fd,fdsetp)  set_bit(fd,fdsetp)
  54. #undef  __FD_CLR
  55. #define __FD_CLR(fd,fdsetp)  clear_bit(fd,fdsetp)
  56. #undef  __FD_ISSET
  57. #define __FD_ISSET(fd,fdsetp)  test_bit(fd,fdsetp)
  58. #undef  __FD_ZERO
  59. #define __FD_ZERO(fdsetp) (memset (fdsetp, 0, sizeof(*(fd_set *)fdsetp)))
  60. #endif     /* defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)*/
  61. #endif