aboutsummaryrefslogtreecommitdiff
path: root/std/os/freebsd/index.zig
AgeCommit message (Collapse)Author
2019-03-02rename std lib files to new conventionAndrew Kelley
2019-02-17freebsd: fix pointer cast in mmapMaya Rashish
2019-01-05freebsd: fix wrong call to clock_getres (#1871)Marcio
Reported-by: daurnimator
2019-01-04freebsd: add sockaddr structsMarcio Giaxa
2019-01-04freebsd: implement clock related functionsMarcio Giaxa
- clock_gettime - clock_getres
2019-01-04freebsd: add clock const definitionsMarcio Giaxa
2018-12-24freebsd: fix flags for opening filesMarcio Giaxa
Prior to this fix, the compare-outputs test suite was showing a strange behavior, the tests always stopped between tests 6-8 and had a stack track similar to each other. ``` Test 8/68 compare-output multiple files with private function (ReleaseSmall)...OK /usr/home/mgxm/dev/zig/zig-cache/source.zig:7:2: error: invalid token: '&' }&(getStdOut() catch unreachable).outStream().stream; ^ The following command exited with error code 1: ``` With the wrong O_* flags, the source code was being written in append mode which resulted in an invalid file ```zig use @import("foo.zig"); use @import("bar.zig"); pub fn main() void { foo_function(); bar_function(); }&(getStdOut() catch unreachable).outStream().stream; stdout.print("OK 2\n") catch unreachable; } fn privateFunction() void { printText(); } ```
2018-12-23freebsd: remove syscall and use libcMarcio Giaxa
Use libc interface for: - getdents - kill - openat - setgid - setuid
2018-12-20freebsd: add realpath to freebsd/index.zigMarcio Giaxa
2018-12-20Add preadv/pwritev on FreeBSDGreg V
2018-12-19freebsd: use sysctl to get the current executable pathMarcio Giaxa
FreeBSD doesn't mount procfs as default on the base system, so we can't depend on it to get the current path, In this case, we use sysctl(3) to retrieves the system information and get the same information. - CTL_KERN: High kernel limits - KERN_PROC: Return selected information about specific running processes. - KERN_PROC_PATHNAME: The path of the process - Process ID: a process ID of -1 implies the current process.
2018-12-19freebsd: remove getrandom dependency from libcMarcio Giaxa
The system call getrandom(2) just landed on FreeBSD 12, so if we want to support some earlier version or at least FreeBSD 11, we can't depend on the system call.
2018-12-19freebsd: use libc interface instead system callsMarcio Giaxa
Remove all syscalls references * dup2() * chdir() * execve() * fork() * getcwd() * isatty() * readlink() * mkdir() * mmap() * munmap() * read() * rmdir() * symlink() * pread() * write() * pwrite() * rename() * open() * close() * lseek() * exit() * unlink() * waitpid() * nanosleep() * setreuid() * setregid() * raise() * fstat() * pipe() * added pipe2() extern c fn
2018-12-19freebsd: add accessMarcio Giaxa
2018-12-19freebsd: add getdirentriesMarcio Giaxa
2018-12-19freebsd: remove syscall filesMarcio Giaxa
2018-12-13freebsd: fix issues with syscallsAndrew Kelley
2018-12-12freebsd: fix os_self_exe_path function and update std libAndrew Kelley
2018-11-19zig fmtAndrew Kelley
2018-10-20Support more of std on FreeBSDGreg V
2018-10-20Various fcntl flags are also machine-independent on FreeBSDGreg V
2018-10-20System call numbers on FreeBSD are machine-independentGreg V
But e.g. sbrk is only removed in new architectures (aarch64, riscv), so keep it in x86_64
2018-10-20Fix os/freebsd filesGreg V