xref: /titanic_44/usr/src/lib/libbc/inc/include/sys/utsname.h (revision 9a5557fdd04be37785607871e8d4189e39490129)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 1989 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*      Copyright (c) 1984 AT&T */
28 /*        All Rights Reserved   */
29 /*	from S5R2 6.1	*/
30 
31 #pragma ident	"%Z%%M%	%I%	%E% SMI"
32 
33 #ifndef	__sys_utsname_h
34 #define	__sys_utsname_h
35 
36 struct utsname {
37 	char	sysname[9];
38 	char	nodename[9];
39 	char	nodeext[65-9];  /* extends nodename to MAXHOSTNAMELEN+1 chars */
40 	char	release[9];
41 	char	version[9];
42 	char	machine[9];
43 };
44 
45 #ifdef	KERNEL
46 extern struct utsname utsname;
47 #else
48 int	uname(/* struct utsname *name */);
49 #endif
50 
51 #endif	/* !__sys_utsname_h */
52