David CARLIER
41502c6aa5
std.Thread: refining stack size from platform minimum, changes more targetted towards platform like Linux/musl ( #15791 )
2023-05-25 14:32:17 -05:00
David CARLIER
768965788e
std.c: fix freebsd's CPU_ISSET call
2023-05-22 13:13:57 +03:00
David CARLIER
b754068fbc
std.c: add ptrace for freebsd support.
2023-05-16 22:47:51 +03:00
David CARLIER
2952fb9758
std.c: add rfork for freebsd
2023-05-15 03:10:34 +03:00
David CARLIER
05268bb967
std.os: implementing sched_setaffinity wrapper for freebsd
2023-05-14 10:21:42 +03:00
David CARLIER
cd7e2bf57a
std.c: adding freebsd's ioctl base operands.
2023-05-10 19:14:51 +03:00
David CARLIER
5260657230
std.c: add freebsd's kinfo_vmobject
2023-05-10 01:48:35 +03:00
David CARLIER
10a7cf58c1
std.c: adding freebsd's domainset_t bitset
2023-05-10 01:13:15 +03:00
David CARLIER
e8f76b452b
std.c: adding freebsd's domainset api
2023-05-09 14:24:03 +03:00
David CARLIER
3dd0afe787
std.c: adding freebsd's kinfo_proc type.
2023-05-09 12:04:53 +03:00
David CARLIER
b9841750f9
std.c: adding freebsd's CPU_COUNT macro portage.
2023-05-03 08:19:46 +03:00
David CARLIER
6ae19fa48d
std.c: add essential freebsd's capsicum api subset.
2023-04-30 19:44:10 -07:00
David CARLIER
3fb93fc8f2
std.c: freebsd add procctl exclusive x86_64 flags
2023-04-30 12:28:36 +03:00
David CARLIER
8d88dcdc61
std.c: adding mincore for freebsd
2023-04-25 10:43:54 -07:00
David CARLIER
23c4f55a61
std: adding sigevent to supported platforms.
2023-04-23 19:46:43 +03:00
David CARLIER
9ef615104a
std: adding FreeBSD's sched wrappers
2023-04-23 19:46:30 +03:00
David Carlier
9691cded95
std: mcontext layout for x86 and fixing few x86_64 fields types for
...
FreeBSD
2023-04-23 19:46:18 +03:00
David CARLIER
1d322fe510
std: add accept_filter struct to make use of SO_ACCEPTFILTER socket option
2023-04-23 19:45:59 +03:00
David CARLIER
9140249d29
std: enriching malloc api on freebsd.
2023-04-23 19:45:34 +03:00
David CARLIER
dbdafb6cc5
os: expand sched_getaffinity wrapper and update freebsd's cpuset api flags.
2023-04-22 13:54:57 +03:00
David CARLIER
83970b6d91
std: adding freebsd's elf_aux_info api
2023-04-21 11:42:49 -07:00
David CARLIER
2568da2f41
std: freebsd update proposal
...
adding getentropy and cpuset_(get/set)affinity calls.
2023-04-18 14:59:01 +03:00
David CARLIER
7b908e173f
std: add shm_create_largepage for FreeBSD, completing MFD* constants.
2023-04-14 13:41:22 -04:00
David CARLIER
4a0508e56c
std: add kinfo_vmentry for FreeBSD
2023-04-13 23:46:03 -04:00
David CARLIER
2e2d37917d
std: add FreeBSD's procctl api.
2023-04-08 18:31:01 +03:00
David CARLIER
080136e4ad
std: add madvise flags to freebsd
2023-04-05 13:54:01 +03:00
David CARLIER
771d07268f
std: freebsd MAP* constants update, MAP_ALIGNED_SUPER and the MAP_ALIGNED macro.
2023-04-04 12:57:16 +03:00
Stephen Gregoratto
7f635ae7bd
FreeBSD: add mcontext_t for aarch64
...
What isn't disabled for test-std mostly passes, except for the copysign
and signbit tests for f16. Seemingly related to #14366 .
2023-01-21 23:20:50 +02:00
Andrew Kelley
c9ef277fa7
Merge pull request #13980 from ziglang/std.net
...
networking: delete std.x; add std.crypto.tls and std.http.Client
2023-01-03 02:43:50 -05:00
Michael Dusan
571b817abc
freebsd: add std.c.arc4random_buf
2023-01-02 19:18:33 -05:00
Michael Dusan
537624734c
freebsd: getFdPath: < 13.1 fallback impl
2023-01-02 19:18:32 -05:00
Andrew Kelley
cd0d514643
remove the experimental std.x namespace
...
Playtime is over. I'm working on networking now.
2023-01-02 16:57:15 -07:00
Andrew Kelley
50eb7983cd
remove most conditional compilation based on stage1
...
There are still a few occurrences of "stage1" in the standard library
and self-hosted compiler source, however, these instances need a bit
more careful inspection to ensure no breakage.
2022-12-06 20:38:54 -07:00
Stevie Hryciw
04f3067a79
run zig fmt on everything checked by CI
2022-11-18 19:22:42 +00:00
Veikka Tuominen
41b7e40d75
Merge pull request #13418 from ryanschneider/signal-alignment-13216
...
std.os: fix alignment of Sigaction.handler_fn
2022-11-09 17:36:40 +02:00
Ali Chraghi
aea617c60b
std.os: take advantage of the freebsd's copy_file_range
2022-11-05 15:43:39 -04:00
Ryan Schneider
7f1f2e653d
std.os: fix alignment of Sigaction.handler_fn
...
Fixes #13216
2022-11-04 08:00:50 -07:00
Ali Chraghi
f5f1f8c666
all: rename i386 to x86
2022-11-04 00:09:27 +03:30
ominitay
295451dfe5
std: Replace use of stage1 function pointers
2022-09-29 21:45:30 +03:00
Stephen Gregoratto
7ccb94fac8
Audit FreeBSD structs to match header files/ABI
...
The big outliers were `Stat` and `mcontext_t`. Also adds doc-comments
from the headers where possible.
2022-09-14 20:05:54 -04:00
Isaac Freund
b78f3bf1f1
std: fix definition of SIG_IGN, SIG_DFL, etc.
...
POSIX specifies that the sa_handler field of the sigaction struct may
be set to SIG_IGN or SIG_DFL. However, the current constants in the
standard library use the function pointer signature corresponding to
the sa_sigaction field instead.
This may not cause issues in practice because the fields usually occupy
the same memory in a union, but this isn't required by POSIX and there
may be systems we do not yet support that do this differently.
Fixing this also makes the Zig interface less confusing to use after
reading the man page.
2022-08-11 12:09:34 +02:00
Kim SHrier
397e6547a9
add FreeBSD support to std.os.getFdPath
...
This implementation uses the F_KINFO fcntl command added in FreeBSD
13 release. FreeBSD 12 users get a compile error.
Co-authored-by: Stephen Gregoratto <dev@sgregoratto.me>
2022-07-15 10:16:31 +03:00
Andrew Kelley
9c5056788f
std: update bsd bits to new fn ptr semantics
2022-07-04 13:02:30 -07:00
Isaac Freund
1392c24166
std.os: Add memfd_create for FreeBSD
...
This is minorly breaking as e.g. std.os.linux.MFD_CLOEXEC is now
std.os.linux.MFD.CLOEXEC.
2022-05-16 17:43:44 -04:00
protty
e3cbea934e
std.Thread.Futex improvements ( #11464 )
...
* atomic: cache_line
* Thread: Futex rewrite + more native platform support
* Futex: tests compile
* Futex: compiles and runs test
* Futex: broadcast test
* Futex: fix PosixImpl for tests
* Futex: fix compile errors for bsd platforms
* Futex: review changes + fix timeout=0 + more comments
2022-04-19 19:42:15 -05:00
Anthony Carrico
078aa5f7b2
Adds Linux support for POSIX file locking with fcntl
...
On Linux, locking fails with EAGAIN (vs. EACCES on other systems).
This commit also adds FcntlErrors for EDEADLK and ENOLCK.
2022-02-15 13:22:50 +02:00
Veikka Tuominen
90f2a8d9c5
Merge pull request #10486 from ominitay/metadata
...
std: Implement cross-platform metadata API
2022-02-14 12:33:49 +02:00
ominitay
b2610649fc
std.c.*: add birthtime function to Stat
...
Adds a birthtime function to the `Stat` structs of Unices which support this. This is done to match the `atime`, `mtime`, and `ctime` functions.
2022-02-13 20:40:45 +00:00
m
65299c37d1
validate in Windows using VirtualQuery
2022-02-11 22:15:46 +01:00
Isaac Freund
9f9f215305
stage1, stage2: rename c_void to anyopaque ( #10316 )
...
zig fmt now replaces c_void with anyopaque to make updating
code easy.
2021-12-19 00:24:45 -05:00