aboutsummaryrefslogtreecommitdiff
path: root/std
AgeCommit message (Collapse)Author
2019-01-04freebsd: add clock const definitionsMarcio Giaxa
2018-12-29Merge pull request #1859 from mgxm/fbsd2Andrew Kelley
Progress towards tier 1 support for FreeBSD x86_64
2018-12-26fixupsAndrew Kelley
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-24freebsd: implement std.os.time.sleepMarcio Giaxa
2018-12-23msvc subsystem option handling; added uefi os typenebulaeonline
2018-12-23freebsd: remove syscall and use libcMarcio Giaxa
Use libc interface for: - getdents - kill - openat - setgid - setuid
2018-12-23Merge branch 'master' into fbsd2Marcio Giaxa
2018-12-21I observed open() return EBUSY on linuxAndrew Kelley
when trying to open for writing a tty fd that is already opened with screen
2018-12-21freebsd: fix Stat mode typeMarcio Giaxa
2018-12-20freebsd: add realpath to freebsd/index.zigMarcio Giaxa
2018-12-20freebsd: use realpath() to resolve symbolic linksMarcio Giaxa
2018-12-20Add preadv/pwritev on FreeBSDGreg V
2018-12-20Fix stat/timespec definitions for FreeBSDGreg V
2018-12-20Removed allocator from Linux version DynLib. Added dynamic_library.zig to ↵tgschultz
std test list.
2018-12-20tests: re: 79db394;kristopher tate
ref: ziglang/zig#1832
2018-12-19std.io: call the idiomatic std.mem.readInt functionsAndrew Kelley
I originally called the Slice variants to work around comptime code not supporting `@ptrCast`, but I fixed that in 757d0665 so now the workaround is no longer needed.
2018-12-19freebsd: initial stack traceMarcio Giaxa
Stack trace is partially working, with only a few symbols missing. Uses the same functions that we use in Linux to get the necessary debug info.
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: link against libcMarcio Giaxa
Since the stable kernel ABI is through libc #1759
2018-12-19freebsd: add accessMarcio Giaxa
2018-12-19freebsd: add getdirentriesMarcio Giaxa
2018-12-19freebsd: remove syscall filesMarcio Giaxa
2018-12-19Added formatting of function pointers (#1843)Jimmi Holst Christensen
2018-12-19formatType can now format comptime_intJimmi Holst Christensen
2018-12-17fix comptime pointer reinterpretation array index offsetAndrew Kelley
closes #1835
2018-12-16implement comptime pointer castAndrew Kelley
closes #955 closes #1835
2018-12-16mem foreign functions call the native onesJosh Wolfe
this reduces the amount of implementation to change for #1835
2018-12-13fixupsAndrew Kelley
2018-12-13Merge branch 'windows-wide-imports' of https://github.com/suirad/zig into ↵Andrew Kelley
suirad-windows-wide-imports
2018-12-13add mem.readVarInt, fix InStream.readVarInt, fix stack tracesAndrew Kelley
fixes a regression from b883bc8
2018-12-13fix mistakes introduced in b883bc8Andrew Kelley
2018-12-13freebsd: fix issues with syscallsAndrew Kelley
2018-12-12freebsd: fix os_self_exe_path function and update std libAndrew Kelley
2018-12-12breaking API changes to all readInt/writeInt functions & moreAndrew Kelley
* add `@bswap` builtin function. See #767 * comptime evaluation facilities are improved to be able to handle a `@ptrCast` with a backing array. * `@truncate` allows "truncating" a u0 value to any integer type, and the result is always comptime known to be `0`. * when specifying pointer alignment in a type expression, the alignment value of pointers which do not have addresses at runtime is ignored, and always has the default/ABI alignment * threw in a fix to freebsd/x86_64.zig to update syntax from language changes * some improvements are pending #863 closes #638 closes #1733 std lib API changes * io.InStream().readIntNe renamed to readIntNative * io.InStream().readIntLe renamed to readIntLittle * io.InStream().readIntBe renamed to readIntBig * introduced io.InStream().readIntForeign * io.InStream().readInt has parameter order changed * io.InStream().readVarInt has parameter order changed * io.InStream().writeIntNe renamed to writeIntNative * introduced io.InStream().writeIntForeign * io.InStream().writeIntLe renamed to writeIntLittle * io.InStream().writeIntBe renamed to writeIntBig * io.InStream().writeInt has parameter order changed * mem.readInt has different parameters and semantics * introduced mem.readIntNative * introduced mem.readIntForeign * mem.readIntBE renamed to mem.readIntBig and different API * mem.readIntLE renamed to mem.readIntLittle and different API * introduced mem.readIntSliceNative * introduced mem.readIntSliceForeign * introduced mem.readIntSliceLittle * introduced mem.readIntSliceBig * introduced mem.readIntSlice * mem.writeInt has different parameters and semantics * introduced mem.writeIntNative * introduced mem.writeIntForeign * mem.writeIntBE renamed to mem.readIntBig and different semantics * mem.writeIntLE renamed to mem.readIntLittle and different semantics * introduced mem.writeIntSliceForeign * introduced mem.writeIntSliceNative * introduced mem.writeIntSliceBig * introduced mem.writeIntSliceLittle * introduced mem.writeIntSlice * removed mem.endianSwapIfLe * removed mem.endianSwapIfBe * removed mem.endianSwapIf * added mem.littleToNative * added mem.bigToNative * added mem.toNative * added mem.nativeTo * added mem.nativeToLittle * added mem.nativeToBig
2018-12-12Add add compiler_rt routines for float to signed integer conversionWink Saville
And add std.math.f128_* constants. The routines are: __fixdfdi, __fixdfsi, __fixdfti, __fixsfdi, __fixsfsi, __fixsfti, __fixtfdi, __fixtfsi, __fixtfti. These all call fixint which is a generic zig function that does the conversion: pub fn fixint(comptime fp_t: type, comptime fixint_t: type, a: fp_t) fixint_t There are also a set tests: __fixdfdi_test, __fixdfsi_test, __fixdfti_test, __fixsfdi_test, __fixsfsi_test, __fixsfti_test, __fixtfdi_test, __fixtfsi_test, __fixtfti_test.
2018-12-09Minor doc-comment fix.tgschultz
2018-12-09Minor change to custom (de)serializer to allow them to be defined outside of ↵tgschultz
the struct and aliased inside it. This will enable alternate generic serializers (i.e. one that follows pointers) on a struct-by-struct basis.
2018-12-05Allow packages in TestStepJimmi Holst Christensen
2018-12-02std.debug: fix some issues with freestanding debug infoAndrew Kelley
2018-12-02expose std.debug.DwarfInfo and delete unused functionAndrew Kelley
2018-12-02std.debug.printSourceAtAddressDwarfAndrew Kelley
which works in freestanding mode
2018-12-02std.debug.StackIteratorAndrew Kelley
2018-12-02introduce std.io.SeekableStreamAndrew Kelley
Relevant #764 dwarf debug info is modified to use this instead of std.os.File directly to make it easier for bare metal projects to take advantage of debug info parsing
2018-12-01make std.unicode.Utf8Iterator publicAndrew Kelley
2018-12-01zig build: addStaticExecutableAndrew Kelley
2018-11-30Added explicit test for #1810 issue to io_test.zig.tgschultz
2018-11-30Fixed readBits to cast errors to the correct errorset. See #1810 for why ↵tgschultz
this wasn't caught earlier.