summaryrefslogtreecommitdiffstats
path: root/man2/_syscall.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/_syscall.2')
-rw-r--r--man2/_syscall.216
1 files changed, 8 insertions, 8 deletions
diff --git a/man2/_syscall.2 b/man2/_syscall.2
index b26da05b8..ef6542ffb 100644
--- a/man2/_syscall.2
+++ b/man2/_syscall.2
@@ -16,7 +16,7 @@
.\" 2007-10-23 mtk: created as a new page, by taking the content
.\" specific to the _syscall() macros from intro(2).
.\"
-.TH _syscall 2 2023-02-05 "Linux man-pages 6.03"
+.TH _syscall 2 2023-05-03 "Linux man-pages 6.05.01"
.SH NAME
_syscall \- invoking a system call without library support (OBSOLETE)
.SH SYNOPSIS
@@ -68,9 +68,9 @@ you call the system call by
.SH FILES
.I /usr/include/linux/unistd.h
.SH STANDARDS
-The use of these macros is Linux-specific, and deprecated.
-.SH NOTES
-Starting around kernel 2.6.18, the _syscall macros were removed
+Linux.
+.SH HISTORY
+Starting around Linux 2.6.18, the _syscall macros were removed
from header files supplied to user space.
Use
.BR syscall (2)
@@ -79,7 +79,7 @@ instead.
on those architectures,
.BR syscall (2)
was always required.)
-.PP
+.SH NOTES
The _syscall() macros
.I "do not"
produce a prototype.
@@ -130,15 +130,15 @@ passed by-value or by-pointer (for aggregates like structs).
#include <errno.h>
#include <linux/unistd.h> /* for _syscallX macros/related stuff */
#include <linux/kernel.h> /* for struct sysinfo */
-
+\&
_syscall1(int, sysinfo, struct sysinfo *, info);
-
+\&
int
main(void)
{
struct sysinfo s_info;
int error;
-
+\&
error = sysinfo(&s_info);
printf("code error = %d\en", error);
printf("Uptime = %lds\enLoad: 1 min %lu / 5 min %lu / 15 min %lu\en"