63 |
|
|
64 |
#define PLATFORMLEN 200 /* platform string used in info response */ |
#define PLATFORMLEN 200 /* platform string used in info response */ |
65 |
|
|
|
#ifdef _WIN32 |
|
|
#define EAFNOSUPPORT WSAEAFNOSUPPORT |
|
|
#define EALREADY WSAEALREADY |
|
|
#define EINPROGRESS WSAEINPROGRESS |
|
|
#define EISCONN WSAEISCONN |
|
|
#define EMSGSIZE WSAEMSGSIZE |
|
|
#define EWOULDBLOCK WSAEWOULDBLOCK |
|
|
|
|
|
#define _UTSNAME_LENGTH 65 |
|
|
#define _UTSNAME_NODENAME_LENGTH _UTSNAME_LENGTH |
|
|
#define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH |
|
|
struct utsname |
|
|
{ |
|
|
char sysname[_UTSNAME_LENGTH]; |
|
|
char nodename[_UTSNAME_NODENAME_LENGTH]; |
|
|
char release[_UTSNAME_LENGTH]; |
|
|
char version[_UTSNAME_LENGTH]; |
|
|
char machine[_UTSNAME_LENGTH]; |
|
|
char domainname[_UTSNAME_DOMAIN_LENGTH]; |
|
|
}; |
|
|
int uname (struct utsname *); |
|
|
#endif |
|
66 |
|
|
67 |
/* This is to get around the fact that some implementations have ss_len and |
/* This is to get around the fact that some implementations have ss_len and |
68 |
* others do not |
* others do not |