Bug 6388 - fork man page
fork man page
Product: Red Hat Linux
Classification: Retired
Component: man-pages (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Depends On:
  Show dependency treegraph
Reported: 1999-10-26 12:01 EDT by bcurran
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-05-30 14:01:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description bcurran 1999-10-26 12:01:54 EDT
The man page for fork shows that it needs the unistd.h
header file.  This should be changed to sys/types.h.  A test
compile shows this:

#include <unistd.h>

int bozo(void)
	pid_t ret;
	ret = fork();

The compile line is: gcc -D_POSIX_SOURCE -c foo.c

> gcc -v
Reading specs from
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
Comment 1 Bernhard Rosenkraenzer 2000-02-17 15:03:59 EST
Alternatively, use __pid_t instead of pid_t - fork itself doesn't need
Comment 2 Cristian Gafton 2000-05-22 11:02:59 EDT
assigned to teg
Comment 3 Trond Eivind Glomsrxd 2000-05-30 14:01:59 EDT
Not a bug - fork needs only unistd.h.  You don't need to use the type

Note You need to log in before you can comment on or make changes to this bug.