1/* 2 * Copyright 2004-2012 Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _SYS_UTSNAME_H 6#define _SYS_UTSNAME_H 7 8 9#define _SYS_NAMELEN 32 10 11struct utsname { 12 char sysname[_SYS_NAMELEN]; /* Name of the OS */ 13 char nodename[_SYS_NAMELEN]; /* Name of this node (network related) */ 14 char release[_SYS_NAMELEN]; /* Current release level */ 15 char version[_SYS_NAMELEN]; /* Current version level */ 16 char machine[_SYS_NAMELEN]; /* Name of the hardware type */ 17}; 18 19 20#ifdef __cplusplus 21extern "C" { 22#endif 23 24int uname(struct utsname *); 25 26#ifdef __cplusplus 27} 28#endif 29 30#endif /* _SYS_UTSNAME_H */ 31