Commit | Line | Data |
---|---|---|
8dd6dfdc MV |
1 | /* classes: h_files */ |
2 | ||
b4e15479 SJ |
3 | #ifndef SCM_WIN32_UNAME_H |
4 | #define SCM_WIN32_UNAME_H | |
8dd6dfdc | 5 | |
2b829bbb | 6 | /* Copyright (C) 2001, 2006 Free Software Foundation, Inc. |
8dd6dfdc | 7 | * |
73be1d9e | 8 | * This library is free software; you can redistribute it and/or |
53befeb7 NJ |
9 | * modify it under the terms of the GNU Lesser General Public License |
10 | * as published by the Free Software Foundation; either version 3 of | |
11 | * the License, or (at your option) any later version. | |
8dd6dfdc | 12 | * |
53befeb7 NJ |
13 | * This library is distributed in the hope that it will be useful, but |
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
73be1d9e MV |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | * Lesser General Public License for more details. | |
8dd6dfdc | 17 | * |
73be1d9e MV |
18 | * You should have received a copy of the GNU Lesser General Public |
19 | * License along with this library; if not, write to the Free Software | |
53befeb7 NJ |
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
21 | * 02110-1301 USA | |
73be1d9e | 22 | */ |
8dd6dfdc MV |
23 | |
24 | #define _UTSNAME_LENGTH 65 | |
25 | #define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH | |
26 | #define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH | |
27 | ||
28 | /* Structure describing the system and machine. */ | |
29 | struct utsname | |
30 | { | |
31 | /* Name of the implementation of the operating system. */ | |
32 | char sysname[_UTSNAME_LENGTH]; | |
33 | ||
34 | /* Name of this node on the network. */ | |
35 | char nodename[_UTSNAME_NODENAME_LENGTH]; | |
36 | ||
37 | /* Current release level of this implementation. */ | |
38 | char release[_UTSNAME_LENGTH]; | |
39 | ||
40 | /* Current version level of this release. */ | |
41 | char version[_UTSNAME_LENGTH]; | |
42 | ||
43 | /* Name of the hardware type the system is running on. */ | |
44 | char machine[_UTSNAME_LENGTH]; | |
45 | ||
46 | /* Name of the domain of this node on the network. */ | |
47 | char domainname[_UTSNAME_DOMAIN_LENGTH]; | |
48 | }; | |
49 | ||
b4e15479 | 50 | int uname (struct utsname * uts); |
8dd6dfdc | 51 | |
b4e15479 | 52 | #endif /* SCM_WIN32_UNAME_H */ |