Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright 2010 Vincent Sanders <vince@kyllikki.org>
  3.  *
  4.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  5.  *
  6.  * NetSurf is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; version 2 of the License.
  9.  *
  10.  * NetSurf is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  * GNU General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17.  */
  18.  
  19. #ifndef _NETSURF_UTILS_UTSNAME_H_
  20. #define _NETSURF_UTILS_UTSNAME_H_
  21.  
  22. #ifdef HAVE_UTSNAME
  23. #include <sys/utsname.h>
  24. #else
  25. /* from posix spec */
  26. struct utsname {
  27.         char sysname[65];    /* Operating system name (e.g., "Linux") */
  28.         char nodename[65];   /* Name within "some implementation-defined
  29.                               network" */
  30.         char release[65];    /* OS release (e.g., "2.6.28") */
  31.         char version[65];    /* OS version */
  32.         char machine[65];    /* Hardware identifier */
  33. };
  34.  
  35. int uname(struct utsname *buf);
  36.  
  37. #endif
  38.  
  39. #endif
  40.