Make npth_{s,g}etname_np portable.
authorWerner Koch <wk@gnupg.org>
Thu, 26 Jan 2012 16:01:28 +0000 (17:01 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 26 Jan 2012 16:01:28 +0000 (17:01 +0100)
commitdbfcb88f4281e8b69a41959c94ea658b7550160c
tree84f4948b6e11902eb7e79bd1320c367f12abdafb
parent6fde8b5a7463204f93cf537515921b1734c83364
Make npth_{s,g}etname_np portable.

These functions are usually used for debugging.  On systems where
they are not easy to support they will now simply return ENOSYS.
* configure.ac: Check for pthread_setname_np and pthread_getname_np.
* src/libnpth.vers: Add npth_setname_np and npth_getname_np.
* src/npth.c (npth_setname_np, npth_getname_np): New.
* src/npth.h (npth_setname_np, npth_getname_np): Turn macros into
functions.
configure.ac
src/libnpth.vers
src/npth.c
src/npth.h