Base WG Resolution Ref: bwg96-06
Topic: pthread_atfork and sys/types.h

This is an approved Base Working Group Resolution for XSH Issue 5.

Last update: 23 February,1998

								Eastwood #6


	Topic:			pthread_atfork and sys/types.h
	Relevant Sections:	pthread_atfork
	Spec:			XSH Issue 5

Resolution Request:

ISO 9945-1:1996, p64, requires the header <sys/types.h> to
declare the pthread_atfork() function. 9945-1:1996, p44, 2.7.3, lines
1246-1249 require pthread_atfork() to be in unistd.h

The X/Open CAE CR manpage requires <unistd.h> and <sys/types.h>.
Should also call out <sys/types.h> ?
Can you confirm that pthread_atfork() should be declared in both
<sys/types.h> and <unistd.h> on both 9945-1:1996 and UNIX98 systems ?

Resolution Response

The POSIX standard requires  that its in <unistd.h> confirmed
by Pasc 1003.1c #4.

Pasc 1003.1c #9 hints that a future standard may put the 
pthread_atfork() function in <pthread.h> however that's not
currently stated.

Forwarded to Base group: Dec 11 1996
Approved: Feb 1998