1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/openenvcore/include/sys/utsname.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,72 @@
1.4 +/*-
1.5 + * Copyright (c) 1994
1.6 + * The Regents of the University of California. All rights reserved.
1.7 + *
1.8 + * This code is derived from software contributed to Berkeley by
1.9 + * Chuck Karish of Mindcraft, Inc.
1.10 + *
1.11 + * Redistribution and use in source and binary forms, with or without
1.12 + * modification, are permitted provided that the following conditions
1.13 + * are met:
1.14 + * 1. Redistributions of source code must retain the above copyright
1.15 + * notice, this list of conditions and the following disclaimer.
1.16 + * 2. Redistributions in binary form must reproduce the above copyright
1.17 + * notice, this list of conditions and the following disclaimer in the
1.18 + * documentation and/or other materials provided with the distribution.
1.19 + * 4. Neither the name of the University nor the names of its contributors
1.20 + * may be used to endorse or promote products derived from this software
1.21 + * without specific prior written permission.
1.22 + *
1.23 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1.24 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.25 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1.26 + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
1.27 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1.28 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1.29 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.30 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1.31 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1.32 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1.33 + * SUCH DAMAGE.
1.34 + *
1.35 + * @(#)utsname.h 8.1 (Berkeley) 1/4/94
1.36 + * $FreeBSD: src/sys/sys/utsname.h,v 1.11 2004/04/07 04:19:50 imp Exp $
1.37 + *
1.38 + * © Portions copyright (c) 2006 Nokia Corporation. All rights reserved.
1.39 + */
1.40 +
1.41 +#ifndef _SYS_UTSNAME_H
1.42 +#define _SYS_UTSNAME_H
1.43 +
1.44 +#ifdef _KERNEL
1.45 +#define SYS_NMLN 32 /* uname(2) for the FreeBSD 1.1 ABI. */
1.46 +#endif
1.47 +
1.48 +#ifndef SYS_NMLN
1.49 +#define SYS_NMLN 256 /* User can override. */
1.50 +#endif
1.51 +
1.52 +struct utsname {
1.53 + char sysname[SYS_NMLN]; /* Name of this OS. */
1.54 + char nodename[SYS_NMLN]; /* Name of this network node. */
1.55 + char release[SYS_NMLN]; /* Release level. */
1.56 + char version[SYS_NMLN]; /* Version level. */
1.57 + char machine[SYS_NMLN]; /* Hardware type. */
1.58 +};
1.59 +
1.60 +#include <sys/cdefs.h>
1.61 +#ifdef __SYMBIAN32__
1.62 +#include <_ansi.h>
1.63 +
1.64 +#ifdef __cplusplus
1.65 +extern "C" {
1.66 +#endif
1.67 +IMPORT_C int uname(struct utsname *name);
1.68 +#ifdef __cplusplus
1.69 +}
1.70 +#endif
1.71 +
1.72 +
1.73 +#endif//__SYMBIAN32__
1.74 +
1.75 +#endif /* !_SYS_UTSNAME_H */