1 /*
2  * Copyright (c) 2023 Meta
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <stdio.h>
8 #include <sys/utsname.h>
9 
main(void)10 int main(void)
11 {
12 	struct utsname info;
13 
14 	uname(&info);
15 
16 	printf("\nPrinting everything in utsname...\n");
17 	printf("sysname[%zu]: %s\n", sizeof(info.sysname), info.sysname);
18 	printf("nodename[%zu]: %s\n", sizeof(info.nodename), info.nodename);
19 	printf("release[%zu]: %s\n", sizeof(info.release), info.release);
20 	printf("version[%zu]: %s\n", sizeof(info.version), info.version);
21 	printf("machine[%zu]: %s\n", sizeof(info.machine), info.machine);
22 
23 	return 0;
24 }
25