aboutsummaryrefslogtreecommitdiff
path: root/core/sys/info
Commit message (Collapse)AuthorAgeFilesLines
* Minor code cleanupAndreas T Jonsson2024-05-101-1/+1
|
* Merged with masterAndreas T Jonsson2024-05-0210-85/+310
|\
| * sys/info: add missing `@(private)`'sLaytan Laats2024-04-305-5/+5
| |
| * sys/info: update doc.odinLaytan Laats2024-04-301-12/+15
| |
| * sys/info: retrieve better CPU description on DarwinLaytan Laats2024-04-301-6/+21
| | | | | | | | | | Previously either `ARM` or `ARM64`, now you get something like `Apple M1`
| * sys/info: add feature detection for Darwin and Linux ARMLaytan Laats2024-04-303-14/+206
| |
| * sys/info: improve platform_linuxLaytan Laats2024-04-301-45/+57
| | | | | | | | | | | | | | | | | | 1. fix the `linux.open` call, passing `{ .RDONLY }` becomes `0x00000001` while `RDONLY` is supposed to be `0x00000000` 2. fix the case where `/etc/os-release` starts with `PRETTY_NAME` `strings.index` was used but was checking `> 0` while `0` is valid 3. remove unneccesary temporary allocations 4. simplify the logic
| * sys/info: remove unneccesary build tagsLaytan Laats2024-04-305-5/+0
| |
| * sys/info: add easy way of getting the MacOS versionLaytan Laats2024-04-302-4/+11
| |
* | Added missing core:sys/info package for NetBSDAndreas T Jonsson2024-04-261-4/+8
| |
* | Merge branch 'master' into netbsdAndreas T Jonsson2024-04-251-64/+64
|\|
| * Fix the format of some `doc.odin` files of the `core` library which did not ↵Maurizio M. Gavioli2024-04-141-64/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | made into the documentation. `c/frontend/tokenizer`: add proper "Example:" header to demo example code, removed empty lines. `container/bit_array`: moved comment before package; aligned narrative lines to left margin; converted case lines into bulleted lines ("- "); converted individual examples to single-tab-indented preformatted text. `dynlib`: removed "//+build ignore" line; added newline at EOF. `image/netpmb`: converted indented lines of "Reading", "Wrting" and "Some syntax..." into bulleted lists; "Formats" indented lines kept as they are as the preformatted text seems relevant to keep the alignments; doubly indented lines kept as single-indented to keep them different (as the format does not allow for two-level bulleted lists); removed empy lines. `os/os2`: WIP, not modified `sys/info`: removed "//+build ignore" line; converted tab-indented initial description into regular left-margin comment; moved uncommented sample code within the doc comment as an "Example:"; moved simple- and double-tabbed separate comments with sample Windows and macOS outputs within the doc comment as bulleted headlines with preformatted output listings; removed now empty comments and blank lines after the package line. `text/i18n`: removed "//+build ignore" line; moved the pacakge line at the end; de-indented the tab-indented introductory narrative; moved sample code comments into the doc comment as tab-indented code with a proper "Example:" heading; removed "```" MD attempts at code formatting. `text/table`: unindented the comment lines of a descriptive kind; headlines of major subdivisions are marked as bold; kept code samples as tab-indented preformatted text (as there are several of them, the standard "Example:" and "Output:" headings cannot be used) removing the "```" MD attempts at code formatting; removed in-between blank lines.
* | More std lib fixesAndreas T Jonsson2024-04-191-2/+2
|/ | | | Just selecting the same codepath as other BSD's for the most part.
* correct newly found vetsLaytan Laats2024-04-031-2/+2
|
* add MacOS 14.4.1 to sys/info and odin reportLaytan Laats2024-03-281-1/+2
|
* update macOS releases for `core:sys/info` and `odin report`Laytan Laats2024-03-201-0/+5
|
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-286-8/+8
|
* fix shift directionJon Lipstate2024-01-121-4/+4
|
* Reindent and align and f ix Ventura kernel+version swap.Jeroen van Rijn2024-01-101-352/+352
|
* Fixed indentationPlatin212024-01-101-27/+27
|
* Added macOS versions for a lot of revisionsPlatin212024-01-101-0/+50
|
* Implement new sys/unix packageflysand72023-10-271-75/+23
|
* core/sys/info: Fix the CPUID checkYawning Angel2023-05-161-1/+1
| | | | This needs to test that the n-th bit is set.
* core/sys/info: Workaround extremely rare XGETBV issuesYawning Angel2023-05-161-1/+8
| | | | | | | Someone ran into this on Discord, so adopt the same workaround that chrome did, by checking both OSXSAVE and XSAVE before calling XGETBV. The old way of detecting AVX is correct per Intel, but such is life.
* Separate out the `read_reg` into three non-parapoly proceduresgingerBill2023-03-071-61/+81
|
* Add `runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD` where appropriategingerBill2023-02-105-1/+18
|
* Fix +build ignoregingerBill2022-11-041-1/+1
|
* Update Darwin release mapRicardo Silva2022-10-031-0/+1
|
* [sys/info] Indentation nitpick.Jeroen van Rijn2022-09-051-1/+1
|
* Silence vet some more.Jeroen van Rijn2022-09-051-2/+2
|
* [sys/info] Add doc.odin with explanation.Jeroen van Rijn2022-09-051-0/+78
|
* [sys/info] Add OpenBSD detection support.Jeroen van Rijn2022-09-042-2/+71
|
* [sys/info] Add detection for Tiger, Leopard, Snow Leopard, Lion, Mountain ↵Jeroen van Rijn2022-09-031-179/+319
| | | | Lion, Mavericks, Yosemite
* [sys/info] Move FreeBSD sysctl to sys/unix.Jeroen van Rijn2022-09-031-51/+9
|
* Merge branch 'sysinfo' of github.com:Kelimion/Odin into sysinfoJeroen van Rijn2022-09-031-53/+26
|\
| * [sys/info] Grab FreeBSD kernel info using sysctl.Jeroen van Rijn2022-09-031-53/+26
| |
* | [sys/info] Move macOS sysctl to sys/unix.Jeroen van Rijn2022-09-031-48/+7
|/
* [sys/info] Support FreeBSD 13Jeroen van Rijn2022-09-033-6/+159
|
* [sys/info] Add detection for El Capitan, Sierra, High Sierra, MojaveJeroen van Rijn2022-09-021-67/+187
|
* [sys/info] Add detection for Catalina, Big Sur, Monterey.Jeroen van Rijn2022-09-021-14/+221
|
* [sys/info] Parse xnu kernel versionJeroen van Rijn2022-09-021-11/+34
|
* [sys/info] Add sysctl MIBs for MacOS.Jeroen van Rijn2022-09-021-4/+27
|
* [sys/info] Better sysctl wrapperJeroen van Rijn2022-09-021-14/+14
|
* [sys/info] Add MacOS memory sizeJeroen van Rijn2022-09-021-9/+13
|
* [sys/info] Retrieve GPU info on Windows.Jeroen van Rijn2022-09-012-49/+128
|
* [sys/info] Parse kernel/distro info.Jeroen van Rijn2022-09-012-9/+89
|
* [sys/info] Initial version.Jeroen van Rijn2022-09-016-0/+578