Home GnuPG
Diffusion nPth dbfcb88f4281

Make npth_{s,g}etname_np portable.
dbfcb88f4281Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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.

Details

Provenance
wernerAuthored on Jan 26 2012, 5:01 PM
Parents
rPTH6fde8b5a7463: Check for the non-portable pthread_tryjoin_np.
Branches
Unknown
Tags
Unknown