kprotty
483eb8e057
std.Thread: move linux detach code to inline asm
2021-07-01 17:34:23 -05:00
kprotty
98106b09d5
zig fmt
2021-06-30 21:49:38 -05:00
kprotty
2309c81a78
std.Thread: non-zero child_tid to avoid racy join()
2021-06-30 21:49:00 -05:00
kprotty
2a6ba41020
std.Thread: add CLONE_CHILD_SETTID to fix join()
2021-06-30 21:49:00 -05:00
kprotty
6dd6604638
std.Thread: fix tls 9386 linux typo
2021-06-30 21:49:00 -05:00
kprotty
f0fa129e9b
std.Thread: more cleanup & testing
2021-06-30 21:49:00 -05:00
kprotty
7b323f84ca
std.Thread: more fixes
2021-06-30 21:49:00 -05:00
kprotty
c6fb968a3d
std.Thread: fix posix
2021-06-30 21:49:00 -05:00
kprotty
fd4a607bb2
std.Thread: fix futex test + thread errors
2021-06-30 21:49:00 -05:00
kprotty
18bcb2e990
std.Thread: fix futex thread spawning
2021-06-30 21:49:00 -05:00
kprotty
6a903fc4c0
std.Thread: more typo fixes
2021-06-30 21:49:00 -05:00
kprotty
009c95b8ec
std.Thread: more fixes
2021-06-30 21:49:00 -05:00
kprotty
5f4a40e6aa
std.Thread: typo fixes 2
2021-06-30 21:49:00 -05:00
kprotty
b1f37b4ead
std.Thread: uh more typo fixes
2021-06-30 21:49:00 -05:00
kprotty
d016caaccb
std.Thread: more compile error fixes
2021-06-30 21:49:00 -05:00
kprotty
1ae969e529
std.Thread: even more typo fixes
2021-06-30 21:49:00 -05:00
kprotty
ca1e61b851
std.Thread: fix some typos
2021-06-30 21:49:00 -05:00
kprotty
6ff64895cf
std.Thread: add tests + getCurrentId() returns ints when possible
2021-06-30 21:49:00 -05:00
kprotty
235fcc5ba6
std.Thread: another typo fix
2021-06-30 21:48:59 -05:00
kprotty
3a276be135
std.Thread.getCpuCount(): fix usages
2021-06-30 21:48:59 -05:00
kprotty
0a1def7833
changes to accomodate std.Thread update
2021-06-30 21:48:59 -05:00
kprotty
e16d3d162a
std.Thread: rewrite + extensions
2021-06-30 21:48:59 -05:00
Andrew Kelley
acf2e8fe64
fix start code for WebAssembly
2021-06-30 18:39:04 -07:00
Takeshi Yoneda
bc7761d8e0
Add support for WASI reactor in pure Zig-exe. ( #9178 )
...
* Add command line help for "-mexec-model"
* Define WasmExecModel enum in std.builtin.
* Drop the support for the old crt1.o in favor of crt1-command.o
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
2021-06-30 20:02:48 -04:00
Nameless
908b431abe
std/os/uefi: fix packed struct bitfields
2021-06-30 09:28:08 +03:00
Sreehari Sreedev
b8329351b1
boot_services: allow custom MemoryTypes
2021-06-30 09:26:09 +03:00
Andrew Kelley
e32530b6a3
std.fs.File: update doc comments regarding locking
...
Update to accomodate the differences in Windows, which is now advisory
file locking, and include details about which operating systems have
atomic locking flags.
2021-06-29 14:25:04 -07:00
Andrew Kelley
06129d7e3d
std: implement a cross platform file locking abstraction
...
This modifies the lock semantics from using AccessMode to using
NtLockFile/NtUnlockFile.
This is a breaking change.
2021-06-29 14:25:04 -07:00
Andrew Kelley
488f68069b
implement std.fs.File.setLock for Windows
2021-06-29 14:25:04 -07:00
Andrew Kelley
6ba6b98b72
std add fs.File.setLock
...
Windows implementation is still missing.
2021-06-29 14:25:04 -07:00
Isaac Freund
f398ac3ee4
std/fmt: add fmtDurationSigned
...
When working with durations it often makes sense to use signed integers
and allow negative durations, and there is currently no nice way to
format these in std.fmt. This patch adds a simple wrapper for the
existing fmtDurtion to fit this need.
2021-06-27 12:54:31 +03:00
Emil Lerch
2ac769eab9
allow json scientific notation to coerce to integers as long as they actually resolve to int type
2021-06-26 10:10:36 +03:00
Robin Voetter
dacc5e624e
Export isValidId, remove pub on unexported functions
2021-06-26 09:59:40 +03:00
Andrew Kelley
1534cd2f88
Merge pull request #9148 from marler8997/windowsChildOutput
...
finish ChildProcess collectOutputWindows
2021-06-25 21:42:18 -04:00
Isaac Freund
f9171bf542
std/build: add --sysroot general option
2021-06-25 19:13:43 +02:00
Tom Maenan Read Cutting
177b1b6bf9
Add fat/universal dylib support to zig ld
...
With this change zig ld can link with dynamic libraries
contained within a fat/universal file that had multiple
seperate binaries embedded within it for multi-arch
support (in macOS).
Whilst zig can still only create single-architecture
executables - the ability to link with fat libraries is
useful for cases where they are the easiest (or only)
option to link against.
2021-06-25 08:38:47 +02:00
Jonathan Marler
0134cb0214
nice error for unsupported async sockets on Windows
2021-06-23 12:54:20 +03:00
Evan Haas
0e7897a9a2
translate-c: Remove usage of extern enum
...
Translate enum types as the underlying integer type. Translate enum constants
as top-level integer constants of the correct type (which does not necessarily
match the enum integer type).
If an enum constant's type cannot be translated for some reason, omit it.
See discussion https://github.com/ziglang/zig/issues/2115#issuecomment-827968279
Fixes #9153
2021-06-23 08:44:25 +03:00
Luna
d1f99eabb7
add compile error if root.log is not a function
2021-06-22 16:38:18 +03:00
Andrew Kelley
7bebb24838
fix unused locals from merge conflict
2021-06-21 17:09:22 -07:00
Andrew Kelley
d279a23c93
mips: fix syscall_pipe
...
Previously the fd parameter was ignored and so the result would not get
populated. Now it passes the fd pointer to the inline assembly so that
the results can be observed.
2021-06-21 17:03:04 -07:00
Andrew Kelley
7a595f2e6c
remove unused parameters
2021-06-21 17:03:03 -07:00
Andrew Kelley
3d8aa97165
std.os.linux.bpf: fix incorrect usage of unexpectedErrno
2021-06-21 17:03:03 -07:00
Andrew Kelley
59d6b7bbb9
std.os.linux: fix splitValueBE64
2021-06-21 17:03:03 -07:00
Andrew Kelley
f21a3ed540
std.TrailerFlags: remove superfluous parameter
2021-06-21 17:03:03 -07:00
Andrew Kelley
98b10d94bf
std.crypto.p256: fix neg function compile error
...
There was a typo here and the neg function referenced a non-existent
variable.
2021-06-21 17:03:03 -07:00
Andrew Kelley
2551598013
std: ArrayHashMap remove unused parameter
2021-06-21 17:03:03 -07:00
Jacob G-W
d14272ab68
std: fix code unblocked by previous commit
2021-06-21 17:03:03 -07:00
Jacob G-W
9fffffb07b
fix code broken from previous commit
2021-06-21 17:03:03 -07:00
Jacob G-W
641ecc260f
std, src, doc, test: remove unused variables
2021-06-21 17:03:03 -07:00