Andrew Kelley
e84cda0ebf
Merge pull request #16622 from jacobly0/cbe-asm-compat
...
CBE: fix regressions and get new targets passing behavior tests
2023-07-31 15:34:32 -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
833af381f0
Revert "std.os: add linux timer api"
...
This reverts commit b9d2e0e308 .
2023-07-31 10:56:55 -07:00
Jacob Young
228c956377
std: finish cleanup up asm
...
This also required implementing the necessary syntax in the x86_64 backend.
2023-07-31 03:49:21 -04:00
Zachary Raineri
dc98b001f3
std.os.linux | Fix sendmmsg function | Issue #16513
...
Closes #16513
2023-07-25 11:04:10 -07:00
Zachary Raineri
d82b359010
Use builtin inference over @as where possible
2023-07-24 10:23:51 -07:00
kcbanner
891fa3b8b5
debug: fix initialization of the optional fields on StackIterator
...
dwarf: documentation fixups
target: enable unwind tables on macho
2023-07-20 22:58:15 -04:00
kcbanner
41832aa1e6
linux: add getcontext for x86_64
2023-07-20 22:58:14 -04: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
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
r00ster91
2593156068
migration: std.math.{min, min3, max, max3} -> @min & @max
2023-06-16 13:44:09 -07: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
yujiri8
a1bb9e94d4
fix type errors in os.linux ( #15801 )
...
* fix NUMA-related functions in os.linux
* fix os.linux.CPU_ISSET
2023-05-22 13:34:39 +03:00
David CARLIER
b9d2e0e308
std.os: add linux timer api
2023-05-19 03:41:10 +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
Gregory Mullen
aa9ea61216
Add tc{set,get}pgrp to std.os.linux
2023-05-11 19:43:06 +03:00
Linus Groh
94e30a756e
std: fix a bunch of typos
...
The majority of these are in comments, some in doc comments which might
affect the generated documentation, and a few in parameter names -
nothing that should be breaking, however.
2023-04-30 18:16:04 -07:00
朕与将军解战袍
363269a2a9
fix incorrect struct definition
2023-04-27 11:10:38 +03:00
Andrew Kelley
a5c910adb6
change semantics of @memcpy and @memset
...
Now they use slices or array pointers with any element type instead of
requiring byte pointers.
This is a breaking enhancement to the language.
The safety check for overlapping pointers will be implemented in a
future commit.
closes #14040
2023-04-25 11:23:40 -07:00
Hubert Jasudowicz
253eb72c14
std.os.linux: Add new CAP constants
2023-04-23 20:58:30 +03:00
jim price
3487514626
std.os: add mincore syscall
...
The mincore syscall is available on some UNIX like operating systems
and allows a user to determine if a page is resident in memory.
2023-04-06 00:57:23 -04:00
Andrew Kelley
41a5ad28c9
std: child process API supports rusage data
2023-03-15 10:48:13 -07:00
Andrew Kelley
4f4ddf5ef2
hot code swapping PoC working
...
- improve fn prototypes of process_vm_writev
- make the memory writable in the ELF file
- force the linker to always append the function
- write updates with process_vm_writev
2023-03-15 10:48:12 -07:00
Andrew Kelley
ee693bfe04
std.os.linux: add ptrace
2023-03-15 10:48:12 -07:00
Andrew Kelley
bb5006d728
std: add fchmodat
...
Also add `std.fs.has_executable_bit` for doing conditional compilation.
This adds the linux syscalls for chmod and fchmodat, as well as the
extern libc function declarations.
Only `fchmodat` is added to `std.os`, and it is not yet added to std.fs.
2023-03-03 02:37:45 -05:00
Andrew Kelley
aeaef8c0ff
update std lib and compiler sources to new for loop syntax
2023-02-18 19:17:21 -07:00
Suirad
7f24993772
Add support for mips64/mips64el
2023-02-04 15:19:53 -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
Veikka Tuominen
622311fb9a
update uses of overflow arithmetic builtins
2022-12-27 15:13:14 +02:00
Veikka Tuominen
08b2d491bc
update usages of @call
2022-12-13 13:14:20 +02: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
Björn Linse
a09a5ad574
stdlib: make linux.PERF.TYPE non-exhaustive
...
perf_event_attr.type needs to take a runtime defined value to enable
dynamic PMU:s, such as kprobe and uprobe. This value can exceed
predefined values defined in the linux headers.
reference: perf_event_open(2) man page
2022-11-16 19:02:24 -05:00
Hayden Pope
ceb9fedb47
std.os.linux: Add setitimer and getitimer syscalls
2022-11-15 02:38:28 -05: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
r00ster91
b83e4d9656
std.os.linux.T: translate more MIPS values
...
This fixes the broken terminal for me and thus fixes #13198 .
2022-11-06 16:33:50 +02: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
daurnimator
f2401a0756
Add sockaddr_vm for vSocckets on Linux
2022-10-27 20:51:35 -04:00
daurnimator
c0c8ee5ae9
Add reboot syscall
...
Only linux for now
2022-10-27 20:39:35 -04:00
Yujiri
8aa21ade8c
add tcdrain on linux
2022-10-17 18:01:05 -04:00
Jacob Young
f5f28e0d2c
io_uring: ignore SOCK_NONEMPTY for reproducible tests
...
Fixes #12670
2022-10-13 14:58:06 +02:00
Eric Milliken
0b7b4b7e97
std: add linux support for packet sockaddr
2022-10-11 18:46:24 +03:00
ominitay
295451dfe5
std: Replace use of stage1 function pointers
2022-09-29 21:45:30 +03:00
Andrew Kelley
62ecc154d9
Merge pull request #12904 from Vexu/ptrcast
...
stage2: pointer casting fixes and improvements
2022-09-20 22:02:36 -04:00
Meghan
521c753fda
std: fix os.linux.S function signatures to use mode_t
2022-09-20 17:54:32 -04:00
Veikka Tuominen
541b3e3a31
Sema: check pointer qualifiers before implicit cast
...
Closes #12881
2022-09-20 00:50:13 +03:00
Veikka Tuominen
62ff8871ed
stage2+stage1: remove type parameter from bit builtins
...
Closes #12529
Closes #12511
Closes #6835
2022-08-22 11:19:20 +03:00