aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os.zig
AgeCommit message (Collapse)Author
2020-10-28More fixups for Windows targetsLemonBoy
* Use closeSocket on sockets instead of plain old close, the latter doesn't work on them. * Use winsocket2 everywhere, mingw has no BSD sockets.
2020-10-27std: Add basic smoke test for net functionalityLemonBoy
2020-10-22Merge branch 'improve-windows-networking'Andrew Kelley
of https://github.com/BarabasGitHub/zig into BarabasGitHub-improve-windows-networking Conflicts: lib/std/os.zig This commit resolves conflicts with the changes to std.os which removed the EAGAIN error handling interactions with the event loop. The solution to the conflict was to apply EAGAIN => return error.WouldBlock into the improved windows networking branch.
2020-10-18Darwin has arc4random(), tooFrank Denis
2020-10-17BYOS support for system.isatty(fd: fd_t); (#6686)Nathan Bourgeois
2020-10-17Merge branch 'openbsd-minimal' of https://github.com/semarie/zig into ↵Andrew Kelley
semarie-openbsd-minimal
2020-10-17Merge branch 'master' into openbsd-minimalSebastien Marie
2020-10-17Make std.meta.Int accept a signedness parameterJan Prudil
2020-10-16rename WaitpidRet to WaitPidResultAndrew Kelley
2020-10-16std.os.waitpid: also return pid of childstf
closes #6581
2020-10-12Rename .macosx to .macosVignesh Rajagopalan
2020-10-11merge netbsd and openbsd casesSébastien Marie
2020-10-11add minimal openbsd supportSébastien Marie
2020-10-08Merge pull request #6516 from LemonBoy/fastfilecopyAndrew Kelley
std: Make file copy ops use zero-copy mechanisms
2020-10-07New review roundLemonBoy
2020-10-06Address review comments & fix compilation errorsLemonBoy
2020-10-06Move copy_file to fs namespaceLemonBoy
Now it is a private API. Also handle short writes in copy_file_range fallback implementation.
2020-10-04simplify api and add smoke testxackus
2020-10-04implement {get, set}rlimit for linuxxackus
2020-10-03Alternative strategy to avoid calling stat()LemonBoy
This is an optimization as it avoids an extra syscall, but it's also a workaround for fstat being not available on Windows.
2020-10-03std: Make file copy ops use zero-copy mechanismsLemonBoy
Use copy_file_range on Linux (if available), fcopyfile on Darwin, sendfile on *BSDs (and on Linux kernels without copy_file_range).
2020-10-02fix symlink path not being resolved in darwinLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-25update doc commentsLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24recvfromLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24sendtoLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24pwritevLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24pwriteLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24writevLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24writeLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24preadvLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24preadLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24readvLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24readLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24connectLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-24acceptLoris Cro
Signed-off-by: Loris Cro <kappaloris@gmail.com>
2020-09-17Fix compile error in os.renameatWRyan Liptak
Introduced in 5e3fa0e94f947c632aa584b9e13bfa2fe241fae1 Whoops!
2020-09-17Add rename to std.fs APIRyan Liptak
- Moves fs.rename functions to fs.renameAbsolute to match other functions outside of fs.Dir - Adds fs.Dir.rename that takes two paths relative to the given Dir - Adds fs.rename that takes two separate Dir's that the given paths are relative to (for renaming across directories without having to make the second path relative to a single directory) - Fixes FileNotFound error return in std.os.windows.MoveFileExW - Returns error.RenameAcrossMountPoints from renameatW + Matches the RenameAcrossMountPoints error return in renameatWasi/renameatZ
2020-09-13std: Limit the read/write size on DarwinLemonBoy
It turns out that the kernel won't read or write more than 0x7fffffff bytes in a single call, failing with EINVAL when trying to do so. Adjust the limit and curse whoever is responsible for this. Closes #6332
2020-09-11std: add prctl wrapper to std.osIsaac Freund
2020-09-10std: fix errorset of std.os.seteuid/setegidIsaac Freund
2020-09-10implement poll for windows with WSAPoll (only available on vista and higher)Bas van den Berg
2020-09-09Handle some WSA errorsBas van den Berg
2020-09-08change socklen_t to u32 and add appropriate casts when calling WSABas van den Berg
2020-09-08add unreachableBas van den Berg
2020-09-08fix identation with zig-fmtBas van den Berg
2020-09-08Merge branch 'master' into improve-windows-networkingBas
2020-09-05Merge pull request #6246 from Vexu/fieldVeikka Tuominen
Remove deprecated fields on `type`
2020-09-03Merge pull request #6243 from ifreund/uid-gid-cleanupAndrew Kelley
std: clean up usage of uid_t/gid_t, add seteuid/setegid to std.os
2020-09-03Merge pull request #6238 from Aransentin/masterAndrew Kelley
Add the "sync" family of functions
2020-09-03os: return error.SocketNotListening for EINVAL on accept (#6226)Kenta Iwasaki