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