SYSARCH(2)
πΈ NAME πΈ
sysarch β architecture-dependent system call. (Yup bestie, this is the SYSARCH(2) page from the System Calls Manual, and it's giving architecture-dependent realness. π
)
π LIBRARY π
Standard C Library (libc, -lc) β yes, that's the one, no cap.
β¨ SYNOPSIS β¨
#include <machine/sysarch.h>
int
sysarch(int number, void *args);
π¦ DESCRIPTION π¦
Okay so, the sysarch() system call performs the architecture-dependent function specified by number, with the arguments specified by the args pointer. You tell it which function with number, and you hand over the actual arguments through args. π«Ά
args is a pointer to a structure defining the actual arguments of the function. Iconic indirection, honestly.
The symbolic constants and argument structures for the architecture-dependent functions can be found in the header file <machine/sysarch.h>. That's your bestie for finding the deets. π
β οΈ Real talk: the sysarch() system call should never be called directly by user programs. Like, not even a little. Instead, they should access its functions using the architecture-dependent library. That's the vibe. Periodt.
π₯ RETURN VALUES π₯
For the tea on return values, see the manual pages for specific architecture-dependent system calls for information about their return values. This page is not the one spilling those particular details, bestie. π
π SEE ALSO π
π§ HISTORY π§
This manual page was taken from NetBSD. A whole archival moment. π
Debian October 11, 1993 SYSARCH(2) β that's the source/version and date sign-off, bestie. Slay. πβ¨π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1980, 1991 Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms