svn commit: r217853 - stable/8/lib/libc/sys
Jilles Tjoelker
jilles at FreeBSD.org
Tue Jan 25 21:45:00 UTC 2011
Author: jilles
Date: Tue Jan 25 21:45:00 2011
New Revision: 217853
URL: http://svn.freebsd.org/changeset/base/217853
Log:
MFC r217484: mknod(2): The required include is <sys/stat.h>, not <unistd.h>.
This is what SUSv4 requires, and also the only thing that works if strict
standards compliance is requested or mknodat() is needed.
PR: standards/123688
Submitted by: gcooper
Modified:
stable/8/lib/libc/sys/mknod.2
Directory Properties:
stable/8/lib/libc/ (props changed)
stable/8/lib/libc/locale/ (props changed)
stable/8/lib/libc/stdtime/ (props changed)
stable/8/lib/libc/sys/ (props changed)
Modified: stable/8/lib/libc/sys/mknod.2
==============================================================================
--- stable/8/lib/libc/sys/mknod.2 Tue Jan 25 21:42:05 2011 (r217852)
+++ stable/8/lib/libc/sys/mknod.2 Tue Jan 25 21:45:00 2011 (r217853)
@@ -28,7 +28,7 @@
.\" @(#)mknod.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd April 10, 2008
+.Dd January 16, 2011
.Dt MKNOD 2
.Os
.Sh NAME
@@ -38,7 +38,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In unistd.h
+.In sys/stat.h
.Ft int
.Fn mknod "const char *path" "mode_t mode" "dev_t dev"
.Ft int
More information about the svn-src-all
mailing list