aboutsummaryrefslogtreecommitdiff
path: root/core/sys
Commit message (Collapse)AuthorAgeFilesLines
* Mark procs as "contextless" in winerror.odinNicknEma2024-11-041-7/+7
| | | So that they can be called from places like the windproc and stuff.
* Merge pull request #4415 from p2jason/masterLaytan2024-11-011-14/+17
|\ | | | | Remove the event queue from odin.js and directly invoke callbacks so they are executed in context where prevent default is possible
| * Removed event hook callback from add_*_event_listener functionsp2jason2024-10-311-18/+4
| |
| * Removed event queue from add_*_event_listener JS functions and added event ↵p2jason2024-10-312-35/+43
| | | | | | | | hook callback
| * Changed boolean parameters to bit set in the add_*_event_listener functionsp2jason2024-10-251-6/+6
| |
| * Added parameters to the add_*_event_listener JS functions for stopping event ↵p2jason2024-10-242-11/+20
| | | | | | | | behavior
* | fix tabsLaytan Laats2024-11-011-15/+15
| |
* | fix thread_unix for Darwin after pthread corrections in posix packageLaytan Laats2024-10-301-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | afed3ce removed the sys/unix package and moved over to sys/posix, it has new bindings for the pthread APIs but should have been equivalent (not). 8fb7182 used `CANCEL_ENABLE :: 0`, `CANCEL_DISABLE :: 1`, `CANCEL_DEFERRED :: 0`, `CANCEL_ASYNCHRONOUS :: 1` for Darwin, while the correct values are `1`, `0`, `2` and `0` respectively (same mistake was made for FreeBSD in that commit). What this meant is that the `pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS)` was not actually successful, but because the error wasn't checked it was assumed it was. It also meant `pthread_setcancelstate(PTHREAD_CANCEL_ENABLE)` would actually be setting `PTHREAD_CANCEL_DISABLE`. The code in this PR restores the behaviour by now actually deliberately setting `PTHREAD_CANCEL_DISABLE` and not setting `PTHREAD_CANCEL_ASYNCHRONOUS` which was the previous behaviour that does actually seem to work for some reason. (I also fixed an issue in fmt where `x` would use uppercase if it was a pointer.)
* | Merge pull request #4427 from laytan/posix-additionsgingerBill2024-10-3064-1489/+1143
|\ \ | | | | | | Finish sys/posix with Linux and partial Windows support & clean up other packages as a result
| * | fix testLaytan2024-10-282-5/+8
| | |
| * | port pthread_mutex_t and pthread_cond_t from sys/unix cause miniaudio wants itLaytan2024-10-281-4/+44
| | |
| * | remove pthread from sys/unix and use sys/posix where usedLaytan2024-10-288-716/+5
| | |
| * | sys/posix: impl rest of linux, impl some of WindowsLaytan Laats2024-10-2856-769/+1091
| | |
* | | sys/wasm/js: add `set_element_style`Laytan Laats2024-10-262-0/+12
| |/ |/|
* | Merge pull request #4335 from colrdavidson/datetime_tzJeroen van Rijn2024-10-221-0/+14
|\ \ | |/ |/| Add Timezone Support to Odin
| * Initial cut of timezonesColin Davidson2024-10-091-0/+14
| |
* | Merge pull request #4376 from Barinzaya/sysinfo-avx512Laytan2024-10-161-1/+46
|\ \ | | | | | | core:sys/info AVX-512 CPU Features
| * | Renamed and trimmed AVX-512 features in sys/info.Barinzaya2024-10-151-36/+32
| | | | | | | | | | | | Removed underscores from the AVX-512 names in `CPU_Feature` to make them match their equivalent LLVM target features. Removed 4FMAPs and 4VNNIW as there aren't matching LLVM target features.
| * | Fixed a theoretical edge case in AVX512VL support detection.Barinzaya2024-10-141-1/+5
| | |
| * | Fixed formatting.Barinzaya2024-10-141-4/+4
| | |
| * | Added AVX-512 feature detection to core:sys/info.Barinzaya2024-10-141-1/+46
| | |
* | | add macos 15.0.1 to odin report and core/sys/infoLaytan Laats2024-10-141-0/+1
|/ /
* | Merge pull request #4118 from andradei/posix-linuxLaytan2024-10-1335-312/+1356
|\ \ | | | | | | Linux POSIX support
| * | review/correct/cleanup posix linux PRLaytan2024-09-3015-343/+276
| | |
| * | Fix O_Flag_Bits.EXEC for non Linux platforms on posix/fcntl.Isaac Andrade2024-09-211-3/+1
| | |
| * | Move bit set creation to compiler guard. Fix indentation on posix/sys_sem.Isaac Andrade2024-09-212-5/+8
| | |
| * | Resolve bit set differences between linux and other platforms in posix/fcntlIsaac Andrade2024-09-211-46/+106
| | |
| * | Satisfy the compiler.Isaac Andrade2024-09-211-1/+1
| | |
| * | Rename sigaction duplicate type to sigaction_t on linux, following other ↵Isaac Andrade2024-09-211-1/+3
| | | | | | | | | | | | platforms.
| * | Implement POSIX pthread, signal, sys/resource, unistd for Linux.Isaac Andrade2024-09-214-64/+438
| | |
| * | Fix bit flags on fcntl linux POSIX implemention. Add sys/sem linux ↵Isaac Andrade2024-09-152-2/+37
| | | | | | | | | | | | implementation.
| * | Implement Linux POSIX compliance for poll, sched, sys/select. Fix enum in fcntl.Isaac Andrade2024-09-144-10/+10
| | |
| * | Fix O_NOFOLLOW typo. Add Linux support for POSIX fcntl.Isaac Andrade2024-09-141-43/+109
| | |
| * | Add initial POSIX support for Linux for wordexp.Isaac Andrade2024-09-141-0/+21
| | |
| * | Finish sys/socket POSIX support for Linux.Isaac Andrade2024-09-111-49/+81
| | |
| * | In-progress support for POSIX on Linux for sys/socket.Isaac Andrade2024-09-101-28/+75
| | |
| * | Add Linux support for POSIX sys ipc, mman, time, utsname.Isaac Andrade2024-09-104-9/+19
| | |
| * | Fix some compilation errors on POSIX linux.Isaac Andrade2024-09-095-4/+11
| | |
| * | Add linux to OS check.Isaac Andrade2024-09-022-2/+2
| | |
| * | Reuse POSIX netinet_in constants for linux.Isaac Andrade2024-09-021-195/+58
| | |
| * | Implement POSIX linux support for poll and netinet_tcp. Incomplete support ↵Isaac Andrade2024-09-023-2/+196
| | | | | | | | | | | | for netinet/in.
| * | Add POSIX Linux support for net_if and netdb.Isaac Andrade2024-09-022-3/+37
| | |
| * | Add Linux support for POSIX limits.Isaac Andrade2024-09-021-0/+95
| | |
| * | Simplify the implementation of POSIX langinfo for Linux:Isaac Andrade2024-08-301-172/+79
| | | | | | | | | | | | | | | No need for the enum runtime checks. Constant values were set manually and comments were added to help locate their origin.
| * | Implement POSIX support for Linux for the following facilities:Isaac Andrade2024-08-305-5/+260
| | | | | | | | | | | | | | | | | | | | | - fnmatch - grp - langinfo - locale
| * | Align the dirent struct for linuxIsaac Andrade2024-08-291-5/+5
| | |
| * | Add contants RTLD contants on os_linux and posix (dlfcn).Isaac Andrade2024-08-281-0/+9
| | |
| * | Use native types on linux POSIX structs.Isaac Andrade2024-08-283-29/+3
| | |
| * | Merge branch 'master' of github.com:odin-lang/Odin into posix-linuxIsaac Andrade2024-08-277-226/+219
| |\ \
| * | | Fix ino_t and ino_t32 types for POSIX linux.Isaac Andrade2024-08-261-2/+2
| | | |