Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2016 01:33:16 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r293863 - head/lib/libc/sys
Message-ID:  <201601140133.u0E1XGMF086874@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601140133.u0E1XGMF086874>