37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# include <proto/exec.h>
#endif
#import "OFSystemInfo.h"
#import "OFApplication.h"
#import "OFArray.h"
#import "OFDictionary.h"
#import "OFLocalization.h"
#import "OFString.h"
#import "OFNotImplementedException.h"
#ifdef OF_HAVE_THREADS
# import "threading.h"
#endif
|
|
|
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# include <proto/exec.h>
#endif
#import "OFSystemInfo.h"
#import "OFApplication.h"
#import "OFArray.h"
#import "OFDictionary.h"
#import "OFLocale.h"
#import "OFString.h"
#import "OFNotImplementedException.h"
#ifdef OF_HAVE_THREADS
# import "threading.h"
#endif
|
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
struct utsname utsname;
if (uname(&utsname) != 0)
return;
operatingSystemName = [[OFString alloc]
initWithCString: utsname.sysname
encoding: [OFLocalization encoding]];
#endif
}
static void
initOperatingSystemVersion(void)
{
#if defined(OF_IOS) || defined(OF_MACOS)
|
|
|
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
struct utsname utsname;
if (uname(&utsname) != 0)
return;
operatingSystemName = [[OFString alloc]
initWithCString: utsname.sysname
encoding: [OFLocale encoding]];
#endif
}
static void
initOperatingSystemVersion(void)
{
#if defined(OF_IOS) || defined(OF_MACOS)
|
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
struct utsname utsname;
if (uname(&utsname) != 0)
return;
operatingSystemVersion = [[OFString alloc]
initWithCString: utsname.release
encoding: [OFLocalization encoding]];
#endif
}
#if defined(OF_X86_64) || defined(OF_X86)
static OF_INLINE struct x86_regs OF_CONST_FUNC
x86_cpuid(uint32_t eax, uint32_t ecx)
{
|
|
|
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
struct utsname utsname;
if (uname(&utsname) != 0)
return;
operatingSystemVersion = [[OFString alloc]
initWithCString: utsname.release
encoding: [OFLocale encoding]];
#endif
}
#if defined(OF_X86_64) || defined(OF_X86)
static OF_INLINE struct x86_regs OF_CONST_FUNC
x86_cpuid(uint32_t eax, uint32_t ecx)
{
|