Kiana
38bc11b7b8
Add libc::readlink() ( #2316 )
...
* Add libc::readlink()
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-22 15:46:23 +02:00
LowByteFox
5c82747970
Improved OpenBSD support ( #2317 )
...
* add openbsd support, compiles and passses all tests
* fix backtrace
* gh actions should include openbsd artifacts
2025-07-22 15:15:20 +02:00
Christian Buttner
2053f2767b
Add ConditionVariable.wait_until and ConditionVariable.wait_for ( #2302 )
...
* Add `ConditionVariable.wait_until` and `ConditionVariable.wait_for`
* Add "@structlike" for typedefs.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-19 13:12:14 +02:00
Zack Puhl
adabae2a24
add 'strdup' reference to libc
2025-06-23 15:37:25 +02:00
Christoffer Lerno
becda6ea1d
Improve Android linking
2025-06-08 15:06:19 +02:00
Christoffer Lerno
c7b3ae0cf9
Fix Android errno
2025-06-08 11:33:28 +02:00
Awang
d7a11903c7
Add external __errno() function for env::ANDROID ( #2182 )
2025-06-06 14:47:16 +02:00
BWindey
d143ec227c
Libc ioctl extern function ( #2162 )
...
* Add barebones extern ioctl() binding in libc
* Update release notes
2025-05-29 23:00:35 +02:00
Boris Barbulovski
b5d0739de0
Add env::ANDROID to std.*
2025-04-16 17:47:49 +02:00
Christoffer Lerno
207bcfea02
os::exit and os::fastexit added.
2025-03-20 13:36:59 +01:00
Christoffer Lerno
5c77c9a754
- Change distinct -> typedef.
...
- Order of attribute declaration is changed for `alias`.
- Added `LANGUAGE_DEV_VERSION` env constant.
- Rename `anyfault` -> `fault`.
- Changed `fault` -> `faultdef`.
- Added `attrdef` instead of `alias` for attribute aliases.
2025-03-15 20:10:47 +01:00
Christoffer Lerno
8b49e6c14d
Rename def to alias.
2025-03-13 11:22:27 +01:00
Boris Barbulovski
f21cc02320
Initial Android support. ( #2024 )
...
* Initial Android support.
* Add Android x86_64
* - Typo api_verion
- Typo in DEFAULT_TARGETS
- Removed unnecessary snprintf
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-03-08 23:38:52 +01:00
BWindey
1461414128
[TEST] Add unit tests for libc ( #1974 )
...
Some tests for libc + fixes
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-03-08 22:25:21 +01:00
Erik Bäckman
83bc24f58c
Fix libc::stat on FreeBSD (x86_64)
2025-03-04 10:20:13 +01:00
Christoffer Lerno
222bfb158b
Remove deprecated functions.
2025-03-03 00:32:20 +01:00
rexim
122179980c
Introduce Socket.shutdown()
2025-02-07 20:52:36 +01:00
Christoffer Lerno
3c50376175
New test runner
2025-01-30 01:09:48 +01:00
Bram Windey
bbef5656a5
Fix 'strtul' to 'strtoul'
2025-01-20 21:45:15 +01:00
Thomas Adam
61badb6af7
libc: add isatty()
2025-01-04 15:41:51 +01:00
vssukharev
55cdcbb39b
Fix typo in libc: SIGABTR -> SIGABRT
2025-01-01 21:36:33 +01:00
Christoffer Lerno
a1a6511e26
Remove "Timespec"
2024-11-22 16:50:29 +01:00
Tomas Kallup
bdd6ed0e83
Fix: Unify termios types for actions & flags
...
The type for `Tcflags` was used instead of the CInt (now `Tcactions`)
and vice versa.
2024-11-04 17:15:40 +01:00
Christoffer Lerno
31cd839063
Switch to <* *> docs. Fix issue with dynamically loaded C3 libs with other C3 code.
2024-10-14 02:14:34 +02:00
PavelBlinnikov
6a2957faf7
fix: segfault in panic when statically compiled
...
Co-authored-by: RoadToLP <ilya.titoff2013@yandex.ru >
2024-10-12 22:18:38 +02:00
Christoffer Lerno
a665978b64
Fixing some whitespace issues.
2024-10-08 19:38:31 +02:00
wilsonk
4c7d61ae82
Bsd family fixes ( #1435 )
...
Some small fixes for the BSD's
Try fcntl for NetBSD
Fixes for stdin, etc. and setjmp/longjmp
2024-09-13 14:49:51 +02:00
wilsonk
1b54a99f6a
Add initial FreeBSD support ( #1430 )
...
Add initial FreeBSD support
2024-09-11 22:38:53 +02:00
Christoffer Lerno
6d93ce9d33
Update to libc::setjmp on Win32, to do no stack unwinding.
2024-08-11 18:22:14 +02:00
Christoffer Lerno
800f7970a7
Fixes to the socket functions. Improved output when pointer is out of range. Better error when casting to a distinct fails.
2024-08-06 17:08:03 +02:00
Christoffer Lerno
2748cf99b3
- Fix issue where a compile time parameter is followed by "...".
...
- Fix issue with some conversions to untyped list.
- Experimental change: add `+++` `&&&` `|||` as replacement for `$concat`, `$and` and `$or`.
2024-08-04 23:16:25 +02:00
PalsFreniers
b0e104bfd0
Adding Termios library as std::libc::termios (posix libc functions) ( #1272 )
...
Adding libc's termios to lib/std/libc
2024-07-31 14:45:04 +02:00
Christoffer Lerno
bc0d52142a
Added pull request #1189 : Fix os::native_is_{file,dir} bug. Add tests.
2024-07-15 03:02:54 +02:00
Christian Buttner
83fe94d497
Fix posix NativeConditionVariable.wait_timeout. ( #1211 )
...
Fix posix NativeConditionVariable.wait_timeout. TimeSpec::ns may not exceed one second.
2024-06-24 11:52:21 +02:00
Christoffer Lerno
1d61ace302
Do not link with debug libc on win32 when using cross compile libs. Add delete methods to dstring. Fixes to macOS aarch64 codegen. Use glibc backtrace when available. Add load_* methods to file. The cast (int[8])int_slice[:8] now works.
2023-12-08 18:59:57 +01:00
Christoffer Lerno
87fdb5956e
Improved backtrace on platforms without glibc. Added $$frameaddress and $$returnaddress properly.
2023-11-18 20:13:11 +01:00
Christoffer Lerno
99cfaa1583
Refactor protocols.
2023-10-06 22:31:41 +02:00
Christoffer Lerno
e706a8acd0
Fix Linux constant in posix.c3. Address issue #1009 . Sanitizes the module name in generated project.
2023-09-22 15:15:47 +02:00
Christoffer Lerno
8dad8f2b1c
Use regular backtrace for Mac on signals as well.
2023-09-22 01:12:48 +02:00
Christoffer Lerno
ffb7935e12
Updating time duration functions.
2023-09-05 10:57:50 +02:00
Christoffer Lerno
6c60b0d2a6
Update errno listings. Update ai flags in std::net. Fix incorrect socket error results on Win32. Change behaviour Socket set_option. TcpSocket/TcpServerSocket/UdpSocket. Rename "TimeDuration" to "Duration". Allow @if on enum values.
2023-08-19 22:41:54 +02:00
Pierre Curto
65bea1cb2d
add ThreadPool ( #926 )
...
* lib/std/collections: fix tab indentation
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/std/threads: add ThreadPool
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* ats/lib/threads: add num_cpu()
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-08-14 15:33:51 +02:00
Christoffer Lerno
499c82b089
Updated indentation to C3 standard.
2023-07-26 14:01:24 +02:00
Pierre Curto
a376d8e2bf
add ERRNO for macOS, improve net error messages ( #885 )
...
* lib/std/libc: add ERRNO values for macOS
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/std/net: improve error messages
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-07-26 13:41:35 +02:00
Pierre Curto
89e084938f
cross platform socket interface ( #857 )
...
* lib/std/net: add Network, Socket and Listener
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/std/net: add SocketOption
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
* lib/std/net: fixes for win32 and wasm
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com >
2023-07-16 14:14:36 +02:00
Christoffer Lerno
c7d90baad1
Error message on bus error or segmentation fault. Some additional SIG… ( #848 )
...
* Error message on bus error or segmentation fault. Some additional SIG info. Full debug info by default. Trapping is now debugtrap rather than trap for LLVM. Row now initialized when entering function for stacktrace.
2023-07-13 15:25:06 +02:00
Christoffer Lerno
e2676a5c7f
Change zero terminated wide strings to use WString over Char16
2023-07-09 20:10:17 +02:00
Christoffer Lerno
68f6cb1286
Updated organization file functions, env naming.
2023-06-24 10:29:17 +02:00
Christoffer Lerno
d90fa5e292
Make errno implicitly convertible to int. Add getaddrinfo on all platforms. Fix addrinfo struct and sizes.
2023-06-22 02:06:37 +02:00
Christoffer Lerno
503a4de277
Cleanup of libc
2023-06-21 16:27:53 +02:00