Commit Graph

1194 Commits

Author SHA1 Message Date
Laytan
3a2396033c Merge pull request #4648 from lzurbriggen/fix/get-comm-ports
move GetCommPorts, add missing comm functions, add communication events
2025-01-05 18:53:36 +01:00
Leo Zurbriggen
823740c7a4 formatting 2025-01-05 18:43:16 +01:00
Leo Zurbriggen
c604926595 add SetCommMask, GetCommMask, WaitCommEvent, GetCommPorts, communication event constants 2025-01-05 18:04:36 +01:00
gingerBill
f5e5c9767c Merge pull request #4650 from jasonKercher/arm32-update
Arm32 update for sys/linux
2025-01-04 10:44:44 +00:00
VladPavliuk
1733a50678 Refactor changes. 2025-01-03 18:58:08 +02:00
VladPavliuk
470c05a902 Merge branch 'master' into extend_win32_api_types 2025-01-03 18:53:48 +02:00
VladPavliuk
36b5ca9176 Extend win32 types 2025-01-03 18:52:39 +02:00
jason
1221e393f7 add 32 bit Sig_Info and remove ppoll_time64 call 2025-01-03 09:29:39 -05:00
jason
074bef7baf Fix sys/linux 64 bit arguments on 32 bit systems
Reverese return values of compat64_arg_pair
Add register alignment to specific arm32 system calls
2025-01-02 14:50:45 -05:00
Leo Zurbriggen
4815d95128 move GetCommPorts to correct foreign block 2025-01-02 18:08:06 +01:00
jason
ce1f3b34c0 Minor fixes + cleanup in os2 and sys/linux
Add NOFOLLOW to os2.remove
Change Dev from int to u64 and make relavant casts
Fix compat64_arg_pair
2025-01-02 11:03:24 -05:00
gingerBill
8a5c1b109d Merge pull request #4613 from fnknda/fix-linux-bind
Fix calls to bind always returning EINVAL when using linux.Sock_Addr_In
2025-01-01 17:46:15 +00:00
Laytan
c02710cce8 Merge pull request #4638 from DataResearch/master
Added proc to user32 Bindings
2024-12-30 23:53:04 +01:00
CodingChris
bddca04b25 added IsZoomed to user32 bindings in sys/windows 2024-12-30 23:20:08 +01:00
Joao Fukuda
28e226381d Remove extra white space
Got in on 0a2200f without me noticing, mb.
2024-12-22 16:09:51 -03:00
Joao Fukuda
0a2200fa12 Fix issue #4612 2024-12-22 15:53:54 -03:00
Misomosi
276dab69b6 Pack MDEI struct to fix issue #4407 2024-12-22 10:12:10 -05:00
avanspector
365e24ce8d Remove error baselines from Errno to make fmt clearer 2024-12-21 17:09:57 +01:00
avanspector
cb42b88e13 Update errno.odin 2024-12-21 16:54:45 +01:00
avanspector
be4748831d Delete errors.odin 2024-12-20 17:25:15 +01:00
avanspector
5376d2a20b fix haiku 2024-12-20 17:19:04 +01:00
jason
b73275cf42 Get arm64 up to speed in os2 linux
Readded open flags for arm64 to sys/linux/bits.odin. Make process_start
name based instead of descriptor based to allow running of scripts. Fix
bug in heap_linux. Fix and simplify os2.remove.
2024-12-19 17:12:07 -05:00
GonkieDev
6bcfafc3a8 typo fixed (MOUSE_ATTRIUBTTES_CHANGED -> MOUSE_ATTRIBUTES_CHANGED) 2024-12-11 21:02:43 +00:00
zhylmzr
c2b6a14cd7 fix DNS_RECORD.Data error align on windows i386
fixed: https://github.com/odin-lang/Odin/issues/4520
2024-11-27 20:15:34 +08:00
Laytan Laats
ad80aa6d28 sys/info & odin report: rework macos version retrieval 2024-11-26 22:28:21 +01:00
Laytan Laats
767daf4a9c add macos 15.1.1 to odin report and sys/info 2024-11-26 18:46:27 +01:00
Colin Davidson
d60fb5a44e update to master 2024-11-20 15:51:08 -08:00
Laytan Laats
20f4f378b2 sys/posix: add MAP_ANONYMOUS 2024-11-17 13:52:08 +01:00
Laytan Laats
8f2766c4dc add missing macos version 2024-11-16 15:42:13 +01:00
gingerBill
0781871efd Merge pull request #4489 from laytan/os2-dir-leak-and-test
os2: fix leak in dir_windows, fix netbsd, and add a test for dir reading
2024-11-15 23:22:14 +00:00
Laytan Laats
ce74325673 sys/posix: fix dirfd on netbsd 2024-11-15 21:22:23 +01:00
NicknEma
5486327e0b Fix integer type
Change int to i32 so it is the correct size
2024-11-15 21:10:55 +01:00
gingerBill
537ff3beb3 Merge pull request #4482 from A1029384756/master
core:sys/linux - implemented inotify
2024-11-14 16:23:08 +00:00
Alex Overstreet
5ea7fe14dd Use tabs instead of spaces 2024-11-13 15:46:56 -06:00
Alex Overstreet
0af183485b Add STICKYKEYS, TOGGLEKEYS, and FILTERKEYS 2024-11-13 15:41:16 -06:00
A1029384756
8f80e9765e core:sys/linux - prefixing + moved IN_CLOSE/IN_MOVE to constants 2024-11-13 12:45:58 -05:00
A1029384756
1b313a4db0 core:sys/linux - flags, spacing, inotify_init 2024-11-13 08:52:33 -05:00
Sebastian Pahnke
395fa7fdb8 Add NSApplication bindings for mainWindow and keyWindow 2024-11-13 14:42:31 +01:00
A1029384756
37441bd730 core:sys/linux - fixed vet errors 2024-11-13 00:09:38 -05:00
A1029384756
bb20338987 core:sys/linux - implemented inotify
core:sys/linux - added constants and spacing
2024-11-13 00:05:58 -05:00
p2jason
2beb495140 Increase size of JS keyboard event key/code buffer size 2024-11-12 13:37:08 +13:00
A1029384756
5be7ac4039 added unlinking section to posix socket binding documentation 2024-11-06 20:36:29 -05:00
NicknEma
cc29b41ccc Mark procs as "contextless" in winerror.odin
So that they can be called from places like the windproc and stuff.
2024-11-04 10:24:27 +01:00
Laytan
7cfaf0b181 Merge pull request #4415 from p2jason/master
Remove the event queue from odin.js and directly invoke callbacks so they are executed in context where prevent default is possible
2024-11-01 19:48:36 +01:00
Laytan Laats
8b5492dd4d fix tabs 2024-11-01 18:10:20 +01:00
p2jason
94acfaf21e Removed event hook callback from add_*_event_listener functions 2024-10-31 13:15:39 +00:00
p2jason
e825326d73 Removed event queue from add_*_event_listener JS functions and added event hook callback 2024-10-31 13:02:46 +00:00
Laytan Laats
cc3c9bd871 fix thread_unix for Darwin after pthread corrections in posix package
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.)
2024-10-30 15:51:56 +01:00
gingerBill
ee76acd665 Merge pull request #4427 from laytan/posix-additions
Finish sys/posix with Linux and partial Windows support & clean up other packages as a result
2024-10-30 11:43:47 +00:00
Laytan
7e12e37df9 fix test 2024-10-28 19:58:39 +01:00