[RFC 37/37] mode_t.3, system_data_types.7: Move text to a separate page
flat view
From: Alejandro Colomar <hidden>
Date: 2021-11-02 18:15:46
Subsystem:
the rest · Maintainer:
Linus Torvalds
Signed-off-by: Alejandro Colomar <redacted> --- man3/mode_t.3 | 32 +++++++++++++++++++++++++++++++- man7/system_data_types.7 | 32 -------------------------------- 2 files changed, 31 insertions(+), 33 deletions(-)
diff --git a/man3/mode_t.3 b/man3/mode_t.3
index db50c0f09..b2e5bf33d 100644
--- a/man3/mode_t.3
+++ b/man3/mode_t.3@@ -1 +1,31 @@ -.so man7/system_data_types.7 +.TH MODE_T 3 2021-11-02 Linux "Linux Programmer's Manual" +.SH NAME +mode_t \- file attributes +.SH SYNOPSIS +.nf +.B #include <sys/types.h> +.PP +.BR typedef " /* ... */ " mode_t; +.fi +.SH DESCRIPTION +Used for some file attributes (e.g., file mode). +According to POSIX, +it shall be an integer type. +.SH CONFORMING TO +POSIX.1-2001 and later. +.SH NOTES +The following headers also provide this type: +.IR <fcntl.h> , +.IR <ndbm.h> , +.IR <spawn.h> , +.IR <sys/ipc.h> , +.IR <sys/mman.h> , +and +.IR <sys/stat.h> . +.PP +.SH SEE ALSO +.BR chmod (2), +.BR mkdir (2), +.BR open (2), +.BR umask (2), +.BR stat-struct (3)
diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
index a39f7f269..f8971c6dd 100644
--- a/man7/system_data_types.7
+++ b/man7/system_data_types.7@@ -138,38 +138,6 @@ types in this page. .\"------------------------------------- ldiv_t -----------------------/ .\"------------------------------------- lldiv_t ----------------------/ .\"------------------------------------- mode_t -----------------------/ -.TP -.I mode_t -.RS -.IR Include : -.IR <sys/types.h> . -Alternatively, -.IR <fcntl.h> , -.IR <ndbm.h> , -.IR <spawn.h> , -.IR <sys/ipc.h> , -.IR <sys/mman.h> , -or -.IR <sys/stat.h> . -.PP -Used for some file attributes (e.g., file mode). -According to POSIX, -it shall be an integer type. -.PP -.IR "Conforming to" : -POSIX.1-2001 and later. -.PP -.IR "See also" : -.BR chmod (2), -.BR mkdir (2), -.BR open (2), -.BR umask (2) -.PP -.IR "See also" : -the -.I stat -structure in this page. -.RE .\"------------------------------------- off64_t ----------------------/ .TP .I off64_t
--
2.33.1