previous: >>108244624
#define __NR_uname 63
https://man7.org/linux/man-pages/man2/uname.2.html
tl;dr:
get your kernel version
it's actually a bit more than just kernel version, though
struct utsname {
char sysname[]; /* Operating system name (e.g., "Linux") */
char nodename[]; /* Name within communications network to which the node is attached, if any */
char release[]; /* Operating system release (e.g., "2.6.28") */
char version[]; /* Operating system version */
char machine[]; /* Hardware type identifier */
#ifdef _GNU_SOURCE
char domainname[]; /* NIS or YP domain name */
#endif
};
useful for what it does, and quite literally nothing else lol
if you want to be nice and help keep the thread bumped, run uname -a
and post the results ITT. or, if you're feeling adventurous, use the syscall together with a __builtin_dump_struct
and print it nicely formatted into a struct
relevant resources:
man man
man syscalls
https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/