2001-03-06 05:29:24 +08:00
|
|
|
/* sys/utsname.h
|
|
|
|
|
|
|
|
This file is part of Cygwin.
|
|
|
|
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
#ifndef _SYS_UTSNAME_H
|
|
|
|
#define _SYS_UTSNAME_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-01-24 19:01:01 +08:00
|
|
|
#define _UTSNAME_LENGTH 65
|
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
struct utsname
|
|
|
|
{
|
2019-01-24 19:01:01 +08:00
|
|
|
char sysname[_UTSNAME_LENGTH];
|
|
|
|
char nodename[_UTSNAME_LENGTH];
|
|
|
|
char release[_UTSNAME_LENGTH];
|
|
|
|
char version[_UTSNAME_LENGTH];
|
|
|
|
char machine[_UTSNAME_LENGTH];
|
|
|
|
#if __GNU_VISIBLE
|
|
|
|
char domainname[_UTSNAME_LENGTH];
|
|
|
|
#else
|
|
|
|
char __domainname[_UTSNAME_LENGTH];
|
|
|
|
#endif
|
2000-02-18 03:38:33 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
int uname (struct utsname *);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|