Greg Kroah-Hartman | 6f52b16 | 2017-11-01 15:08:43 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 2 | #ifndef _UAPI_LINUX_UTSNAME_H |
| 3 | #define _UAPI_LINUX_UTSNAME_H |
| 4 | |
| 5 | #define __OLD_UTS_LEN 8 |
| 6 | |
| 7 | struct oldold_utsname { |
| 8 | char sysname[9]; |
| 9 | char nodename[9]; |
| 10 | char release[9]; |
| 11 | char version[9]; |
| 12 | char machine[9]; |
| 13 | }; |
| 14 | |
| 15 | #define __NEW_UTS_LEN 64 |
| 16 | |
| 17 | struct old_utsname { |
| 18 | char sysname[65]; |
| 19 | char nodename[65]; |
| 20 | char release[65]; |
| 21 | char version[65]; |
| 22 | char machine[65]; |
| 23 | }; |
| 24 | |
| 25 | struct new_utsname { |
| 26 | char sysname[__NEW_UTS_LEN + 1]; |
| 27 | char nodename[__NEW_UTS_LEN + 1]; |
| 28 | char release[__NEW_UTS_LEN + 1]; |
| 29 | char version[__NEW_UTS_LEN + 1]; |
| 30 | char machine[__NEW_UTS_LEN + 1]; |
| 31 | char domainname[__NEW_UTS_LEN + 1]; |
| 32 | }; |
| 33 | |
| 34 | |
| 35 | #endif /* _UAPI_LINUX_UTSNAME_H */ |