From 0db324e2e5d9d3347ea0e93138372fb65aac09e6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:41:09 +0200 Subject: Merging upstream version 6.7. Signed-off-by: Daniel Baumann --- man2/sysctl.2 | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'man2/sysctl.2') diff --git a/man2/sysctl.2 b/man2/sysctl.2 index fbe967f..082545e 100644 --- a/man2/sysctl.2 +++ b/man2/sysctl.2 @@ -7,27 +7,27 @@ .\" Modified Tue Oct 22 22:28:41 1996 by Eric S. Raymond .\" Modified Mon Jan 5 20:31:04 1998 by aeb. .\" -.TH sysctl 2 2023-05-03 "Linux man-pages 6.05.01" +.TH sysctl 2 2023-10-31 "Linux man-pages 6.7" .SH NAME sysctl \- read/write system parameters .SH SYNOPSIS .nf .B #include .B #include -.PP +.P .BI "[[deprecated]] int _sysctl(struct __sysctl_args *" args ); .fi .SH DESCRIPTION .B This system call no longer exists on current kernels! See NOTES. -.PP +.P The .BR _sysctl () call reads and/or writes kernel parameters. For example, the hostname, or the maximum number of open files. The argument has the form -.PP +.P .in +4n .EX struct __sysctl_args { @@ -41,7 +41,7 @@ struct __sysctl_args { }; .EE .in -.PP +.P This call does a search in a tree structure, possibly resembling a directory tree under .IR /proc/sys , @@ -56,7 +56,9 @@ Otherwise, a value of \-1 is returned and is set to indicate the error. .SH ERRORS .TP -.BR EACCES ", " EPERM +.B EACCES +.TQ +.B EPERM No search permission for one of the encountered "directories", or no read permission where .I oldval @@ -78,7 +80,7 @@ Linux. .SH HISTORY Linux 1.3.57. Removed in Linux 5.5, glibc 2.32. -.PP +.P It originated in 4.4BSD. Only Linux has the @@ -95,7 +97,7 @@ and in Linux 5.5, the system call was finally removed. Use the .I /proc/sys interface instead. -.PP +.P Note that on older kernels where this system call still exists, it is available only if the kernel was configured with the .B CONFIG_SYSCTL_SYSCALL @@ -106,9 +108,9 @@ necessitating the use of .SH BUGS The object names vary between kernel versions, making this system call worthless for applications. -.PP +.P Not all available objects are properly documented. -.PP +.P It is not yet possible to change operating system by writing to .IR /proc/sys/kernel/ostype . .SH EXAMPLES -- cgit v1.2.3