Convert run_once() to parlib_run_once() (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 4 Apr 2017 17:59:25 +0000 (13:59 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 3 May 2017 16:13:02 +0000 (12:13 -0400)
commit934406dd3d35c3527690895b4defd8704546e64d
tree5c15291d2423dd22fa7ad4b6b25fcf06427c0ffc
parent23e3e496e469c9430352399cd59e1b8a81d1fff2
Convert run_once() to parlib_run_once() (XCC)

The kernel still uses run_once(); that's now in the kernel-only header.
Userspace will now use parlib_run_once().  They can also use
pthread_once(), which differs in that you can't pass an argument to the
init function.  That's a POSIX limitation, but I'll need the void *arg for
another use case.

Rebuild glibc.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
13 files changed:
kern/include/common.h
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/socket.c
tools/dev-util/perf/akaros.c
user/benchutil/pvcalarm.c
user/iplib/epoll.c
user/iplib/select.c
user/parlib/debug.c
user/parlib/include/parlib/parlib.h
user/parlib/include/parlib/slab.h
user/parlib/slab.c
user/pthread/futex.c
user/pthread/pthread.c
user/pthread/pthread.h