DragonFly-2.3.1.139.g82205 master lib/libc/gen Makefile.inc _pth

看板DFBSD_commit作者時間16年前 (2009/05/28 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 82205bfb5bec67600a6b477c8acf5b7268bd3704 Author: Simon Schubert <simon.schubert@epfl.ch> Date: Tue May 26 22:15:47 2009 +0200 libc: consolidate pthread stub functions To Hasso's and my surprise we are maintaining two sets of stub functions for pthread. These stubs are present so that consumers that are thread aware, but don't require pthreads, will successfully link even without -lpthread. pthread_fake.c was introduced for external consumers, I believe Xorg. It provided externally visible weak symbols for pthread_* functions that all returned an error. _pthread_stubs.c was introduced later so that libc could be made pthread aware. It provided only stub functions that are used by libc itself, provided by weak symbols for _pthread_* (notice leading underscore). These functions returned always success, so that libc could operate properly. This consolidation now provides weak symbols for both pthread_* and _pthread_* for all functions defined by libpthread, except for pthread_create. These functions return success and/or behave properly. Summary of changes: lib/libc/gen/Makefile.inc | 2 +- lib/libc/gen/_pthread_stubs.c | 358 +++++++++++++++++------------------------ lib/libc/gen/pthread_fake.c | 171 -------------------- 3 files changed, 151 insertions(+), 380 deletions(-) delete mode 100644 lib/libc/gen/pthread_fake.c http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/82205bfb5bec67600a6b477c8acf5b7268bd3704 -- DragonFly BSD source repository
文章代碼(AID): #1A7N_m00 (DFBSD_commit)