LeRoyce Pearson
7ab77685a8
Make lock tests more flexible
2020-03-14 14:57:56 -06:00
LeRoyce Pearson
873c7a59e9
Add multiple read lock test
2020-03-14 13:29:49 -06:00
LeRoyce Pearson
72eb9933fd
Call std.os.waitpid instead of std.os.linux.waitpid
2020-03-14 11:34:38 -06:00
LeRoyce Pearson
43ccc2d81e
Add note about mandatory locks on linux
2020-03-14 10:12:46 -06:00
LeRoyce Pearson
43c4faba55
Add test to check that locking works
2020-03-14 10:12:46 -06:00
LeRoyce Pearson
a636b59cb5
Add lock option to CreateFlags
2020-03-14 10:12:46 -06:00
LeRoyce Pearson
4eff48b12e
Add flock command paramter to os.fcntlFlock
...
Also, replace `os.fcntlFlockBlocking` with `os.fcntlFlock`
2020-03-14 10:12:46 -06:00
LeRoyce Pearson
f66a607607
Define Flock for all posix systems
2020-03-14 10:12:46 -06:00
LeRoyce Pearson
e1868029e9
Implement blocking file locking API for windows
2020-03-14 10:12:46 -06:00
LeRoyce Pearson
9af0590a28
Add fnctlFlock system call, use it to lock files
2020-03-14 10:12:46 -06:00
LeRoyce Pearson
3110060351
Add lock to fs.File.OpenFlags
2020-03-14 10:12:46 -06:00
Noam Preil
eb4d313dbc
Fix compilation with --no-emit-bin
2020-03-13 15:40:29 -04:00
Andrew Kelley
3eff77bfb5
Merge branch 'fengb-format-stream'
2020-03-13 12:07:06 -04:00
Andrew Kelley
4905102901
fix all the TODOs from the pull request
...
* `std.Buffer.print` is removed; use `buffer.outStream().print`
* `std.fmt.count` returns a `u64`
* `std.Fifo.print` is removed; use `fifo.outStream().print`
* `std.fmt.bufPrint` error is renamed from `BufferTooSmall`
to `NoSpaceLeft` to match `std.os.write`.
* `std.io.FixedBufferStream.getWritten` returns mutable buffer
if the buffer is mutable.
2020-03-13 12:02:58 -04:00
Andrew Kelley
2dd920ee39
Merge branch 'format-stream' of https://github.com/fengb/zig into fengb-format-stream
2020-03-13 11:31:11 -04:00
Andrew Kelley
a9297f2267
Merge pull request #4716 from LemonBoy/sys-misc
...
Introduce std.fs.file.setEndPos
2020-03-13 11:18:08 -04:00
LemonBoy
de53537f10
Add NtDll-based ftruncate implementation
2020-03-13 08:45:37 +01:00
Andrew Kelley
5dd3c8eed6
Merge pull request #4727 from nrdmn/uefi3
...
std/os/uefi: various improvements and some refactoring
2020-03-12 20:58:29 -04:00
Andrew Kelley
2f06971a7e
Merge pull request #4725 from ziglang/update-musl
...
Upgrade musl libc to 1.2.0
2020-03-12 19:56:38 -04:00
Andrew Kelley
f51bec321b
Merge pull request #4707 from Vexu/small-atomics
...
Support atomic operations with bools and non power of two integers
2020-03-12 18:55:16 -04:00
Nick Erdmann
f44530302e
std/os/uefi: file protocol improvements
2020-03-12 23:23:21 +01:00
Nick Erdmann
92beb13914
std/os/uefi: status reform
2020-03-12 23:23:12 +01:00
Nick Erdmann
6c368b9e73
std/os/uefi: device path protocol improvements
2020-03-12 23:23:02 +01:00
Nick Erdmann
9f475dae14
std/os/uefi: Add shell parameters protocol
2020-03-12 23:22:49 +01:00
Nick Erdmann
52eb4129de
std/os/uefi: loaded image protocol improvements
2020-03-12 23:22:08 +01:00
Nick Erdmann
e617e8a798
std/os/uefi: require guid output function be comptime
2020-03-12 23:22:08 +01:00
Nick Erdmann
7c12f93734
std/os/uefi: boot services and runtime services improvements
...
- Several function signatures added
- Add getNextVariableName sentinel termination annotation
2020-03-12 23:22:08 +01:00
Andrew Kelley
6e25ac2a2b
stage1: update musl libc building code for v1.2.0
2020-03-12 17:45:55 -04:00
Andrew Kelley
edd6643a26
update musl src files to v1.2.0
2020-03-12 17:17:57 -04:00
Vexu
71d776c3be
add note to disabled tests, improve comptime cmpxchg
2020-03-12 22:42:01 +02:00
Andrew Kelley
205c413962
update musl headers to v1.2.0
2020-03-12 16:26:14 -04:00
Vexu
6dde769279
Simplify stores, use sext for signed ints
2020-03-12 22:02:58 +02:00
LemonBoy
bd0b51477a
Address review comments
2020-03-12 19:40:42 +01:00
Andrew Kelley
aa49f972d6
Merge pull request #4720 from Vexu/translate-c
...
Translate-c treat C bools as ints
2020-03-12 14:00:07 -04:00
daurnimator
8a22c50c08
Remove unused static_crt_dir field from libc config
2020-03-12 12:27:45 -04:00
Benjamin Feng
4aae55b4cc
Replace fmt with new fmtstream
2020-03-12 10:41:09 -05:00
Benjamin Feng
ed7f30e1cd
Migrate last vestiges of fmt
2020-03-12 10:41:09 -05:00
Benjamin Feng
786216ca5a
Slap in workaround for Fifo
2020-03-12 10:41:09 -05:00
Benjamin Feng
6a53fe7c93
Handle potential downcast when translating stream size
2020-03-12 10:41:09 -05:00
Benjamin Feng
0059d9ee3e
Convert fmt.bufPrint / fmt.allocPrint
2020-03-12 10:41:09 -05:00
Benjamin Feng
4023ed56d4
Convert translate-c to fmtstream
2020-03-12 10:41:09 -05:00
Benjamin Feng
8dd078b99a
Convert Buffer to use fmtstream
2020-03-12 10:41:09 -05:00
Benjamin Feng
2429fdd73b
Convert JSON to fmtstream
2020-03-12 10:41:09 -05:00
Benjamin Feng
0fbccec000
Convert builtin to fmtstream
2020-03-12 10:41:04 -05:00
Andrew Kelley
214af69814
ci: remove workaround for FreeBSD upstream bug
2020-03-12 11:40:44 -04:00
Vexu
ce19638cd4
disable test on mipsel
2020-03-12 17:31:10 +02:00
Benjamin Feng
c11d1055b8
Integrated outstreams with new formatter
2020-03-12 10:26:28 -05:00
Benjamin Feng
7364e965f4
Force error coercion of custom formatters
2020-03-12 10:26:28 -05:00
Benjamin Feng
d2e4aafd64
Fixup allocPrint
2020-03-12 10:26:27 -05:00
Vexu
02c491e42a
translate-c fix order of tokens
2020-03-12 17:14:01 +02:00