1 /* C99 nested struct init with named and non-named initializers */ 2 typedef struct pthread_mutex_t { 3 unsigned int ptm_magic; 4 char ptm_errorcheck; 5 6 char ptm_pad1[3]; 7 8 char ptm_interlock; 9 10 char ptm_pad2[3]; 11 12 volatile void * ptm_owner; 13 void * volatile ptm_waiters; 14 unsigned int ptm_recursed; 15 void *ptm_spare2; 16 } pthread_mutex_t; 17 18 19 struct arc4random_global { 20 21 pthread_mutex_t lock; 22 } arc4random_global = { 23 24 .lock = { 0x33330003, 0, { 0, 0, 0 }, 0, { 0, 0, 0 }, ((void *)0), ((void *)0), 0, ((void *)0) }, 25 }; 26