ptg10805159
876 Function Prototypes Appendix A
int pthread_setspecific(pthread_key_tkey,const void *value);
<pthread.h> p. 449
Returns: 0 if OK, error number on failure
int pthread_sigmask(inthow,const sigset_t *restrict set,
sigset_t *restrict oset);
<signal.h> p. 454
how:SIG_BLOCK, SIG_UNBLOCK, SIG_SETMASK
Returns: 0 if OK, error number on failure
int pthread_spin_destroy(pthread_spinlock_t *lock);
<pthread.h> p. 417
Returns: 0 if OK, error number on failure
int pthread_spin_init(pthread_spinlock_t *lock,intpshared);
<pthread.h> p. 417
pshared:PTHREAD_PROCESS_PRIVATE,
PTHREAD_PROCESS_SHARED
Returns: 0 if OK, error number on failure
int pthread_spin_lock(pthread_spinlock_t *lock);
<pthread.h> p. 418
Returns: 0 if OK, error number on failure
int pthread_spin_trylock(pthread_spinlock_t *lock);
<pthread.h> p. 418
Returns: 0 if OK, error number on failure
int pthread_spin_unlock(pthread_spinlock_t *lock);
<pthread.h> p. 418
Returns: 0 if OK, error number on failure
void pthread_testcancel(void);
<pthread.h> p. 453
char *ptsname(intfd);
<stdlib.h> p. 723
Returns: pointer to name of PTY slave if OK,NULLon error
int putc(intc,FILE *fp);
<stdio.h> p. 152
Returns:cif OK,EOFon error
int putchar(intc);
<stdio.h> p. 152
Returns:cif OK,EOFon error