Overview
Comment: | +[OFSystemInfo CPUModel]: Use sysctlbyname for Mac |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e4a11c15098253ac94db6038d301fd0b |
User & Date: | js on 2022-06-13 21:17:40 |
Other Links: | manifest | tags |
Context
2022-06-13
| ||
21:24 | README.md: Another entry for "Thanks" check-in: 09eca932bf user: js tags: trunk | |
21:17 | +[OFSystemInfo CPUModel]: Use sysctlbyname for Mac check-in: e4a11c1509 user: js tags: trunk | |
20:37 | Fix -[OFHTTPRequest copy] check-in: 9b38dfc914 user: js tags: trunk | |
Changes
Modified src/OFSystemInfo.m from [6e91a52e41] to [85e07086cf].
︙ | |||
620 621 622 623 624 625 626 627 628 629 630 631 632 633 | 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 | + + + + + + + + + + + | buffer[i++] = regs.ebx; buffer[i++] = regs.ecx; buffer[i++] = regs.edx; } return [OFString stringWithCString: (char *)buffer encoding: OFStringEncodingASCII]; #elif defined(OF_MACOS) || defined(OF_IOS) char buffer[128]; size_t length = sizeof(buffer); if (sysctlbyname("machdep.cpu.brand_string", &buffer, &length, NULL, 0) != 0) return nil; return [OFString stringWithCString: buffer encoding: [OFLocale encoding] length: length]; #elif defined(OF_AMIGAOS4) CONST_STRPTR model, version; GetCPUInfoTags(GCIT_ModelString, &model, GCIT_VersionString, &version, TAG_END); if (version != NULL) |
︙ |