svn commit: r293863 - head/lib/libc/sys

Kevin Lo kevlo at FreeBSD.org
Thu Jan 14 01:33:17 UTC 2016


Author: kevlo
Date: Thu Jan 14 01:33:16 2016
New Revision: 293863
URL: https://svnweb.freebsd.org/changeset/base/293863

Log:
  - Add the 'restrict' type qualifier to match function prototype.
  - Remove sys/types.h.

Modified:
  head/lib/libc/sys/stat.2

Modified: head/lib/libc/sys/stat.2
==============================================================================
--- head/lib/libc/sys/stat.2	Thu Jan 14 01:32:17 2016	(r293862)
+++ head/lib/libc/sys/stat.2	Thu Jan 14 01:33:16 2016	(r293863)
@@ -28,7 +28,7 @@
 .\"     @(#)stat.2	8.4 (Berkeley) 5/1/95
 .\" $FreeBSD$
 .\"
-.Dd June 2, 2012
+.Dd January 14, 2016
 .Dt STAT 2
 .Os
 .Sh NAME
@@ -40,12 +40,11 @@
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
-.In sys/types.h
 .In sys/stat.h
 .Ft int
-.Fn stat "const char *path" "struct stat *sb"
+.Fn stat "const char * restrict path" "struct stat * restrict sb"
 .Ft int
-.Fn lstat "const char *path" "struct stat *sb"
+.Fn lstat "const char * restrict path" "struct stat * restrict sb"
 .Ft int
 .Fn fstat "int fd" "struct stat *sb"
 .Ft int


More information about the svn-src-all mailing list