Andrew Kelley
381704dd0e
Revert "std.c: fix few capcisum api calls, following-up on 6ae19fa."
...
This reverts commit 72dd22f262353fa7d37c89c7d163e97a162abb9b.
2023-07-31 10:50:16 -07:00
Andrew Kelley
88b4ee172f
Revert "std.c: few freebsd's kinfo api fixes."
...
This reverts commit d07149c56d202c3503c4f5505e8b003b3e161145.
2023-07-31 10:50:09 -07:00
Andrew Kelley
95e2605d30
Revert "std.c: msghdr* struct removing prefixes to match linux."
...
This reverts commit 8f14431bc883898aaf78cc985e2d90716187e882.
2023-07-31 10:49:57 -07:00
Andrew Kelley
66d5f391ea
Revert "std.c: fix haiku's find_path signature."
...
This reverts commit 9e0ac4449a18677ba695f7a75342cbdb049aad52.
2023-07-31 10:49:45 -07:00
Lauri Tirkkonen
972e70b794
darwin: drop underscore from SIG._{BLOCK,UNBLOCK,SETMASK}
...
this makes them match decls in other OSes
2023-07-25 13:49:08 -07:00
kcbanner
576ffaa329
darwin: update mcontext_t definition for aarch64 to add neon state
2023-07-20 22:58:14 -04:00
kcbanner
412cd789bf
debug: fixup base address calculations for macho
...
dwarf: fixup x86 register mapping logic
dwarf: change the register context update to update in-place instead of copying
debug: always print the unwind error type
2023-07-20 22:58:14 -04:00
David Carlier
9e0ac4449a
std.c: fix haiku's find_path signature.
...
codePointer and subPath are not mandatory.
following up on 1084590
2023-07-01 22:20:21 -07:00
David CARLIER
8f14431bc8
std.c: msghdr* struct removing prefixes to match linux.
2023-07-01 11:14:39 -07:00
Ali Chraghi
6bd5479306
std.sort.block: add safety check for lessThan return value
2023-06-26 17:50:10 -07:00
David CARLIER
d07149c56d
std.c: few freebsd's kinfo api fixes.
...
following up on 4a0508e and 3dd0afe.
- kinfo_vmentry, removing kve_ prefix.
- kinfo_getproc, returns one entry at most.
2023-06-25 12:27:45 -07:00
mlugg
f26dda2117
all: migrate code to new cast builtin syntax
...
Most of this migration was performed automatically with `zig fmt`. There
were a few exceptions which I had to manually fix:
* `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten
* `@truncate`'s fixup is incorrect for vectors
* Test cases are not formatted, and their error locations change
2023-06-24 16:56:39 -07:00
David CARLIER
72dd22f262
std.c: fix few capcisum api calls, following-up on 6ae19fa.
...
only variadic calls are prefixed with underscores.
ref: 59833b089e/sys/sys/capsicum.h (L326)
2023-06-24 13:05:45 -07:00
David CARLIER
ea1d64dae4
std.c: fix host_basic_info definition for darwin.
...
follow-up on ff59c45.
ref: a5e15eced0/lib/libc/include/any-macos-any/mach/host_info.h (L116)
2023-06-24 13:00:14 -07:00
David CARLIER
e9dd0a22f0
std.c: freebsd fix typo for PROC.PROCCTL_MD_MIN constant.
...
follow-up on 2e2d379.
2023-06-24 12:59:18 -07:00
David CARLIER
64f0059cd3
std.c: update netbsd/openbsd mman constants
2023-06-22 10:21:48 +00:00
Eric Joldasov
50339f595a
all: zig fmt and rename "@XToY" to "@YFromX"
...
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-19 12:34:42 -07:00
Andrew Kelley
3ef91233ca
Merge pull request #15867 from devnexen/haiku_malloc_usable_size
...
std.c: haiku also supports malloc_usable_size to benefit zig's heap
2023-06-18 12:44:08 -07:00
David CARLIER
54ea0bbcdd
std.c: exposing timer api
2023-06-18 08:09:42 -07:00
Michael Dusan
4054d00144
dragonfly: fix std.c.getdents
...
- fix getdents return type usize → c_int
2023-06-15 14:48:20 -04:00
Michael Dusan
40fc71bf71
openbsd: fix std.c.getdents and debitrot
...
- fix getdents return type usize → c_int
- special-case process.zig to use sysctl instead of sysctlbyname
- use struct/field pattern for sysctl HW_* constants
2023-06-15 14:48:20 -04:00
Michael Dusan
64ddba955a
freebsd: fix std.c.getdents
...
- fix getdents return type usize → isize
- usize ultimately forced errors to .SUCCESS in std.c.getError
New behavior in freebsd 13.2 is to return ENOENT if the directory being
iterated is deleted during iteration. We now detect this and treat it
consistent with iteration ending.
2023-06-15 14:48:19 -04:00
David CARLIER
138f1253de
std.os: fix uname usage.
...
close #15839 .
2023-05-29 22:08:43 +03:00
Veikka Tuominen
ca16f1e8a7
std.Target adjustments
...
* move `ptrBitWidth` from Arch to Target since it needs to know about the abi
* double isn't always 8 bits
* AVR uses 1-byte alignment for everything in GCC
2023-05-26 21:42:19 -07:00
David CARLIER
fcaf4e7397
while at it, adding for dragonflybsd too
2023-05-26 16:13:33 +01:00
David Carlier
a3eb950423
std.c: haiku also supports malloc_usable_size to benefit zig's heap
2023-05-26 12:05:19 +00:00
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
Michael Dusan
19c96c09f3
std.c: openbsd sigcontext/ucontext fix enum
2023-05-22 11:31:57 +03:00
David CARLIER
ccfb0d408d
std.c: adding ptrace for netbsd.
2023-05-20 11:06:11 +03:00
David CARLIER
40e8c2243c
std.c: darwin's *copyfile api update.
2023-05-17 06:06:41 +03:00
David CARLIER
b754068fbc
std.c: add ptrace for freebsd support.
2023-05-16 22:47:51 +03:00
David CARLIER
b677b36278
std.c: add netbsd's accept_filter_data for ACCEPT_FILTER sock opt.
2023-05-16 04:31:15 +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
c7bf8bab38
std.os: adding linux's sched_setaffinity and its wrapper
2023-05-13 21:18:18 +03:00
David CARLIER
6f418c11e1
linux adding some NUMA support
2023-05-13 12:13:02 +03:00
David CARLIER
cceadf52ba
std.c: further darwin's host statistics data
2023-05-13 11:55:43 +03:00
David CARLIER
6547d23312
std.c: adding basic darwin's host_statistics data.
2023-05-12 20:20:31 +03:00
Veikka Tuominen
d761e6cc7d
fix formatting in darwin.zig
2023-05-11 14:59:19 +03:00
David CARLIER
20cc69318f
std.c: darwin adding more host_info api data
2023-05-11 11:21:07 +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
e21739dd8c
std.fs: selfExePath haiku using constants instead
2023-05-09 14:24:20 +03:00
David CARLIER
e8f76b452b
std.c: adding freebsd's domainset api
2023-05-09 14:24:03 +03:00
David Carlier
1585ed637d
std.c: openbsd sigcontext/ucontext for arm64.
2023-05-09 14:23:46 +03:00
David CARLIER
3dd0afe787
std.c: adding freebsd's kinfo_proc type.
2023-05-09 12:04:53 +03:00
David CARLIER
ff59c45840
std.c: darwin add host_info based data.
2023-05-07 17:05:03 +03:00
David CARLIER
4bfd37ddb4
std.c: adding cpu affinity api for macOs (mainly x86_64)
2023-05-06 00:55:20 +03:00