diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-04-01 20:16:32 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-04-01 20:16:32 +0000 |
commit | 030f1f7692150b473bd81cc1ad5311920bec0b2a (patch) | |
tree | f76b764db99acb3b51c89925f3a47e29c83fab69 /lib/libc/sys/chown.2 | |
parent | 19d2f93723b09432ac8a1a1c6dd37e135f731140 (diff) |
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/chown.2')
-rw-r--r-- | lib/libc/sys/chown.2 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/sys/chown.2 b/lib/libc/sys/chown.2 index dde8c2f2176..d3e3c2127fc 100644 --- a/lib/libc/sys/chown.2 +++ b/lib/libc/sys/chown.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: chown.2,v 1.20 2013/03/31 05:07:55 guenther Exp $ +.\" $OpenBSD: chown.2,v 1.21 2013/04/01 20:16:31 guenther Exp $ .\" $NetBSD: chown.2,v 1.10 1995/10/12 15:40:47 jtc Exp $ .\" .\" Copyright (c) 1980, 1991, 1993, 1994 @@ -30,7 +30,7 @@ .\" .\" @(#)chown.2 8.4 (Berkeley) 4/19/94 .\" -.Dd $Mdocdate: March 31 2013 $ +.Dd $Mdocdate: April 1 2013 $ .Dt CHOWN 2 .Os .Sh NAME @@ -40,17 +40,17 @@ .Nm fchown .Nd change owner and group of a file or link .Sh SYNOPSIS -.Fd #include <sys/types.h> -.Fd #include <fcntl.h> .Fd #include <unistd.h> .Ft int .Fn chown "const char *path" "uid_t owner" "gid_t group" .Ft int .Fn lchown "const char *path" "uid_t owner" "gid_t group" .Ft int -.Fn fchownat "int fd" "const char *path" "uid_t owner" "gid_t group" "int flag" -.Ft int .Fn fchown "int fd" "uid_t owner" "gid_t group" +.Fd #include <fcntl.h> +.Fd #include <unistd.h> +.Ft int +.Fn fchownat "int fd" "const char *path" "uid_t owner" "gid_t group" "int flag" .Sh DESCRIPTION The owner ID and group ID of the file (or link) named by .Fa path |