Commit Graph

96 Commits

Author SHA1 Message Date
WP. Yingamphol
8a8230b64e Merge branch 'odin-lang:master' into master 2026-07-17 23:06:28 +07:00
Ignacy Koper
b5cb4b96fc removed Haiku from core:sys/posix package
Signed-off-by: Ignacy Koper <ignacy423@gmail.com>
2026-04-28 19:27:25 +02:00
WP. Yingamphol
019343bf00 Merge branch 'master' into master 2026-03-21 21:18:12 +07:00
Laytan Laats
b2af4f335d posix: fix openat mode not being c_vararg 2026-01-11 20:21:25 +01:00
Harold Brenes
eda6e64639 Fix nfds_t alias for Linux 2025-12-20 16:55:06 -05:00
WP. Yingamphol
6e8bd908da Merge branch 'odin-lang:master' into master 2025-12-07 21:45:47 +07:00
Laytan Laats
090def7870 whoops 2025-11-08 21:30:16 +01:00
Laytan Laats
a852b6512c fix semid_ds definition on arm64 linux 2025-11-08 21:26:29 +01:00
Laytan Laats
0b0caab1d2 fix pthread_attr_t size on arm64 2025-11-08 20:25:56 +01:00
Jeroen van Rijn
7a9ea3ee6d Further overhaul of package line comments. 2025-10-09 23:05:29 +02:00
Harold Brenes
24daa4427c Fix various foreign signatures 2025-09-29 19:58:14 -04:00
FourteenBrush
fe531c1888 Add build tags to posix/spawn.odin 2025-09-07 20:39:27 +02:00
WP. Yingamphol
155c03a2ee Merge branch 'odin-lang:master' into master 2025-08-20 20:18:22 +07:00
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
WP. Yingamphol
8d278acba5 fix system:System.Framework pthread.odin 2025-07-15 12:51:48 +07:00
WP. Yingamphol
ea20383d15 Merge branch 'master' into master 2025-07-15 12:35:06 +07:00
PePerRoNii
0a3f73077e Get/Set Thread names 2025-07-14 17:23:36 +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