]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/sysctl.2
Removed trailing white space at end of lines
[thirdparty/man-pages.git] / man2 / sysctl.2
index a02c8c891bc3ea215f1491f6a47b08f17d5a0d75..0b9693a67f362e9d801737d2aaa4450f7188ae75 100644 (file)
 .\" Modified Tue Oct 22 22:28:41 1996 by Eric S. Raymond <esr@thyrsus.com>
 .\" Modified Mon Jan  5 20:31:04 1998 by aeb.
 .\"
-.TH SYSCTL 2 2012-12-22 "Linux" "Linux Programmer's Manual"
+.TH SYSCTL 2 2019-03-06 "Linux" "Linux Programmer's Manual"
 .SH NAME
 sysctl \- read/write system parameters
 .SH SYNOPSIS
 .nf
 .B #include <unistd.h>
-.br
 .B #include <linux/sysctl.h>
-.sp
+.PP
 .BI "int _sysctl(struct __sysctl_args *" args );
 .fi
-
+.PP
 .IR Note :
 There is no glibc wrapper for this system call; see NOTES.
 .SH DESCRIPTION
 .B Do not use this system call!
 See NOTES.
-
+.PP
 The
 .BR _sysctl ()
 call reads and/or writes kernel parameters.
@@ -53,7 +52,7 @@ or the maximum number of open files.
 The argument has the form
 .PP
 .in +4n
-.nf
+.EX
 struct __sysctl_args {
     int    *name;    /* integer vector describing variable */
     int     nlen;    /* length of this vector */
@@ -63,7 +62,7 @@ struct __sysctl_args {
     void   *newval;  /* 0 or address of new value */
     size_t  newlen;  /* size of new value */
 };
-.fi
+.EE
 .in
 .PP
 This call does a search in a tree structure, possibly resembling
@@ -128,7 +127,7 @@ uses of this system call result in warnings in the kernel log.
 Remove it from your programs now; use the
 .I /proc/sys
 interface instead.
-
+.PP
 This system call is available only if the kernel was configured with the
 .B CONFIG_SYSCTL_SYSCALL
 option.
@@ -141,7 +140,7 @@ Not all available objects are properly documented.
 It is not yet possible to change operating system by writing to
 .IR /proc/sys/kernel/ostype .
 .SH EXAMPLE
-.nf
+.EX
 #define _GNU_SOURCE
 #include <unistd.h>
 #include <sys/syscall.h>
@@ -174,9 +173,9 @@ main(void)
         perror("_sysctl");
         exit(EXIT_FAILURE);
     }
-    printf("This machine is running %*s\\n", osnamelth, osname);
+    printf("This machine is running %*s\en", osnamelth, osname);
     exit(EXIT_SUCCESS);
 }
-.fi
+.EE
 .SH SEE ALSO
 .BR proc (5)