split internal lock API out of libc.h, creating lock.h
commit5f12ffe1239a5e4f8d4e98e2dff4e191a71f4693
authorRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 14:19:54 +0000 (12 10:19 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 22:40:35 +0000 (12 18:40 -0400)
tree39d2397a4c158aa45e26538b0798fe2e23e0d431
parent09e87db555045bf3bcef69c692df24d13b2856fe
split internal lock API out of libc.h, creating lock.h

this further reduces the number of source files which need to include
libc.h and thereby be potentially exposed to libc global state and
internals.

this will also facilitate further improvements like adding an inline
fast-path, if we want to do so later.
25 files changed:
src/dirent/readdir_r.c
src/dirent/rewinddir.c
src/dirent/seekdir.c
src/exit/abort.c
src/exit/at_quick_exit.c
src/exit/atexit.c
src/internal/libc.h
src/internal/lock.h [new file with mode: 0644]
src/locale/dcngettext.c
src/locale/locale_map.c
src/locale/setlocale.c
src/malloc/lite_malloc.c
src/misc/syslog.c
src/prng/random.c
src/signal/sigaction.c
src/stdio/ofl.c
src/thread/pthread_atfork.c
src/thread/pthread_create.c
src/thread/pthread_getschedparam.c
src/thread/pthread_kill.c
src/thread/pthread_setschedparam.c
src/thread/pthread_setschedprio.c
src/thread/sem_open.c
src/thread/synccall.c
src/time/__tz.c