1 #ifndef _SPARC_NPTL_H 2 3 union sparc_pthread_barrier 4 { 5 struct pthread_barrier b; 6 struct sparc_pthread_barrier_s 7 { 8 unsigned int curr_event; 9 int lock; 10 unsigned int left; 11 unsigned int init_count; 12 unsigned char left_lock; 13 unsigned char pshared; 14 } s; 15 }; 16 17 struct sparc_new_sem 18 { 19 unsigned int value; 20 unsigned char lock; 21 unsigned char private; 22 unsigned char pad[2]; 23 unsigned long int nwaiters; 24 }; 25 26 struct sparc_old_sem 27 { 28 unsigned int value; 29 unsigned char lock; 30 unsigned char private; 31 }; 32 33 #endif 34