summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/stat.2
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-04-01 20:16:31 +0000
committerguenther <guenther@openbsd.org>2013-04-01 20:16:31 +0000
commitf188d74bd9592e8a5da86bf492fc1094a2fb65ad (patch)
tree07f847bb5ce020164101a81e3ed9495acec624c2 /lib/libc/sys/stat.2
parentMake ugen_get_cdesc() a generic function by renaming it to usbd_get_cdesc() (diff)
downloadwireguard-openbsd-f188d74bd9592e8a5da86bf492fc1094a2fb65ad.tar.xz
wireguard-openbsd-f188d74bd9592e8a5da86bf492fc1094a2fb65ad.zip
When there are multiple groups of functions with their own #includes
listed, the #includes in each group are independent, so that users don't need to guess at possible carry-over. general idea ok otto@ millert@ actual diff ok jmc@ schwarze@
Diffstat (limited to 'lib/libc/sys/stat.2')
-rw-r--r--lib/libc/sys/stat.212
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/sys/stat.2 b/lib/libc/sys/stat.2
index 139fd35cdf0..686d6befa55 100644
--- a/lib/libc/sys/stat.2
+++ b/lib/libc/sys/stat.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: stat.2,v 1.34 2013/03/30 09:00:06 jmc Exp $
+.\" $OpenBSD: stat.2,v 1.35 2013/04/01 20:16:31 guenther Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)stat.2 8.3 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: March 30 2013 $
+.Dd $Mdocdate: April 1 2013 $
.Dt STAT 2
.Os
.Sh NAME
@@ -39,17 +39,17 @@
.Nm fstat
.Nd get file status
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
.Fd #include <sys/stat.h>
-.Fd #include <fcntl.h>
.Ft int
.Fn stat "const char *path" "struct stat *sb"
.Ft int
.Fn lstat "const char *path" "struct stat *sb"
.Ft int
-.Fn fstatat "int fd" "const char *path" "struct stat *sb" "int flag"
-.Ft int
.Fn fstat "int fd" "struct stat *sb"
+.Fd #include <sys/stat.h>
+.Fd #include <fcntl.h>
+.Ft int
+.Fn fstatat "int fd" "const char *path" "struct stat *sb" "int flag"
.Sh DESCRIPTION
The
.Fn stat