1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 #ifndef _UAPI_LINUX_UTSNAME_H 2 #ifndef _UAPI_LINUX_UTSNAME_H 3 #define _UAPI_LINUX_UTSNAME_H 3 #define _UAPI_LINUX_UTSNAME_H 4 4 5 #define __OLD_UTS_LEN 8 5 #define __OLD_UTS_LEN 8 6 6 7 struct oldold_utsname { 7 struct oldold_utsname { 8 char sysname[9]; 8 char sysname[9]; 9 char nodename[9]; 9 char nodename[9]; 10 char release[9]; 10 char release[9]; 11 char version[9]; 11 char version[9]; 12 char machine[9]; 12 char machine[9]; 13 }; 13 }; 14 14 15 #define __NEW_UTS_LEN 64 15 #define __NEW_UTS_LEN 64 16 16 17 struct old_utsname { 17 struct old_utsname { 18 char sysname[65]; 18 char sysname[65]; 19 char nodename[65]; 19 char nodename[65]; 20 char release[65]; 20 char release[65]; 21 char version[65]; 21 char version[65]; 22 char machine[65]; 22 char machine[65]; 23 }; 23 }; 24 24 25 struct new_utsname { 25 struct new_utsname { 26 char sysname[__NEW_UTS_LEN + 1]; 26 char sysname[__NEW_UTS_LEN + 1]; 27 char nodename[__NEW_UTS_LEN + 1]; 27 char nodename[__NEW_UTS_LEN + 1]; 28 char release[__NEW_UTS_LEN + 1]; 28 char release[__NEW_UTS_LEN + 1]; 29 char version[__NEW_UTS_LEN + 1]; 29 char version[__NEW_UTS_LEN + 1]; 30 char machine[__NEW_UTS_LEN + 1]; 30 char machine[__NEW_UTS_LEN + 1]; 31 char domainname[__NEW_UTS_LEN + 1]; 31 char domainname[__NEW_UTS_LEN + 1]; 32 }; 32 }; 33 33 34 34 35 #endif /* _UAPI_LINUX_UTSNAME_H */ 35 #endif /* _UAPI_LINUX_UTSNAME_H */ 36 36
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.