aboutsummaryrefslogtreecommitdiff
path: root/core/sys
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | | |
* | | | [sys/info] Parse kernel/distro info.Jeroen van Rijn2022-09-012-9/+89
| | | |
* | | | [sys/info] Initial version.Jeroen van Rijn2022-09-018-0/+710
|/ / /
* / / Add much of Win32's Raw Input APILucas Perlind2022-08-281-0/+151
|/ /
* | Correct syscalls for `linux_i386`gingerBill2022-08-241-1/+1
| |
* | Fix #1972gingerBill2022-08-241-2/+2
| |
* | Correct Try SRWLock related procedures to return `BOOLEAN` rather than `BOOL`gingerBill2022-08-221-2/+2
| |
* | Add `core:sys/valgrind` package for valgrind, memcheck, and callgrindgingerBill2022-08-173-0/+414
|/
* Typo: "Get" -> "Set"matias2022-08-141-1/+1
|
* Add some wgl extensionsFabian Sperber2022-08-122-1/+148
| | | | - fix upper case for wglSwapIntervalEXT to be the same as the exported name
* Add more windows bindingsFabian Sperber2022-08-122-1/+70
|
* Update user32.odinHyp-X2022-08-011-0/+1
| | | | Added UnregisterClassW procedure to windows\user32.odin
* Minor clean up of wasi_api.odingingerBill2022-07-251-259/+171
|
* Add `MAKE_WORD`gingerBill2022-07-211-0/+4
|
* Disallow `proc() do stmt` and only allow `proc() { stmt }`gingerBill2022-07-181-1/+1
|
* Merge pull request #1826 from englerj/windows-bindingsgingerBill2022-06-282-8/+75
|\ | | | | Added additional Windows bindings.