os/ossrv/genericopenlibs/openenvcore/include/sys/utsname.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*-
sl@0
     2
 * Copyright (c) 1994
sl@0
     3
 *	The Regents of the University of California.  All rights reserved.
sl@0
     4
 *
sl@0
     5
 * This code is derived from software contributed to Berkeley by
sl@0
     6
 * Chuck Karish of Mindcraft, Inc.
sl@0
     7
 *
sl@0
     8
 * Redistribution and use in source and binary forms, with or without
sl@0
     9
 * modification, are permitted provided that the following conditions
sl@0
    10
 * are met:
sl@0
    11
 * 1. Redistributions of source code must retain the above copyright
sl@0
    12
 *    notice, this list of conditions and the following disclaimer.
sl@0
    13
 * 2. Redistributions in binary form must reproduce the above copyright
sl@0
    14
 *    notice, this list of conditions and the following disclaimer in the
sl@0
    15
 *    documentation and/or other materials provided with the distribution.
sl@0
    16
 * 4. Neither the name of the University nor the names of its contributors
sl@0
    17
 *    may be used to endorse or promote products derived from this software
sl@0
    18
 *    without specific prior written permission.
sl@0
    19
 *
sl@0
    20
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
sl@0
    21
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
sl@0
    22
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
sl@0
    23
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
sl@0
    24
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
sl@0
    25
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
sl@0
    26
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
sl@0
    27
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
sl@0
    28
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
sl@0
    29
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
sl@0
    30
 * SUCH DAMAGE.
sl@0
    31
 *
sl@0
    32
 *	@(#)utsname.h	8.1 (Berkeley) 1/4/94
sl@0
    33
 * $FreeBSD: src/sys/sys/utsname.h,v 1.11 2004/04/07 04:19:50 imp Exp $
sl@0
    34
 *
sl@0
    35
 * © Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
sl@0
    36
 */
sl@0
    37
sl@0
    38
#ifndef	_SYS_UTSNAME_H
sl@0
    39
#define	_SYS_UTSNAME_H
sl@0
    40
sl@0
    41
#ifdef _KERNEL
sl@0
    42
#define	SYS_NMLN	32		/* uname(2) for the FreeBSD 1.1 ABI. */
sl@0
    43
#endif
sl@0
    44
sl@0
    45
#ifndef SYS_NMLN
sl@0
    46
#define	SYS_NMLN	256		/* User can override. */
sl@0
    47
#endif
sl@0
    48
sl@0
    49
struct utsname {
sl@0
    50
	char	sysname[SYS_NMLN];	/* Name of this OS. */
sl@0
    51
	char	nodename[SYS_NMLN];	/* Name of this network node. */
sl@0
    52
	char	release[SYS_NMLN];	/* Release level. */
sl@0
    53
	char	version[SYS_NMLN];	/* Version level. */
sl@0
    54
	char	machine[SYS_NMLN];	/* Hardware type. */
sl@0
    55
};
sl@0
    56
sl@0
    57
#include <sys/cdefs.h>
sl@0
    58
#ifdef __SYMBIAN32__
sl@0
    59
#include <_ansi.h>
sl@0
    60
sl@0
    61
#ifdef __cplusplus
sl@0
    62
extern "C" {
sl@0
    63
#endif
sl@0
    64
IMPORT_C int uname(struct utsname *name);
sl@0
    65
#ifdef __cplusplus
sl@0
    66
}
sl@0
    67
#endif
sl@0
    68
sl@0
    69
sl@0
    70
#endif//__SYMBIAN32__
sl@0
    71
sl@0
    72
#endif	/* !_SYS_UTSNAME_H */