1 2 3 4 5 6 7 8 9 10
#include <stddef.h> #include <sched.h> #include <bits/pthreadtypes.h> #include "internaltypes.h" -- VALUE offsetof (struct new_sem, value) PRIVATE offsetof (struct new_sem, private) NWAITERS offsetof (struct new_sem, nwaiters)