| 1 | /* classes: h_files */ |
| 2 | |
| 3 | #ifndef SCM_WIN32_UNAME_H |
| 4 | #define SCM_WIN32_UNAME_H |
| 5 | |
| 6 | /* Copyright (C) 2001, 2006 Free Software Foundation, Inc. |
| 7 | * |
| 8 | * This library is free software; you can redistribute it and/or |
| 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. |
| 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, but |
| 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. |
| 17 | * |
| 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 |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 21 | * 02110-1301 USA |
| 22 | */ |
| 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 | |
| 50 | int uname (struct utsname * uts); |
| 51 | |
| 52 | #endif /* SCM_WIN32_UNAME_H */ |