Kai Jellinghaus
7ee7c90274
Fix regressing #17290 from #17734
2023-11-01 18:30:56 +02:00
Andrew Kelley
3fc6fc6812
std.builtin.Endian: make the tags lower case
...
Let's take this breaking change opportunity to fix the style of this
enum.
2023-10-31 21:37:35 -04:00
joadnacer
0005e7e70b
std.linux: Update io_uring structs and consts for kernel 6.3.8
2023-10-27 00:31:52 +01:00
Prokop Randacek
fee09009a8
gettimeofday takes nullable pointers
2023-10-20 00:15:34 -04:00
Ratakor
8ce33795e9
Add pause() to linux.zig
2023-10-06 11:49:31 -07:00
Ratakor
cef90eab57
Add filled_sigset to os.linux
...
filled_sigset is equivalent to sigfillset() as empty_sigset is
equivalent to sigemptyset().
2023-10-06 11:49:31 -07:00
Jacob Young
2a5335d7b6
x86_64: implement C abi for 128-bit integers
2023-10-04 14:42:35 -04:00
nikneym
9f0d2f9417
linux: add fanotify API
2023-10-04 13:48:22 +03:00
Kai Jellinghaus
11489bb04f
Update IORING_OP to reflect upstream ( #17388 )
...
Reference [upstream io_uring.h](cbf3a2cb15/include/uapi/linux/io_uring.h (L234) )
2023-10-04 09:18:14 +00:00
Stephen Gregoratto
bc0bf4e97a
Linux: Add cachestat wrapper.
...
Can be tested using this program I whipped up:
https://gist.github.com/The-King-of-Toasters/aee448f5975c50f735fd1946794574f7
2023-09-28 18:58:05 +10:00
Kai Jellinghaus
d1e39b6914
Add new fields to io_sqring_offsets & io_cqring_offsets
...
`user_addr`s were introduced in `03d89a2` ([github link](03d89a2de2 ) which was shipped in v6.5
`flags` was introduced even earlier
2023-09-26 18:16:36 -07:00
kcbanner
2e2d6d2c3d
linux: fixup for platforms that don't support extern functions yet
2023-08-27 19:50:57 -04:00
kcbanner
fb0cef8522
linux: only export getauxval if not linking libc
2023-08-27 16:52:43 -04:00
kcbanner
fba81cd606
linux: instead of export elf_aux_maybe, export getauxval itself
2023-08-27 11:12:31 -04:00
kcbanner
731c6d3fbb
linux: export elf_aux_maybe so that libraries can call getauxval
2023-08-26 17:55:12 -04:00
mllken
9676a43a5d
linux: add setsid
2023-08-09 11:33:06 -07:00
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