svn commit: r217854 - stable/7/lib/libc/sys

Jilles Tjoelker jilles at FreeBSD.org
Tue Jan 25 21:51:33 UTC 2011


Author: jilles
Date: Tue Jan 25 21:51:32 2011
New Revision: 217854
URL: http://svn.freebsd.org/changeset/base/217854

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.
  
  PR:		standards/123688
  Submitted by:	gcooper

Modified:
  stable/7/lib/libc/sys/mknod.2
Directory Properties:
  stable/7/lib/libc/   (props changed)
  stable/7/lib/libc/stdtime/   (props changed)

Modified: stable/7/lib/libc/sys/mknod.2
==============================================================================
--- stable/7/lib/libc/sys/mknod.2	Tue Jan 25 21:45:00 2011	(r217853)
+++ stable/7/lib/libc/sys/mknod.2	Tue Jan 25 21:51:32 2011	(r217854)
@@ -28,7 +28,7 @@
 .\"     @(#)mknod.2	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd June 4, 1993
+.Dd January 16, 2011
 .Dt MKNOD 2
 .Os
 .Sh NAME
@@ -37,7 +37,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"
 .Sh DESCRIPTION


More information about the svn-src-stable-7 mailing list