pthread.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /* DO NOT EDIT THIS FILE.
  2. It has been auto-edited by fixincludes from:
  3. "fixinc/tests/inc/pthread.h"
  4. This had to be done to correct non-standard usages in the
  5. original, manufacturer supplied header file. */
  6. #if defined( AIX_ONCE_INIT_1_CHECK )
  7. #define PTHREAD_ONCE_INIT \
  8. {{ \
  9. #endif /* AIX_ONCE_INIT_1_CHECK */
  10. #if defined( AIX_ONCE_INIT_2_CHECK )
  11. 0 \
  12. }}
  13. #endif /* AIX_ONCE_INIT_2_CHECK */
  14. #if defined( AIX_MUTEX_INITIALIZER_1_CHECK )
  15. #define PTHREAD_MUTEX_INITIALIZER \
  16. {{ \
  17. #endif /* AIX_MUTEX_INITIALIZER_1_CHECK */
  18. #if defined( AIX_COND_INITIALIZER_1_CHECK )
  19. #define PTHREAD_COND_INITIALIZER \
  20. {{ \
  21. #endif /* AIX_COND_INITIALIZER_1_CHECK */
  22. #if defined( AIX_RWLOCK_INITIALIZER_1_CHECK )
  23. #define PTHREAD_RWLOCK_INITIALIZER \
  24. {{ \
  25. #endif /* AIX_RWLOCK_INITIALIZER_1_CHECK */
  26. #if defined( AIX_PTHREAD_CHECK )
  27. #define PTHREAD_MUTEX_INITIALIZER \
  28. {...init stuff...}
  29. #endif /* AIX_PTHREAD_CHECK */
  30. #if defined( GLIBC_MUTEX_INIT_CHECK )
  31. #define PTHREAD_MUTEX_INITIALIZER \
  32. { { 0, 0, 0, 0, 0, 0 } }
  33. #ifdef __USE_GNU
  34. # if __WORDSIZE == 64
  35. # define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
  36. { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0 } }
  37. # define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
  38. { { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0 } }
  39. # define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
  40. { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0 } }
  41. # else
  42. # define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
  43. { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, 0 } }
  44. # define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
  45. { { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, 0 } }
  46. # define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
  47. { { 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0, 0 } }
  48. # endif
  49. #endif
  50. # if __WORDSIZE == 64
  51. # define PTHREAD_RWLOCK_INITIALIZER \
  52. { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
  53. # else
  54. # define PTHREAD_RWLOCK_INITIALIZER \
  55. { { 0, 0, 0, 0, 0, 0, 0, 0 } }
  56. # endif
  57. # ifdef __USE_GNU
  58. # if __WORDSIZE == 64
  59. # define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
  60. { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
  61. PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP } }
  62. # else
  63. # define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
  64. { { 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, 0 } }
  65. # endif
  66. # endif
  67. #define PTHREAD_COND_INITIALIZER { { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } }
  68. #endif /* GLIBC_MUTEX_INIT_CHECK */
  69. #if defined( PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK )
  70. extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask);
  71. #endif /* PTHREAD_INCOMPLETE_STRUCT_ARGUMENT_CHECK */
  72. #if defined( SOLARIS_ONCE_INIT_1_CHECK )
  73. #pragma ident "@(#)pthread.h 1.37 04/09/28 SMI"
  74. #define PTHREAD_ONCE_INIT {{0, 0, 0, PTHREAD_ONCE_NOTDONE}}
  75. #endif /* SOLARIS_ONCE_INIT_1_CHECK */
  76. #if defined( SOLARIS_RWLOCK_INIT_1_CHECK )
  77. #ident "@(#)pthread.h 1.26 98/04/12 SMI"
  78. #if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
  79. #define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {0, 0, 0}, {0, 0}, {0, 0}}
  80. #else
  81. #define PTHREAD_RWLOCK_INITIALIZER {0, 0, 0, {{0}, {0}, {0}}, {{0}, {0}}, {{0}, {0}}}
  82. #endif
  83. #endif /* SOLARIS_RWLOCK_INIT_1_CHECK */
  84. #if defined( THREAD_KEYWORD_CHECK )
  85. extern int pthread_create (pthread_t *__restrict __thr,
  86. extern int pthread_kill (pthread_t __thr, int __signo);
  87. extern int pthread_cancel (pthread_t __thr);
  88. #endif /* THREAD_KEYWORD_CHECK */