utsname.h

Go to the documentation of this file.
00001 /*-
00002  * Copyright (c) 1994
00003  *      The Regents of the University of California.  All rights reserved.
00004  *
00005  * This code is derived from software contributed to Berkeley by
00006  * Chuck Karish of Mindcraft, Inc.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted provided that the following conditions
00010  * are met:
00011  * 1. Redistributions of source code must retain the above copyright
00012  *    notice, this list of conditions and the following disclaimer.
00013  * 2. Redistributions in binary form must reproduce the above copyright
00014  *    notice, this list of conditions and the following disclaimer in the
00015  *    documentation and/or other materials provided with the distribution.
00016  * 4. Neither the name of the University nor the names of its contributors
00017  *    may be used to endorse or promote products derived from this software
00018  *    without specific prior written permission.
00019  *
00020  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00021  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00022  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00023  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00024  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00025  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00026  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00027  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00028  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00029  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00030  * SUCH DAMAGE.
00031  *
00032  *      @(#)utsname.h   8.1 (Berkeley) 1/4/94
00033  * $FreeBSD: src/sys/sys/utsname.h,v 1.11 2004/04/07 04:19:50 imp Exp $
00034  *
00035  * © Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
00036  */
00037 
00038 #ifndef _SYS_UTSNAME_H
00039 #define _SYS_UTSNAME_H
00040 
00041 #ifdef _KERNEL
00042 #define SYS_NMLN        32              /* uname(2) for the FreeBSD 1.1 ABI. */
00043 #endif
00044 
00045 #ifndef SYS_NMLN
00046 #define SYS_NMLN        256             /* User can override. */
00047 #endif
00048 
00049 struct utsname {
00050         char    sysname[SYS_NMLN];      /* Name of this OS. */
00051         char    nodename[SYS_NMLN];     /* Name of this network node. */
00052         char    release[SYS_NMLN];      /* Release level. */
00053         char    version[SYS_NMLN];      /* Version level. */
00054         char    machine[SYS_NMLN];      /* Hardware type. */
00055 };
00056 
00057 #include <sys/cdefs.h>
00058 #ifdef __SYMBIAN32__
00059 #include <_ansi.h>
00060 
00061 #ifdef __cplusplus
00062 extern "C" {
00063 #endif
00064 IMPORT_C int uname(struct utsname *name);
00065 #ifdef __cplusplus
00066 }
00067 #endif
00068 
00069 
00070 #endif//__SYMBIAN32__
00071 
00072 #endif  /* !_SYS_UTSNAME_H */

Copyright © Nokia Corporation 2001-2008
Back to top