add directory Linux-0.98
This commit is contained in:
34
Linux-0.98/Yggdrasil-0.98.3/usr/include/sys/utsname.h
Normal file
34
Linux-0.98/Yggdrasil-0.98.3/usr/include/sys/utsname.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef _SYS_UTSNAME_H
|
||||
#define _SYS_UTSNAME_H
|
||||
|
||||
#include <traditional.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
#ifdef OLD_LINUX
|
||||
#define LENGTH 8
|
||||
#else
|
||||
#define LENGTH 64
|
||||
#endif
|
||||
|
||||
struct utsname {
|
||||
char sysname[LENGTH + 1];
|
||||
char nodename[MAXHOSTNAMELEN+1];
|
||||
char release[LENGTH + 1];
|
||||
char version[LENGTH + 1];
|
||||
char machine[LENGTH + 1];
|
||||
};
|
||||
|
||||
#undef LENGTH
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern int uname _ARGS ((struct utsname * __utsbuf));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user