Commit graph

493 commits

Author SHA1 Message Date
Andrew Kelley
1d4e6e6c73 Revert "std.c: add essential freebsd's capsicum api subset."
This reverts commit 6ae19fa48d.
2023-07-31 11:17:11 -07:00
Andrew Kelley
f96f57930c Revert "std.c: adding freebsd's CPU_COUNT macro portage."
This reverts commit b9841750f9.
2023-07-31 11:14:03 -07:00
Andrew Kelley
a397952932 Revert "std.c: add os_proc_available_memory for darwin"
This reverts commit 012f9a97eb.
2023-07-31 11:13:40 -07:00
Andrew Kelley
a92be49851 Revert "Merge pull request #15317 from devnexen/darwin_rand_nativegen"
This reverts commit a111130977, reversing
changes made to 9f3f9fb40f.
2023-07-31 11:13:27 -07:00
Andrew Kelley
421022929a Revert "std.c: adding cpu affinity api for macOs (mainly x86_64)"
This reverts commit 4bfd37ddb4.
2023-07-31 11:12:19 -07:00
Andrew Kelley
614ae886db Revert "std.c: darwin add host_info based data."
This reverts commit ff59c45840.
2023-07-31 11:11:05 -07:00
Andrew Kelley
afca695b64 Revert "std.c: adding freebsd's kinfo_proc type."
This reverts commit 3dd0afe787.
2023-07-31 11:10:56 -07:00
Andrew Kelley
f3adbe249b Revert "std.c: openbsd sigcontext/ucontext for arm64."
This reverts commit 1585ed637d.
2023-07-31 11:10:40 -07:00
Andrew Kelley
8c7eb8c8da Revert "std.c: adding freebsd's domainset api"
This reverts commit e8f76b452b.
2023-07-31 11:09:34 -07:00
Andrew Kelley
5d345b69ea Revert "std.fs: selfExePath haiku using constants instead"
This reverts commit e21739dd8c.
2023-07-31 11:09:28 -07:00
Andrew Kelley
a048ddaf91 Revert "std.c: adding freebsd's domainset_t bitset"
This reverts commit 10a7cf58c1.
2023-07-31 11:09:16 -07:00
Andrew Kelley
ac7be71d8e Revert "std.c: add freebsd's kinfo_vmobject"
This reverts commit 5260657230.
2023-07-31 11:05:38 -07:00
Andrew Kelley
6d7c6f4da7 Revert "std.c: adding freebsd's ioctl base operands."
This reverts commit cd7e2bf57a.
2023-07-31 11:05:21 -07:00
Andrew Kelley
f3fa47a984 Revert "std.c: darwin adding more host_info api data"
This reverts commit 20cc69318f.
2023-07-31 11:04:37 -07:00
Andrew Kelley
942848de58 Revert "std.c: adding basic darwin's host_statistics data."
This reverts commit 6547d23312.
2023-07-31 11:04:04 -07:00
Andrew Kelley
0043cdbeca Revert "std.c: further darwin's host statistics data"
This reverts commit cceadf52ba.
2023-07-31 11:03:52 -07:00
Andrew Kelley
8678d445c2 Revert "linux adding some NUMA support"
This reverts commit 6f418c11e1.
2023-07-31 11:02:43 -07:00
Andrew Kelley
182bec8771 Revert "std.os: adding linux's sched_setaffinity and its wrapper"
This reverts commit c7bf8bab38.
2023-07-31 11:01:42 -07:00
Andrew Kelley
86a5edca62 Revert "std.os: implementing sched_setaffinity wrapper for freebsd"
This reverts commit 05268bb967.
2023-07-31 10:58:03 -07:00
Andrew Kelley
e1fdd21f0e Revert "std.c: add rfork for freebsd"
This reverts commit 2952fb9758.
2023-07-31 10:57:35 -07:00
Andrew Kelley
a208c59a25 Revert "std.c: add netbsd's accept_filter_data for ACCEPT_FILTER sock opt."
This reverts commit b677b36278.
2023-07-31 10:57:22 -07:00
Andrew Kelley
b7e37f9ddc Revert "std.c: add ptrace for freebsd support."
This reverts commit b754068fbc.
2023-07-31 10:57:12 -07:00
Andrew Kelley
faa6daef99 Revert "std.c: darwin's *copyfile api update."
This reverts commit 40e8c2243c.
2023-07-31 10:57:06 -07:00
Andrew Kelley
43162efbf4 Revert "std.c: adding ptrace for netbsd."
This reverts commit ccfb0d408d.
2023-07-31 10:55:03 -07:00
Andrew Kelley
9d798ead63 Revert "std.c: fix freebsd's CPU_ISSET call"
This reverts commit 768965788e.
2023-07-31 10:54:45 -07:00
Andrew Kelley
1b9ffa0824 Revert "std.Thread: refining stack size from platform minimum, changes more targetted towards platform like Linux/musl (#15791)"
This reverts commit 41502c6aa5.
2023-07-31 10:54:35 -07:00
Andrew Kelley
ba3b352891 Revert "std.os: fix uname usage."
This reverts commit 138f1253de.
2023-07-31 10:52:12 -07:00
Andrew Kelley
9f20d01cfb Revert "std.c: exposing timer api"
This reverts commit 54ea0bbcdd.
2023-07-31 10:51:44 -07:00
Andrew Kelley
8e9a33b82c Revert "Merge pull request #15867 from devnexen/haiku_malloc_usable_size"
This reverts commit 3ef91233ca, reversing
changes made to 2839e35d1c.
2023-07-31 10:50:48 -07:00
Andrew Kelley
dad7eea8d9 Revert "std.c: update netbsd/openbsd mman constants"
This reverts commit 64f0059cd3.
2023-07-31 10:50:39 -07:00
Andrew Kelley
643c986838 Revert "std.c: freebsd fix typo for PROC.PROCCTL_MD_MIN constant."
This reverts commit e9dd0a22f0.
2023-07-31 10:50:27 -07:00
Andrew Kelley
004711310a Revert "std.c: fix host_basic_info definition for darwin."
This reverts commit ea1d64dae4.
2023-07-31 10:50:22 -07:00
Andrew Kelley
381704dd0e Revert "std.c: fix few capcisum api calls, following-up on 6ae19fa."
This reverts commit 72dd22f262.
2023-07-31 10:50:16 -07:00
Andrew Kelley
88b4ee172f Revert "std.c: few freebsd's kinfo api fixes."
This reverts commit d07149c56d.
2023-07-31 10:50:09 -07:00
Andrew Kelley
95e2605d30 Revert "std.c: msghdr* struct removing prefixes to match linux."
This reverts commit 8f14431bc8.
2023-07-31 10:49:57 -07:00
Andrew Kelley
66d5f391ea Revert "std.c: fix haiku's find_path signature."
This reverts commit 9e0ac4449a.
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