1 /* Copyright (C) 1991 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 1, or (at your option)
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with the GNU C Library; see the file COPYING. If not, write to
16 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19 * POSIX Standard: 4.4 System Identification <sys/utsname.h>
22 #ifndef _SYS_UTSNAME_H
24 #define _SYS_UTSNAME_H 1
28 /* The size of the character arrays used to hold the information
29 in a `struct utsname'. Enlarge this as necessary. */
30 #define _UTSNAME_LENGTH 100
33 /* Structure describing the system and machine. */
36 /* Name of the implementation of the operating system. */
37 char sysname[_UTSNAME_LENGTH];
39 /* Name of this node on the network. */
40 char nodename[_UTSNAME_LENGTH];
42 /* Current release level of this implementation. */
43 char release[_UTSNAME_LENGTH];
44 /* Current version level of this release. */
45 char version[_UTSNAME_LENGTH];
47 /* Name of the hardware type the system is running on. */
48 char machine[_UTSNAME_LENGTH];
52 /* Put information about the system in NAME. */
53 extern int EXFUN(uname, (struct utsname *__name));
56 /* Store the nodename in NAME, writing no more than LEN characters. */
57 extern int EXFUN(__uname_getnode, (char *__name, unsigned int __len));
60 #endif /* sys/utsname.h */