gingerBill
d381d0ece4
Fix more procedure to be contextless
2025-08-08 12:33:34 +01:00
Colin Davidson
c1b3d035e4
remove spawn from os, comment sys/posix/spawn
2025-07-29 12:12:15 -07:00
Colin Davidson
fe2b48dec4
enum pass
2025-07-29 11:48:58 -07:00
Colin Davidson
b88f9194d0
Merge remote-tracking branch 'live/master' into macharena
2025-07-28 14:24:46 -07:00
Harold Brenes
219b0fe535
Replace system:System.framework imports with system:System
...
This makes the linker work for both macOS and iOS targets
2025-07-13 15:45:21 -04:00
Colin Davidson
389439ccb9
Merge branch 'master' into macharena
2025-07-07 14:34:05 -07:00
RaphGL
e374ace10d
added IS_SUPPORTED to core:sys/posix
2025-06-21 12:12:13 -01:00
Feoramund
b82753227d
sys/posix: Correct reference to core:text/regex
2025-06-20 10:46:40 -04:00
gingerBill
4aec582a05
Add system:dl to foreign import for dlfcn.odin
2025-06-11 15:27:00 +01:00
Colin Davidson
04481e0fd2
Merge branch 'master' into macharena
2025-06-08 16:17:32 -07:00
Richard Février
f27f9bcd33
Posix: Signal: add SIGWINCH support
2025-05-31 10:01:59 +02:00
Colin Davidson
f1fdd1a8b9
Merge branch 'master' into macharena
2025-04-26 18:22:21 -07:00
Laytan Laats
cf0f73e0cf
fix typo for freebsd arm64 MINSIGSTKSZ
...
Fixes #4878
2025-03-21 23:52:52 +01:00
Laytan Laats
55302280d8
fix addrinfo struct def
...
Fixes #4816
2025-02-12 19:24:27 +01:00
gingerBill
539a74c2a9
Fix bindings for sys/linux and posix/unistd.odin
2025-01-31 08:37:43 +00:00
avanspector
5d3a069e7a
Haiku: more posix
2025-01-10 06:40:29 +01:00
avanspector
5376d2a20b
fix haiku
2024-12-20 17:19:04 +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
ce74325673
sys/posix: fix dirfd on netbsd
2024-11-15 21:22:23 +01:00
A1029384756
5be7ac4039
added unlinking section to posix socket binding documentation
2024-11-06 20:36:29 -05:00
Laytan Laats
8b5492dd4d
fix tabs
2024-11-01 18:10:20 +01: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
Laytan
7e12e37df9
fix test
2024-10-28 19:58:39 +01:00
Laytan
b7140875cf
port pthread_mutex_t and pthread_cond_t from sys/unix cause miniaudio wants it
2024-10-28 19:42:27 +01:00
Laytan Laats
1cebc025b0
sys/posix: impl rest of linux, impl some of Windows
2024-10-28 18:59:06 +01:00
Laytan
0157ff1541
Merge pull request #4118 from andradei/posix-linux
...
Linux POSIX support
2024-10-13 20:05:03 +02:00
Laytan Laats
5d556fe277
fix idtype definition
2024-10-03 15:25:51 +02:00
Laytan Laats
ab54ad3a75
sys/posix: use '#max_field_align'
2024-09-30 16:39:14 +02:00
Laytan
5cd1784d41
review/correct/cleanup posix linux PR
2024-09-30 16:00:46 +02:00
Colin Davidson
f3ab14b8cc
Merge branch 'master' into macharena
2024-09-24 02:32:06 -07:00
Colin Davidson
99938c7d4f
spawn tweaks
2024-09-24 02:31:44 -07:00
Isaac Andrade
c1a67f37e6
Fix O_Flag_Bits.EXEC for non Linux platforms on posix/fcntl.
2024-09-21 21:37:41 -06:00
Isaac Andrade
cc60725eda
Move bit set creation to compiler guard. Fix indentation on posix/sys_sem.
2024-09-21 21:28:18 -06:00
Isaac Andrade
04c08c2e2d
Resolve bit set differences between linux and other platforms in posix/fcntl
2024-09-21 21:24:18 -06:00
Isaac Andrade
c68d847fb3
Satisfy the compiler.
2024-09-21 20:59:54 -06:00
Isaac Andrade
5162c6c506
Rename sigaction duplicate type to sigaction_t on linux, following other platforms.
2024-09-21 20:56:52 -06:00
Isaac Andrade
10702f1134
Implement POSIX pthread, signal, sys/resource, unistd for Linux.
2024-09-21 20:44:33 -06:00
Isaac Andrade
97e06cb98e
Fix bit flags on fcntl linux POSIX implemention. Add sys/sem linux implementation.
2024-09-15 18:43:51 -06:00
Isaac Andrade
8616842ec6
Implement Linux POSIX compliance for poll, sched, sys/select. Fix enum in fcntl.
2024-09-14 20:23:42 -06:00
Isaac Andrade
aa91479870
Fix O_NOFOLLOW typo. Add Linux support for POSIX fcntl.
2024-09-14 17:01:15 -06:00
Isaac Andrade
af94c4ab32
Add initial POSIX support for Linux for wordexp.
2024-09-14 10:06:25 -06:00
Isaac Andrade
55a9ba1fc0
Finish sys/socket POSIX support for Linux.
2024-09-11 22:25:38 -06:00
Isaac Andrade
1632f19826
In-progress support for POSIX on Linux for sys/socket.
2024-09-10 18:43:09 -06:00
Isaac Andrade
ff82396e7c
Add Linux support for POSIX sys ipc, mman, time, utsname.
2024-09-10 07:32:58 -06:00
Isaac Andrade
92ff04629e
Fix some compilation errors on POSIX linux.
2024-09-09 22:17:42 -06:00
Laytan Laats
288312a812
core: improve package doc comments for the documentation generator
2024-09-03 19:59:04 +02:00
Isaac Andrade
9e4b45f0f0
Add linux to OS check.
2024-09-02 22:58:54 -06:00
Isaac Andrade
d93f55c5d4
Reuse POSIX netinet_in constants for linux.
2024-09-02 22:32:52 -06:00
Isaac Andrade
f072136c04
Implement POSIX linux support for poll and netinet_tcp. Incomplete support for netinet/in.
2024-09-02 21:59:03 -06:00