Author: bonefish Date: 2011-05-23 13:22:55 +0200 (Mon, 23 May 2011) New Revision: 41671 Changeset: https://dev.haiku-os.org/changeset/41671 Modified: haiku/branches/developer/bonefish/signals/headers/posix/sys/wait.h Log: Should have been part of r41668: waitid() has been implemented. Modified: haiku/branches/developer/bonefish/signals/headers/posix/sys/wait.h =================================================================== --- haiku/branches/developer/bonefish/signals/headers/posix/sys/wait.h 2011-05-23 11:15:51 UTC (rev 41670) +++ haiku/branches/developer/bonefish/signals/headers/posix/sys/wait.h 2011-05-23 11:22:55 UTC (rev 41671) @@ -1,5 +1,5 @@ /* - * Copyright 2004-2010 Haiku Inc. All Rights Reserved. + * Copyright 2004-2011, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _SYS_WAIT_H @@ -28,16 +28,12 @@ #define WIFCORED(value) ((value) & 0x10000) #define WIFCONTINUED(value) ((value) & 0x20000) -/* TODO: waitid() is part of the real-time signal extension. Uncomment when - * implemented! */ -#if 0 /* ID types for waitid() */ typedef enum { P_ALL, /* wait for any children, ignore ID */ P_PID, /* wait for the child whose process ID matches */ P_PGID /* wait for any child whose process group ID matches */ } idtype_t; -#endif /* 0 */ #ifdef __cplusplus @@ -46,7 +42,7 @@ extern pid_t wait(int *_status); extern pid_t waitpid(pid_t pid, int *_status, int options); -/* extern int waitid(idtype_t idType, id_t id, siginfo_t *info, int options); */ +extern int waitid(idtype_t idType, id_t id, siginfo_t *info, int options); #ifdef __cplusplus }