2004-11-15 19:55:33 +03:00
|
|
|
/*
|
2010-11-04 00:46:47 +03:00
|
|
|
* Copyright 2004-2010 Haiku Inc. All Rights Reserved.
|
2004-11-15 19:55:33 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _SYS_UTSNAME_H
|
|
|
|
#define _SYS_UTSNAME_H
|
|
|
|
|
|
|
|
|
2005-01-26 00:23:29 +03:00
|
|
|
#define _SYS_NAMELEN 32
|
2004-11-17 04:26:11 +03:00
|
|
|
|
2004-11-15 19:55:33 +03:00
|
|
|
struct utsname {
|
2005-01-26 00:23:29 +03:00
|
|
|
char sysname[_SYS_NAMELEN]; /* Name of the OS */
|
2004-11-15 19:55:33 +03:00
|
|
|
char nodename[_SYS_NAMELEN]; /* Name of this node (network related) */
|
2005-01-26 00:23:29 +03:00
|
|
|
char release[_SYS_NAMELEN]; /* Current release level */
|
|
|
|
char version[_SYS_NAMELEN]; /* Current version level */
|
|
|
|
char machine[_SYS_NAMELEN]; /* Name of the hardware type */
|
2004-11-15 19:55:33 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2004-11-17 04:26:11 +03:00
|
|
|
#ifdef __cplusplus
|
2005-01-26 00:23:29 +03:00
|
|
|
extern "C" {
|
2004-11-17 04:26:11 +03:00
|
|
|
#endif
|
|
|
|
|
2005-01-26 00:23:29 +03:00
|
|
|
int uname(struct utsname *);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2004-11-15 19:55:33 +03:00
|
|
|
#endif
|
|
|
|
|
2005-01-26 00:23:29 +03:00
|
|
|
#endif /* _SYS_UTSNAME_H */
|