Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-06-28 06:02:04 +00:00
Code Issues Projects Releases Wiki Activity
Files
64e32287f9d8a84217834bcc3387e9431cad9e4c
musl/src/thread/pthread_rwlockattr_init.c

8 lines
128 B
C
Raw Normal View History

implement pthread_rwlockattr_* (essentially no-ops)
2011-03-07 16:43:25 -05:00
#include "pthread_impl.h"
int pthread_rwlockattr_init(pthread_rwlockattr_t *a)
{
clean up sloppy nested inclusion from pthread_impl.h this mirrors the stdio_impl.h cleanup. one header which is not strictly needed, errno.h, is left in pthread_impl.h, because since pthread functions return their error codes rather than using errno, nearly every single pthread function needs the errno constants. in a few places, rather than bringing in string.h to use memset, the memset was replaced by direct assignment. this seems to generate much better code anyway, and makes many functions which were previously non-leaf functions into leaf functions (possibly eliminating a great deal of bloat on some platforms where non-leaf functions require ugly prologue and/or epilogue).
2012-11-08 17:04:20 -05:00
*a = (pthread_rwlockattr_t){0};
implement pthread_rwlockattr_* (essentially no-ops)
2011-03-07 16:43:25 -05:00
return 0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 250ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API