diff options
Diffstat (limited to 'libc-top-half/musl/src/thread/pthread_rwlock_init.c')
-rw-r--r-- | libc-top-half/musl/src/thread/pthread_rwlock_init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/thread/pthread_rwlock_init.c b/libc-top-half/musl/src/thread/pthread_rwlock_init.c new file mode 100644 index 0000000..a2c0b47 --- /dev/null +++ b/libc-top-half/musl/src/thread/pthread_rwlock_init.c @@ -0,0 +1,8 @@ +#include "pthread_impl.h" + +int pthread_rwlock_init(pthread_rwlock_t *restrict rw, const pthread_rwlockattr_t *restrict a) +{ + *rw = (pthread_rwlock_t){0}; + if (a) rw->_rw_shared = a->__attr[0]*128; + return 0; +} |