daurnimator
ab46713fa6
std: update for linux 5.5 release
2020-01-31 10:18:17 -05:00
Andrew Kelley
65b1a4953f
Merge pull request #4324 from fengb/testing-allocator
...
Remove debug.global_allocator in favor of testing.allocator
2020-01-30 10:01:40 -05:00
Andrew Kelley
0303e7bd8e
Merge pull request #4319 from Rocknest/windows-traces
...
Bring windows segfault handler on par with linux
2020-01-30 09:26:39 -05:00
Rocknest
94f29ae117
Remove intCast's
2020-01-30 08:53:38 +02:00
Benjamin Feng
b7a236d68e
Convert a bunch of page_allocator to testing.allocator
2020-01-29 22:22:01 -06:00
Benjamin Feng
b077f3ab7d
Promoted "leak_count_allocator" to the main testing.allocator
2020-01-29 22:22:00 -06:00
Rocknest
b1884b3a62
Fix aarch64
2020-01-30 01:17:34 +02:00
Rocknest
4a4d6f2be9
Reorganize definitions
2020-01-29 23:15:17 +02:00
Benjamin Feng
aa9caf5064
Create leak_count_allocator
2020-01-29 14:37:01 -06:00
Benjamin Feng
4d134a01f5
Move debug.global_allocator to testing.allocator
2020-01-29 12:21:29 -06:00
LemonBoy
1ba4554855
Correct dl_iterate_phdr address
...
The base should be zero so that p_vaddr + dlpi_addr = p_vaddr
2020-01-29 12:05:36 -05:00
Andrew Kelley
a867b43366
progress towards merging
...
see BRANCH_TODO file
2020-01-19 20:54:04 -05:00
LemonBoy
fa52c9e36e
Small cleanups
2020-01-19 00:11:45 +01:00
LemonBoy
c5cfc9bf68
Move definition of __aeabi_read_tp
2020-01-15 17:50:51 +01:00
LemonBoy
c85afff5a8
Correct l_name field type
2020-01-14 23:11:10 +01:00
LemonBoy
c1f3766f1c
Correct dlpi_name field type
2020-01-14 21:15:33 +01:00
Jonathan Marler
0827e298ed
Add WaitForSingleObject function to std.os.windows
2020-01-11 15:49:48 -05:00
Ryan Liptak
834218d789
Fix remaining variadic formatted prints
...
Used a series of regex searches to try to find as many instances of the old pattern as I could and update them.
2020-01-09 13:36:44 -05:00
Andrew Kelley
7b73c7fe12
Merge branch 'std-utf16-sentinel-terminated' of https://github.com/daurnimator/zig
2020-01-07 16:13:34 -05:00
Andrew Kelley
633b6bf920
Merge branch 'LemonBoy-cc-work'
2020-01-06 18:53:17 -05:00
Andrew Kelley
53913acaf7
zig fmt and update extern fn
to callconv(.C)
2020-01-06 15:34:50 -05:00
Andrew Kelley
0a9daeb37e
Merge branch 'cc-work' of https://github.com/LemonBoy/zig into LemonBoy-cc-work
2020-01-06 14:07:56 -05:00
Colin Svingen
4e6ad8efd9
Removes proc_raise from WASI implementation
2020-01-06 14:04:55 -05:00
Andrew Kelley
fee9318b17
std.os.getrusage: add C extern fn and reserved field
...
* add reserved field to match musl struct definition so that
it will work with musl libc.
* add libc getrusage so that it will work with libc
what's not done in this branch is:
* test coverage. See #1629 , which should also aim to provide
general test coverage for the std lib.
* rusage struct bits for non-linux operating systems
2020-01-05 16:57:14 -05:00
data-man
2f6b045fb1
Add std.os.getrusage
2020-01-05 16:52:36 -05:00
LemonBoy
563d9ebfe5
Implement the callconv() annotation
2020-01-02 18:53:16 +01:00
Andrew Kelley
0c8ec369f0
std.os.memfd_create: add error.SystemOutdated
2019-12-31 17:57:20 -05:00
Andrew Kelley
8186211404
improvements to memfd_create
...
* move test from std/io/test.zig to std/os/test.zig
* do glibc version check, and make direct system call if
glibc is too old
* disable test when not linking libc, to avoid not working
with outdated qemu version on the CI server. see #4019
2019-12-31 16:34:14 -05:00
Luna
f0cbf63e1a
os: use system for memfd_create
...
- os: update flags type for memfd_create
2019-12-31 15:58:03 -05:00
Luna
997812e8fb
os: add memfd_create
...
currently only linux is supported
2019-12-31 15:58:03 -05:00
Andrew Kelley
6b960331ee
Merge pull request #3968 from daurnimator/sigprocmask
...
Clean up linux sigprocmask, raise
2019-12-29 18:03:09 -05:00
daurnimator
2662e50d27
std: sentinel terminated pointers for utf16 apis
2019-12-29 10:35:05 +11:00
daurnimator
95c83388e4
std: use pid_t where appropriate
2019-12-22 20:20:58 +11:00
daurnimator
6de4bd850c
std: add tkill and tgkill for linux
2019-12-22 20:20:58 +11:00
daurnimator
c31afc3736
std: remove high level linux sigprocmask wrappers
2019-12-22 20:20:58 +11:00
daurnimator
9577ff1c90
std: use simpler sigset_t definition
2019-12-22 20:20:53 +11:00
Jethro Nederhof
ba1d213f48
freebsd: add missing OS and libc bits
2019-12-22 02:27:23 -05:00
daurnimator
96c9c38b35
std: sigprocmask set is optional
2019-12-22 12:03:03 +11:00
Raul Leal
62c817420d
[ #3844 + #3767 ] update std.c and std.os.linux to use null-terminated pointer types ( #3900 )
...
* #3844 update std.c functions to use null-terminated pointer types
* check linux functions
* fix callsites
* fix io test
* Add allocPrintCstr function to remove other cast
2019-12-17 15:43:49 -05:00
LemonBoy
19ddbd9e9e
Make sure the address is aligned for intToPtr ops
...
Closes #773
2019-12-15 14:41:05 -05:00
Heppokoyuki
5ada11449a
fix con_in difinition and add EFI_SIMPLE_TEXT_INPUT_PROTOCOL difinition
2019-12-10 13:25:28 -05:00
emekoi
29fd727b79
fixed windows dynamic library loading and added loading for darwin
2019-12-10 11:41:54 -05:00
Robin Voetter
4b4fbe3887
Replace @typeOf with @TypeOf in all zig source
...
This change was mostly made with `zig fmt` and this also modified some whitespace. Note that in some files, `zig fmt` produced incorrect code, so the change was made manually.
2019-12-10 11:09:41 -05:00
Andrew Kelley
03396b3caa
update docs to new fmt API
2019-12-08 23:46:50 -05:00
Andrew Kelley
8b2622cdd5
std.fmt.format: tuple parameter instead of var args
2019-12-08 22:53:51 -05:00
Andrew Kelley
525b1e8fb4
Merge pull request #3856 from ziglang/builtin-call
...
introduce `@call` and remove other builtin calls
2019-12-06 15:49:47 -05:00
Andrew Kelley
343987cd05
remove @inlineCall
from zig
2019-12-06 14:12:01 -05:00
Vexu
bfb15f1c9f
fix casts
2019-12-05 15:47:06 -05:00
Andrew Kelley
b7be57766b
Merge pull request #3715 from daurnimator/towards-afd
...
Misc windows additions+fixes
2019-12-02 16:12:55 -05:00
Andrew Kelley
ad214c7aa0
bring your own OS layer in the std lib
...
closes #3784
2019-12-02 15:02:17 -05:00