- 20 Dec, 2017 5 commits
-
-
Kenton Varda authored
Implement KJ Filesystem API on Win32
-
Kenton Varda authored
Now that I know the actual reasoning behind the loop, I think it's not the best answer. Instead, we should retry removing the directory if it reports not-empty, but only a few times before we give up.
-
Kenton Varda authored
Yes, I'm using BTRFS now...
-
Kenton Varda authored
-
Kenton Varda authored
Windows symlinks really aren't meant to be treated like Unix symlinks, and we don't support creating symlinks anyway, so we don't even know if this code works...
-
- 19 Dec, 2017 2 commits
-
-
Kenton Varda authored
Fix multiple problems with connect() on non-glibc-Linux:
-
Kenton Varda authored
1. Correctly set nonblocking flag *before* calling connect(). (On glibc-Linux, we create the socket already in nonblocking mode, so this was never an issue.) 2. FDs could be leaked if connect fails. (This applies to glibc-Linux too, although connect() would have to fail immediately without blocking, which is unusual.)
-
- 14 Dec, 2017 6 commits
-
-
Kenton Varda authored
Add support for Own<void>.
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
It appears that MSVC treats the specialization of this templated constructor as if it were an overload, causing the selection of constructor to be ambiguous. It only does this if the second template parameter (the EnableIf) if present; otherwise the specialization works correctly. As a work-around, I refactored the code to avoid specializing the constructor. Instead, we add a static method that encapsulates the differences, which the constructor calls.
-
Kenton Varda authored
-
- 13 Dec, 2017 1 commit
-
-
Kenton Varda authored
Any Own<T> can be converted to Own<void> (or Own<const void>). The main purpose of this is to give someone a way to invoke an object's disposer without them having to know anything about the type.
-
- 11 Dec, 2017 26 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
Also CopyFile() doesn't preserve sparseness.
-
Kenton Varda authored
So, don't use UTF-8 literals when trying to represent invalid byte sequences. Just use standard string literals.
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
Without ASYNC_LIBS, capnp-test doesn't get linked with Winsock, which is needed. Not sure how this ever worked.
-
Kenton Varda authored
-
Kenton Varda authored
I wrote these while working on Windows support but they apply to Unix too.
-
Kenton Varda authored
-
Kenton Varda authored
I started from a clone of the Unix version of filesystem-disk.c++, and modified from there. The changes are pretty invasive, so I don't think trying to share implementations would have worked well.
-
Kenton Varda authored
Mostly adding / changing comments. Also some tweaks to consider that Windows uses HANDLEs rather than file descriptors.
-
Kenton Varda authored
Just a random thing I noticed.
-
Kenton Varda authored
Windows support will be implemented in a separate file.
-