NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/48614: pipe2(2) requires fcntl.h, which is not mentioned by manual
>Number: 48614
>Category: lib
>Synopsis: pipe2(2) requires fcntl.h, which is not mentioned by manual
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lib-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 22 14:55:00 +0000 2014
>Originator: steffen
>Release: /jsonn
>Organization:
>Environment:
head as of january
>Description:
>How-To-Repeat:
cat <<__EOT > t.c
#include <unistd.h>
int main(void)
{
int fds[2];
pipe2(fds, O_CLOEXEC);
return 0;
}
__EOT
cc -o zt t.c
>Fix:
--- pipe.2.orig 2014-02-22 15:48:55.000000000 +0100
+++ pipe.2 2014-02-22 15:49:23.000000000 +0100
@@ -41,6 +41,8 @@
.In unistd.h
.Ft int
.Fn pipe "int fildes[2]"
+.In fcntl.h
+.In unistd.h
.Ft int
.Fn pipe2 "int fildes[2]" "int flags"
.Sh DESCRIPTION
Home |
Main Index |
Thread Index |
Old Index