utsname.h revision 22975
1178354Ssam/*- 2178354Ssam * Copyright (c) 1994 3178354Ssam * The Regents of the University of California. All rights reserved. 4178354Ssam * 5178354Ssam * This code is derived from software contributed to Berkeley by 6178354Ssam * Chuck Karish of Mindcraft, Inc. 7178354Ssam * 8178354Ssam * Redistribution and use in source and binary forms, with or without 9178354Ssam * modification, are permitted provided that the following conditions 10178354Ssam * are met: 11178354Ssam * 1. Redistributions of source code must retain the above copyright 12178354Ssam * notice, this list of conditions and the following disclaimer. 13178354Ssam * 2. Redistributions in binary form must reproduce the above copyright 14178354Ssam * notice, this list of conditions and the following disclaimer in the 15178354Ssam * documentation and/or other materials provided with the distribution. 16178354Ssam * 3. All advertising materials mentioning features or use of this software 17178354Ssam * must display the following acknowledgement: 18178354Ssam * This product includes software developed by the University of 19178354Ssam * California, Berkeley and its contributors. 20178354Ssam * 4. Neither the name of the University nor the names of its contributors 21178354Ssam * may be used to endorse or promote products derived from this software 22178354Ssam * without specific prior written permission. 23178354Ssam * 24178354Ssam * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25178354Ssam * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26178354Ssam * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27178354Ssam * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28178354Ssam * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29178354Ssam * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30178354Ssam * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31178354Ssam * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32178354Ssam * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33178354Ssam * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34178354Ssam * SUCH DAMAGE. 35178354Ssam * 36178354Ssam * @(#)utsname.h 8.1 (Berkeley) 1/4/94 37178354Ssam * $Id$ 38178354Ssam */ 39178354Ssam 40178354Ssam#ifndef _SYS_UTSNAME_H 41178354Ssam#define _SYS_UTSNAME_H 42178354Ssam 43178354Ssam#define SYS_NMLN 32 44178354Ssam 45178354Ssamstruct utsname { 46178354Ssam char sysname[SYS_NMLN]; /* Name of this OS. */ 47178354Ssam char nodename[SYS_NMLN]; /* Name of this network node. */ 48178354Ssam char release[SYS_NMLN]; /* Release level. */ 49178354Ssam char version[SYS_NMLN]; /* Version level. */ 50178354Ssam char machine[SYS_NMLN]; /* Hardware type. */ 51178354Ssam}; 52178354Ssam 53178354Ssam 54178354Ssam#include <sys/cdefs.h> 55178354Ssam 56178354Ssam 57178354Ssam#ifndef KERNEL 58178354Ssam#ifdef __STDC__ 59178354Ssam__BEGIN_DECLS 60178354Ssamint uname __P((struct utsname *)); 61178354Ssam__END_DECLS 62178354Ssam#else 63192468Ssamextern int uname(); 64178354Ssam#endif 65178354Ssam#else 66178354Ssamextern struct utsname utsname; 67178354Ssam#endif /* KERNEL */ 68178354Ssam 69178354Ssam#endif /* !_SYS_UTSNAME_H */ 70178354Ssam