Jakub Konka
e60939bfaa
Merge pull request #6397 from suirad/fix-5537
...
Fix for Windows: std.os.windows.DeleteFile()
2020-09-27 21:59:29 +02:00
Andrew Kelley
8794ce6f79
Merge pull request #6293 from LakeByTheWoods/fmt_fixes
...
zig fmt fixes
2020-09-27 05:49:38 -04:00
Ian Simonson
eab51b7785
Make LinearFifo not crash when discarding from empty buffer
...
Previously if a LinearFifo was empty and discard was called
an unsigned overflow would occur. However it is safe to perform
this overflow as a bitwise & operation with 0xFFFFFFFFFFFFFF is a noop
2020-09-27 05:46:39 -04:00
Woze Parrrot
ed357f9897
uefi system_table
2020-09-27 03:15:18 -04:00
Suirad
43cd9eb110
Add clarification comment
2020-09-25 18:11:31 -05:00
Suirad
f78652484a
Stdlib fix for os.windows.deleteFile to fail with
...
a proper error when attempting to delete a directory that isnt empty
2020-09-25 18:09:05 -05:00
Andrew Kelley
a502604702
Merge pull request #6412 from kristoff-it/generalize-event-loop
...
Make os.zig not depend on the event loop
2020-09-25 17:26:44 -04:00
Loris Cro
dc01ef7388
Remove noop check
...
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
2020-09-25 23:21:20 +02:00
Alexandros Naskos
288198e51d
Merge pull request #6413 from LemonBoy/fix-5116
...
Make ArenaAllocator try to resize first
2020-09-25 19:47:50 +03:00
Loris Cro
8d01133bd0
update doc comments
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-25 18:42:24 +02:00
LemonBoy
bd9003ed5b
std: ArenaAllocator tries to resize before allocating
...
Closes #5116
2020-09-25 10:58:07 +02:00
Andrew Kelley
f8b3543cab
I think this test is still flakey
...
re-opens #4922
2020-09-24 22:57:03 -07:00
Josh Wolfe
1a8669eada
build.zig: addBuildOptionArtifact
2020-09-25 01:53:38 -04:00
Loris Cro
c196c27af8
recvfrom
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 22:06:41 +02:00
Loris Cro
419aea54cb
sendto
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 22:06:41 +02:00
Loris Cro
7fec5b3def
pwritev
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 22:06:41 +02:00
Loris Cro
7a07c62a07
pwrite
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 22:06:21 +02:00
Loris Cro
18f6629bd8
writev
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 22:06:03 +02:00
Loris Cro
9075f8e5a1
write
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 22:05:41 +02:00
Loris Cro
59ecdaea12
preadv
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 22:04:43 +02:00
Loris Cro
bd9f2369d5
pread
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 22:04:05 +02:00
Loris Cro
bc35435ca6
readv
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 22:03:12 +02:00
Loris Cro
08364ac773
read
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 22:00:55 +02:00
Loris Cro
730428bfd6
connect
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 21:56:27 +02:00
Loris Cro
e85c89630e
accept
...
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24 21:56:27 +02:00
Frank Denis
bd89bd6fdb
Revamp crypto/aes
...
* Reorganize crypto/aes in order to separate parameters, implementations and
modes.
* Add a zero-cost abstraction over the internal representation of a block,
so that blocks can be kept in vector registers in optimized implementations.
* Add architecture-independent aesenc/aesdec/aesenclast/aesdeclast operations,
so that any AES-based primitive can be implemented, including these that don't
use the original key schedule (AES-PRF, AEGIS, MeowHash...)
* Add support for parallelization/wide blocks to take advantage of hardware
implementations.
* Align T-tables to cache lines in the software implementations to slightly
reduce side channels.
* Add an optimized implementation for modern Intel CPUs with AES-NI.
* Add new tests (AES256 key expansion).
* Reimplement the counter mode to work with any block cipher, any endianness
and to take advantage of wide blocks.
* Add benchmarks for AES.
2020-09-24 13:16:00 -04:00
Ogromny
bba4576281
Fix typo in documentation
2020-09-24 13:14:03 -04:00
Frank Denis
c8cd6145ac
Move PBKDF2 to a pwhash category, clarify what that category is
...
Password hashing functions are not general-purpose KDFs, and KDFs
don't have to satisfy the same properties as a PHF.
This will allow fast KDFs such as the HKDF construction to be in a
category of their own, while clarifying what functions are suitable
for using passwords as inputs.
2020-09-24 00:02:31 -04:00
Isaac Freund
72f4cdb2b4
docs: update implementation status for @Type()
2020-09-24 00:01:57 -04:00
Andrew Kelley
0f3111379b
Merge pull request #6399 from FireFox317/async-fix
...
Eventloop: Fix deadlock in linux event loop implementation
2020-09-24 00:01:22 -04:00
Frank Denis
274c55b780
ZIG_WORKAROUND_4799 is not required with LLVM 10.0.1
...
That paragraph used to contradict the following one.
2020-09-23 22:05:43 -04:00
Jakub Konka
0fcee6e11c
Merge pull request #6373 from notCalle/workaround-6087
...
Workaround MacOS build failure due to #6087
2020-09-23 20:59:09 +02:00
Timon Kruiper
bbff6bd675
Eventloop: Enable basic event loop test, fixed by previous commit
...
Closes #4922
2020-09-23 18:38:28 +02:00
Calle Englund
94024a9fae
Update macOS build instructions with workaround
2020-09-23 16:26:35 +02:00
Timon Kruiper
0eed7ec9d5
Eventloop: Fix deadlock in linux event loop implementation
...
A simple empty main with evented-io would not quit, because some
threads were still waiting to be resumed (by the os). The os.write to
the eventfd only wakes up one thread and thus there are multiple writes
needed to wake up all the other threads.
2020-09-23 11:41:31 +02:00
LemonBoy
58ee5f4e61
std: Fix metadata corruption in HeapAllocator
...
HeapAllocator stores the pointer returned by HeapAlloc right after the
data block and, after the recent allocator refactoring, the space for
this pointer was not taken into account in the calculation of the final
block size.
Fixes #5830
2020-09-20 01:21:29 -04:00
LemonBoy
f92d01c8a8
stage1: Fix edge case in casting between optional types
...
Closes #6370
2020-09-18 22:12:22 -04:00
zenith391
4fbf9f7f79
Add "emit_docs" field to LibExeObjStep.
2020-09-19 00:39:43 +03:00
Calle Englund
d08842887f
Workaround MacOS build failure due to #6087
2020-09-18 17:03:50 +02:00
Lachlan Easton
4496a6c9cc
zig fmt: Special case un-indent comma after multiline string in param list
2020-09-18 20:34:00 +10:00
Lachlan Easton
1aacedf6e1
zig fmt: Fix regression in ArrayInitializers
2020-09-18 20:34:00 +10:00
Lachlan Easton
40b6e86a99
zig fmt: fix #6171
2020-09-18 20:34:00 +10:00
Lachlan Easton
c06674e701
zig fmt: Small cleanup
2020-09-18 20:34:00 +10:00
Lachlan Easton
206a8cf670
zig fmt: fix comments and multiline literals in function args
2020-09-18 20:34:00 +10:00
Lachlan Easton
291482a031
zig fmt: Don't consider width of expressions containing multiline string literals when calculating padding for array initializers. fixes #3739
...
Changes some of the special casing for multiline string literals.
2020-09-18 20:34:00 +10:00
Lachlan Easton
e1bd271192
zig fmt: Allow trailing comments to do manual array formatting. close #5948
2020-09-18 20:34:00 +10:00
Lachlan Easton
9f0821e688
zig fmt: Fix erroneously commented out code, add passing test case to close #5722
2020-09-18 20:34:00 +10:00
Lachlan Easton
ea6181aaf6
zig fmt: Add test for nesting if expressions
2020-09-18 20:34:00 +10:00
Ryan Liptak
fbde15fdf4
Fix compile error in os.renameatW
...
Introduced in 5e3fa0e94f947c632aa584b9e13bfa2fe241fae1
Whoops!
2020-09-17 18:49:06 -04:00
Andrew Kelley
f125288c9b
Merge pull request #6336 from Rocknest/pbkdf2
...
Some changes to #6326 (pbkdf2)
2020-09-17 17:31:58 -04:00