xackus
f6d124418f
Fix and document
2019-11-10 22:26:42 +01:00
xackus
6d0cdf7cd7
Unescape JSON strings
2019-11-10 22:05:03 +01:00
Andrew Kelley
d44a69689e
std.ChildProcess.spawn has a consistent error set
...
across targets. Also fix detection of pkg-config not
installed on Windows when using zig build.
2019-11-10 15:40:27 -05:00
Andrew Kelley
891e2149b0
Merge pull request #3635 from lun-4/unify-unix-sockets
...
std.net: add unix socket support to Address and StreamServer
2019-11-10 20:40:19 +00:00
Luna
c8a8da2804
remove builtin.os check in Address.initUnix
2019-11-10 16:44:18 -03:00
Luna
d1eabe81a9
add sockaddr_un to os/bits/windows
2019-11-10 14:38:33 -03:00
Luna
d99ecef943
replace panic to unreachable
...
- remove error.UnsupportedOS from StreamServer.listen
2019-11-10 14:17:39 -03:00
Luna
2d02920a90
use hasDecl instead of switch on builtin.os
2019-11-10 14:04:52 -03:00
dimenus
98e37537d1
minor fix due to recent directory handling API changes
2019-11-10 16:34:31 +00:00
Luna
25423eb453
add errors/panics for unsupported OSes
2019-11-10 10:50:22 -03:00
Luna
e4704f68f8
use at-as
2019-11-09 15:10:39 -03:00
Luna
fc2e8f92b2
Merge remote-tracking branch 'upstream/master' into unify-unix-sockets
2019-11-09 15:07:09 -03:00
Luna
348c0232a5
miscellaneous fixes
...
- make connextUnixSocket use std.net.Address
- fix StreamServer.listen giving wrong protocol for unix sockets
2019-11-09 14:53:48 -03:00
Luna
05ae21b78e
make StreamServer.listen family-agnostic
...
- rename Address.parseUnix to Address.initUnix
2019-11-09 12:51:33 -03:00
Luna
f4d8dc278b
rename TcpServer -> StreamServer
...
- add AF_UNIX support to getOsSockLen
2019-11-09 12:40:56 -03:00
Sahnvour
def5462d05
build: initial support for using vcpkg libraries
2019-11-09 12:37:38 +01:00
Luna
c2325053a8
add Address.parseUnix and Address.format support for AF_UNIX
2019-11-08 21:44:17 -03:00
dimenus
8c8078513e
missed cast in std/target.zig
2019-11-08 19:19:08 -05:00
Luna
9458620e18
replace Address.parse Address.parseIp
2019-11-08 19:59:30 -03:00
Luna
5d05cfcfe6
rename IpAddress to Address, add Address.unix
2019-11-08 19:35:04 -03:00
Andrew Kelley
f7b1e02158
fix type cast in windows child process code
2019-11-08 17:05:20 -05:00
Andrew Kelley
3cf5c2c62b
fix regressed tests and update docs to use "type coercion"
2019-11-08 15:57:25 -05:00
Andrew Kelley
aa0daea541
update more of the std lib to use @as
2019-11-08 15:57:25 -05:00
Andrew Kelley
e0db54e89d
update the codebase to use @as
2019-11-08 15:57:24 -05:00
Andrew Kelley
2723ffc2b2
fixups and zig fmt
2019-11-08 01:52:23 -05:00
Andrew Kelley
fbbcf2f30d
Merge branch 'adaptive_lock' of https://github.com/kprotty/zig into kprotty-adaptive_lock
2019-11-08 01:21:22 -05:00
kprotty
e2189b6e5d
cleanup getEventHandle
2019-11-07 19:37:53 -06:00
kprotty
43900011f7
handle NtCreateKeyedEvent failure by spinning to ensure correctness
2019-11-07 18:56:43 -06:00
kprotty
fe8c1cf804
missing os
declaration
2019-11-07 17:14:08 -06:00
kprotty
bb4abfdc78
Use system
instead of builtin.link_libc
2019-11-07 16:36:33 -06:00
kprotty
12e68cbeb6
pthread_sched_yield -> sched_yield
2019-11-07 16:33:25 -06:00
kprotty
f41e58d015
fix SpinLock.yield for pull/3626
2019-11-07 15:51:20 -06:00
kprotty
b5d84635f2
remove WaitOnAddress backend in std.ThreadParker
2019-11-07 15:46:57 -06:00
kprotty
b535e86cc0
move SpinLock definitions around
2019-11-07 15:32:20 -06:00
Vexu
459a364a33
allow Group to optionally manage function frames' memory
2019-11-07 13:26:49 -05:00
Vexu
3858a526e3
make callMainAsync async
2019-11-07 13:18:47 -05:00
kprotty
92dac89d01
lock the mutex on pthread_cond_signal()
2019-11-07 09:23:02 -06:00
LemonBoy
cf6fb89ced
Add small tokenizer test case for #3468
2019-11-07 02:46:10 -05:00
Andrew Kelley
c7fd414dab
Merge pull request #3618 from nrdmn/uefi
...
UEFI improvements
2019-11-06 23:19:46 -05:00
Nick Erdmann
78b54d9c96
std/os/uefi: protocol handling improvements
2019-11-07 03:06:06 +01:00
Nick Erdmann
cef51eaffb
std/os/uefi: snp, mnp, ip6, and udp6 support
2019-11-07 02:53:53 +01:00
Nick Erdmann
f4767186dd
std/os/uefi: loading images
2019-11-07 02:53:53 +01:00
Andrew Kelley
6ee3cabe5c
allow type coercion from *[0]T to E![]const T
...
This is an unambiguous, safe cast.
2019-11-06 20:44:15 -05:00
kprotty
7045f1e875
skip std.ThreadParker test on single-threaded
2019-11-06 17:23:44 -06:00
shiimizu
7277670843
Add error when too few arguments are provided to std.fmt
2019-11-06 18:22:33 -05:00
Sebastian Keller
f81f36e2ff
std.json.Value: added dumpStream(), utilize WriteStream for dump()
2019-11-06 18:21:52 -05:00
Vexu
4530adbd33
use global event loop in std.event types
2019-11-06 15:17:40 -05:00
Andrew Kelley
913f7d0450
improve the start code for evented I/O
...
When evented I/O is being used, prevent event loop from terminating
at least until main() has returned.
2019-11-06 15:08:29 -05:00
Brendan Hansknecht
c1e8fdf812
add token for parsing pointer dereference
2019-11-06 14:03:21 -05:00
Sebastian Keller
dd4e9fb16b
Fixed a leak in the json parser.
...
parseString() created a copy of the string using the wrong allocator.
Instead of using the ArenaAllocator, it was using the allocator passed
into Parser.init(). This lead to a leak as the copied string was not
freed when the ArenaAllocator was deinited.
2019-11-06 14:00:36 -05:00