blob: f50b25bfb82f24a292fd12768b1886b024ad64d5 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <stddef.h>
2#include <stdio.h>
3#include <bits/pthreadtypes.h>
4#include <bits/wordsize.h>
5
6--
7
8MUTEX offsetof (pthread_rwlock_t, __data.__lock)
9NR_READERS offsetof (pthread_rwlock_t, __data.__nr_readers)
10READERS_WAKEUP offsetof (pthread_rwlock_t, __data.__readers_wakeup)
11WRITERS_WAKEUP offsetof (pthread_rwlock_t, __data.__writer_wakeup)
12READERS_QUEUED offsetof (pthread_rwlock_t, __data.__nr_readers_queued)
13WRITERS_QUEUED offsetof (pthread_rwlock_t, __data.__nr_writers_queued)
14FLAGS offsetof (pthread_rwlock_t, __data.__flags)
15WRITER offsetof (pthread_rwlock_t, __data.__writer)
16PSHARED offsetof (pthread_rwlock_t, __data.__shared)