mirror of https://github.com/mkerrisk/man-pages
Update SYNOPSIS to reflect the fact that fchmod(2) needs
either "#define _XOPEN_SOURCE 500" or "#define _BSD_SOURCE".
This commit is contained in:
parent
f78ec19d19
commit
0926883520
|
@ -28,16 +28,18 @@
|
|||
.\" <michael@cantor.informatik.rwth-aachen.de>: NFS details
|
||||
.\" Modified 2004-06-23 by Michael Kerrisk <mtk-manpages@gmx.net>
|
||||
.\"
|
||||
.TH CHMOD 2 2004-06-23 "Linux" "Linux Programmer's Manual"
|
||||
.TH CHMOD 2 2004-07-08 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
chmod, fchmod \- change permissions of a file
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/types.h>
|
||||
.br
|
||||
.B #include <sys/stat.h>
|
||||
.sp
|
||||
.BI "int chmod(const char *" path ", mode_t " mode );
|
||||
.sp
|
||||
.BR "#define _XOPEN_SOURCE 500 " "/* or: " "#define _BSD_SOURCE " */
|
||||
.br
|
||||
.B #include <sys/stat.h>
|
||||
.sp
|
||||
.BI "int fchmod(int " fildes ", mode_t " mode );
|
||||
.SH DESCRIPTION
|
||||
The mode of the file given by
|
||||
|
|
Loading…
Reference in New Issue