120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
#if defined(OF_X86_64) || defined(OF_X86)
struct X86Regs {
uint32_t eax, ebx, ecx, edx;
};
#endif
#if defined(OF_HAVE_SOCKETS) && defined(OF_HAVE_GETIFADDRS)
OFConstantString *const OFNetworkInterfaceAddresses =
@"OFNetworkInterfaceAddresses";
OFConstantString *const OFNetworkInterfaceEthernetAddress =
@"OFNetworkInterfaceEthernetAddress";
#endif
static size_t pageSize = 4096;
|
|
|
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
#if defined(OF_X86_64) || defined(OF_X86)
struct X86Regs {
uint32_t eax, ebx, ecx, edx;
};
#endif
#ifdef OF_SYSTEM_INFO_HAS_NETWORK_INTERFACES
OFConstantString *const OFNetworkInterfaceAddresses =
@"OFNetworkInterfaceAddresses";
OFConstantString *const OFNetworkInterfaceEthernetAddress =
@"OFNetworkInterfaceEthernetAddress";
#endif
static size_t pageSize = 4096;
|
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
|
#ifdef OF_WINDOWS
+ (bool)isWindowsNT
{
return !(GetVersion() & 0x80000000);
}
#endif
#if defined(OF_HAVE_SOCKETS) && defined(OF_HAVE_GETIFADDRS)
static OFSocketAddress
wrapSockaddr(struct sockaddr *sa)
{
OFSocketAddress address;
switch (sa->sa_family) {
case AF_INET:
|
|
|
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
|
#ifdef OF_WINDOWS
+ (bool)isWindowsNT
{
return !(GetVersion() & 0x80000000);
}
#endif
#ifdef OF_SYSTEM_INFO_HAS_NETWORK_INTERFACES
static OFSocketAddress
wrapSockaddr(struct sockaddr *sa)
{
OFSocketAddress address;
switch (sa->sa_family) {
case AF_INET:
|