Commit Graph

16013 Commits

Author SHA1 Message Date
gingerBill
5caaefddb1 Merge pull request #5966 from benjryan/sio_udp_connreset
Add SIO_UDP_CONNRESET winsock constant
2025-11-26 11:37:39 +00:00
Ben Ryan
e2a0f4417f Add SIO_UDP_CONNRESET winsock constant 2025-11-26 20:40:38 +11:00
bc-universe
9712624e04 Implement more Linux syscalls (#5705)
* Implement some more Linux syscalls

* Fixed typo and removed stray comments

* Correct types for some syscalls

* Fix types and add variadic argument for prctl

* flag fixes

* when x86/amd64 only

* more fixes

---------

Co-authored-by: Laytan Laats <laytanlaats@hotmail.com>
2025-11-24 12:14:17 +01:00
gingerBill
5e3648b83c Merge pull request #5956 from thePHTest/master
add math.sign and math.sign_bit overloads for int types
2025-11-23 21:17:04 +00:00
Laytan
2f6f24d839 Merge pull request #5800 from IllusionMan1212/xlib-IM
vendor/xlib: a few more IM-related procedures and constants
2025-11-23 21:07:20 +01:00
Jeroen van Rijn
97e423f199 Merge pull request #5959 from laytan/remove-terminate-from-demo
remove terminate from demo
2025-11-23 19:29:15 +00:00
Phil Homan
342a7dd112 rerrange math.sign and math.sign_bit overloads 2025-11-23 11:03:37 -08:00
Laytan Laats
95a37dd340 remove terminate from demo
This was causing deadlocks because:

1. The main thread would `thread.terminate` a running thread
2. `thread.terminate` does not mean termination happens immediately
3. The thread that was terminated would see that the main thread
   released `print_mutex` and acquire it
4. The worker would execute `fmt.printf` which is a cancellation point
5. Cancellation point reached, cancelled
6. Deadlock because the thread was holding `print_mutex`

You would usually solve this with `pthread_cleanup_push` that would
release the mutex in case it is cancelled, or use
`pthread_setcancelstate` to disable cancellation while the mutex is
held. But the real fix is just not using forced termination and using a
flag or other mechanism to indicate to the thread it should stop.

`thread.terminate` shouldn't even be a thing IMO.
It is way to dangerous and if somebody knows what they are doing they
can use the core:sys procedures to achieve it.

And we certainly shouldn't be using it in the demo as an example.
2025-11-23 19:48:03 +01:00
gingerBill
cd490bd35d Merge pull request #5958 from A1029384756/master
moved checking of -vet-unused-procedures and -vet-packages flags to after all flags are parsed
2025-11-23 09:49:16 +00:00
A1029384756
411a5b6401 moved checking of -vet-unused-procedures and -vet-packages flags to
after all flags are parsed
2025-11-22 23:08:23 -05:00
Phil Homan
9131bca7ba add math.sign and math.sign_bit overloads for int types 2025-11-22 13:32:21 -08:00
gingerBill
a162626f2b Use BUF_SIZE 2025-11-22 21:18:43 +00:00
gingerBill
a71917a96a Merge pull request #5941 from odin-lang/bill/typeid-sip-hash
Use SIP hash as name canonicalization hash
2025-11-22 16:55:20 +00:00
Jeroen van Rijn
1fb95dade2 Expand base64 tests to include roundtrip 2025-11-22 15:44:19 +01:00
Jeroen van Rijn
f420755d46 Merge pull request #5951 from FrancisTheCat/master
Increase base64 decoding table size to 256, preventing out of bounds reads
2025-11-22 14:43:33 +00:00
Jeroen van Rijn
17f166971d Merge pull request #5953 from Igonato/docs
Adjust docs links for satellite SDL libraries
2025-11-22 13:53:03 +00:00
Ignat S.
96373d97e0 Adjust docs links for satellite SDL libraries 2025-11-22 16:36:55 +03:00
Franz Hoeltermann
cd4bec0007 Increase base64 decoding table size to 256, preventing out of bounds reads 2025-11-22 12:54:36 +01:00
gingerBill
adcbfb7861 Add @(require_results) to core:simd procedures where missing 2025-11-22 09:43:40 +00:00
Jeroen van Rijn
716449d6b3 Merge pull request #5949 from karl-zylinski/log-allocator-freestanding-build-fix
Don't build log allocator file on freestanding.
2025-11-21 20:36:20 +00:00
Karl Zylinski
c619c69bff Don't build log allocator file on freestanding. This makes core:log compile on freestanding again. Closes #5948 2025-11-21 21:19:58 +01:00
gingerBill
f72bb6502a Merge pull request #5946 from slowhei/master
Add NSWindow coordinate space conversion bindings
2025-11-19 13:59:26 +00:00
gingerBill
0753b0c547 Merge pull request #5940 from connnnal/d3d12-tight-alignment
Update d3d12 bindings for D3D12_FEATURE_D3D12_TIGHT_ALIGNMENT
2025-11-19 11:15:27 +00:00
Tohei Ichikawa
b2a42ac14f Add NSWindow coordinate space conversion bindings 2025-11-18 22:38:25 -05:00
Jeroen van Rijn
56aab55d82 Fix #5931
Fix #5931 and add test case for it.
2025-11-18 15:37:57 +01:00
gingerBill
21116a7b47 Use SIP hash as name canonicalization hash
Replaces fnv64a
2025-11-18 12:33:48 +00:00
connnnal
b9b3e909ad Fix FEATURE bitflag indentation 2025-11-18 12:16:25 +00:00
gingerBill
784f320e12 Fix indentation in comments 2025-11-18 12:11:29 +00:00
connnnal
8ffa55d664 Update d3d12 bindings for D3D12_FEATURE_D3D12_TIGHT_ALIGNMENT 2025-11-18 12:08:29 +00:00
gingerBill
3e0f9cace6 Merge pull request #5936 from benjryan/wsa_defs
Add WSASendTo and WSARecvFrom
2025-11-16 22:25:08 +00:00
gingerBill
fd0fda5e34 Merge pull request #5937 from laytan/skip-collision-panic-when-package-names-arent-unique
skip collision panic when package names aren't unique
2025-11-16 22:23:26 +00:00
Laytan
eb089a1c98 skip collision panic when package names aren't unique 2025-11-16 15:06:30 +01:00
Laytan
614e98f230 Merge pull request #5934 from BradLewis/fix/oob-parser
Fix out of bounds access when parsing end_pos
2025-11-16 14:24:07 +01:00
Ben Ryan
a5d9c87ac5 Add WSASendTo and WSARecvFrom 2025-11-16 23:56:54 +11:00
Brad Lewis
4267f1eb56 Fix out of bounds access when parsing end_pos 2025-11-15 19:28:31 -05:00
gingerBill
93fa00c191 Use _get_platform_error() where more appropriate 2025-11-14 21:08:32 +00:00
gingerBill
360d93bfa1 Merge pull request #5928 from odin-lang/bill/io-error-changes
Move some OS General_Error values to io.Error
2025-11-14 14:59:03 +00:00
gingerBill
e4fcebe4bf Empty -> Unsupported 2025-11-14 11:17:38 +00:00
gingerBill
51536fecf4 Move some of the os&os2 errors into io.Error; Rename Empty to Unsupported 2025-11-14 11:08:24 +00:00
gingerBill
bd21b2cf49 Merge pull request #5927 from xraxra/fix-stbi-alpha-channel
change STBI resize alpha_channel parameter type to c.int
2025-11-14 10:54:26 +00:00
Jeroen van Rijn
2afe0322ac Merge pull request #5926 from wrathdoesthat/windows-LockFileEx
LockFileEx/UnlockFileEx and related flags
2025-11-14 09:48:01 +01:00
xra
b5700e4c4c change STBI resize alpha_channel parameter type to c.int 2025-11-14 16:18:43 +09:00
Wrath
a43cee934e LockFileEx/UnlockFileEx and related flags 2025-11-13 23:36:16 -05:00
Laytan
4bfcc5ca5f Merge pull request #5900 from laytan/another-thread-cancel-try
removes the darwin specific paths from thread_unix
2025-11-13 21:21:18 +01:00
Laytan
c4262ccc77 Merge pull request #5919 from slowhei/master
Fix typo in NS.String_initWithCString
2025-11-12 19:05:34 +01:00
Tohei Ichikawa
8d9806817d Fix typo in NS.String_initWithCString 2025-11-12 09:29:28 -05:00
gingerBill
ae45b8b38e Merge pull request #5903 from BNTB/master
Add FreeLibraryAndExitThread in kernel32. Add EnumProcessModules in psapi (new file).
2025-11-11 21:22:16 +00:00
gingerBill
33341c47a1 Merge pull request #5908 from slowhei/master
Fix allocation of anonymous globals
2025-11-11 21:08:11 +00:00
gingerBill
68272c0c6c Merge pull request #5912 from laytan/iouring
sys/linux: add io uring API
2025-11-10 19:23:58 +00:00
Laytan
3db76bc367 sys/linux: add io uring API 2025-11-10 20:03:57 +01:00