aboutsummaryrefslogtreecommitdiff
path: root/core/sys
Commit message (Collapse)AuthorAgeFilesLines
* Heavily improve time handling on Windows for `time.now()` and `os.File_Info`gingerBill2022-10-262-1/+22
|
* Fix typogingerBill2022-10-261-1/+1
|
* Add `GetSystemTimePreciseAsFileTime`gingerBill2022-10-261-0/+1
|
* Merge branch 'master' of https://github.com/odin-lang/OdingingerBill2022-10-182-0/+125
|\
| * sys/windows: add ITaskbarList interfaceshikari2022-10-131-0/+82
| |
| * sys/windows: add SHFileOperationWhikari2022-10-122-0/+43
| |
* | Allow for `N = -1` in `wstring_to_utf8`gingerBill2022-10-181-4/+4
|/
* sys/windows: replace A with Whikari2022-10-101-2/+2
|
* sys/windows: add free disk space function bindinghikari2022-10-102-0/+8
|
* sys/windows: add some constantshikari2022-10-072-2/+14
|
* Merge branch 'odin-lang:master' into masterftphikari2022-10-042-1/+13
|\
| * Add a few Fiber functions to kernel32.odinmatias2022-10-031-1/+12
| | | | | | This is not the complete set, but a start.
| * Update Darwin release mapRicardo Silva2022-10-031-0/+1
| |
* | sys/windows: add comctl32hikari2022-10-011-0/+9
| |
* | sys/windows: add a bunch of stuffhikari2022-10-016-1/+169
|/
* Merge pull request #2085 from matias-eduardo/patch-2gingerBill2022-09-271-0/+1
|\ | | | | Add WSATRY_AGAIN to windows/types.odin
| * Add WSATRY_AGAIN to windows/types.odinmatias2022-09-261-0/+1
| | | | | | Not sure if the intent is to only add the defines that are commonly used in this file in order to keep things lean, rather than the complete list of WSA error codes from winerror.h into winerror.odin. I can close this and redo by adding all the WSA codes into winerror.odin and deleting these instead if preferred.
* | Merge branch 'odin-lang:master' into masterftphikari2022-09-271-0/+144
|\|
| * [sys/windows] Add DCB structure, SetCommState, GetCommStateTetralux2022-09-221-0/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are the procedures for configuring a serial port. You simply open the port with CreateFile (os.open), followed by a call to GetCommState, setting the DCB as desired, followed by a SetCommState call. The DCB structure uses C bitfields, so a configuration struct is provided along with a helper procedure to make it easier to initialize in Odin code. This makes it possible to initialize a DCB structure with one call to the helper: ``` dcb: DCB windows.init_dcb_with_config(&dcb, { BaudRate = 115200, ByteSize = 8, Parity = .None, StopBits = .One, }) ``` (The parity and the stopbits are actually optional in this example, as their zero-values are None and One, respectively.)
* | Merge remote-tracking branch 'origin/master'hikari2022-09-271-12/+21
|\|
| * Clean up of the core library to make the stream vtables not be pointers ↵gingerBill2022-09-151-12/+21
| | | | | | | | directly.
* | sys/windows: add a couple of functions and constants, fix formattinghikari2022-09-272-1084/+1095
|/
* sys/windows: add definitionshikari2022-09-142-0/+66
|
* Add windows.timeGetTime()Ryan Chan2022-09-101-0/+1
| | | | Here is the windows documentation for it: https://docs.microsoft.com/en-us/windows/win32/api/timeapi/nf-timeapi-timegettime
* Begin work in helgrind callsgingerBill2022-09-064-8/+186
|
* [sys/info] Indentation nitpick.Jeroen van Rijn2022-09-051-1/+1
|
* Silence vet some more.Jeroen van Rijn2022-09-051-2/+2
|
* Silence -vet.Jeroen van Rijn2022-09-051-0/+2
|
* [sys/info] Add doc.odin with explanation.Jeroen van Rijn2022-09-051-0/+78
|
* Merge branch 'master' into sysinfoJeroen van Rijn2022-09-051-3/+3
|\
| * Merge pull request #1951 from IanLilleyT/wstring_allocationgingerBill2022-09-051-3/+3
| |\ | | | | | | smaller allocation for non-null-terminated wstring
| | * smaller allocation for noIan Lilley2022-08-151-3/+3
| | | | | | | | | | | | n-null-terminated wstring
* | | [sys/info] Add OpenBSD detection support.Jeroen van Rijn2022-09-045-2/+126
| | |
* | | [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-032-51/+53
| | |
* | | 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-032-48/+50
|/ / /
* | | [sys/info] Support FreeBSD 13Jeroen van Rijn2022-09-034-6/+166
| | |
* | | [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
| | |
* | | Merge branch 'master' into sysinfoJeroen van Rijn2022-09-013-17/+84
|\| |
| * | Merge pull request #1976 from matias-eduardo/patch-2gingerBill2022-09-011-0/+29
| |\ \ | | | | | | | | Add Extended Window Styles (WS_EX)
| | * | Add Extended Window Styles (WS_EX)matias2022-08-251-0/+29
| | | | | | | | | | | | Featuring frequently used styles such as: `WS_EX_APPWINDOW`, `WS_EX_NOREDIRECTIONBITMAP`, `WS_EX_ACCEPTFILES`, `WS_EX_TOOLWINDOW`, `WS_EX_TOPMOST`, `WS_EX_NOACTIVATE`, `WS_EX_LAYERED`, and more.
| * | | Kernel32: Add more window bindings and improve consistencyLucas Perlind2022-09-013-14/+52
| | | |
* | | | [sys/info] Retrieve GPU info on Windows.Jeroen van Rijn2022-09-012-49/+128
| | | |