0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Andrew Kelley 4a67dd04c9
breaking changes to std.fs, std.os
* improve `std.fs.AtomicFile` to use sendfile()
   - also fix AtomicFile cleanup not destroying tmp files under some
     error conditions
 * improve `std.fs.updateFile` to take advantage of the new `makePath`
   which no longer needs an Allocator.
 * rename std.fs.makeDir to std.fs.makeDirAbsolute
 * rename std.fs.Dir.makeDirC to std.fs.Dir.makeDirZ
 * add std.fs.Dir.makeDirW and provide Windows implementation of
   std.os.mkdirat. std.os.windows.CreateDirectory is now implemented
   by calling ntdll, supports an optional root directory handle,
   and returns an open directory handle. Its error set has a few more
   errors in it.
 * rename std.fs.Dir.changeTo to std.fs.Dir.setAsCwd
 * fix std.fs.File.writevAll and related functions when len 0 iovecs
   supplied.
 * introduce `std.fs.File.writeFileAll`, exposing a convenient
   cross-platform API on top of sendfile().
 * `NoDevice` added to std.os.MakeDirError error set.
 * std.os.fchdir gets a smaller error set.
 * std.os.windows.CloseHandle is implemented with ntdll call rather than
   kernel32.
History 2020-03-03 15:23:27 -05:00
..
atomic solve recursion in std.atomic.Queue.dump 2020-02-08 16:22:53 -05:00
build Update callers of fs.makePath 2020-03-03 13:25:43 -05:00
c fix macosx and freebsd build failures 2020-03-03 02:57:11 -05:00
crypto short std.builtin enum literals in std lib 2020-03-01 13:57:41 -05:00
debug remove uses of @ArgType and @IntType 2020-02-24 23:39:03 +02:00
event breaking: std.os read/write functions + sendfile 2020-03-03 02:25:26 -05:00
fmt update std lib to new Target API 2020-02-28 14:51:54 -05:00
fs breaking changes to std.fs, std.os 2020-03-03 15:23:27 -05:00
hash short std.builtin enum literals in std lib 2020-03-01 13:57:41 -05:00
heap Convert a few more page_allocator 2020-01-30 00:27:44 -06:00
http Switch a bunch of FBA to use testing.allocator 2020-02-12 17:17:56 -06:00
io breaking: std.os read/write functions + sendfile 2020-03-03 02:25:26 -05:00
json std: use testing.allocator in tests 2020-02-14 19:15:09 +11:00
math short std.builtin enum literals in std lib 2020-03-01 13:57:41 -05:00
meta remove usages of @typeId, @memberCount, @memberName and @memberType 2020-02-24 23:09:01 +02:00
net introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
os breaking changes to std.fs, std.os 2020-03-03 15:23:27 -05:00
rand update the codebase to use @as 2019-11-08 15:57:24 -05:00
special short std.builtin enum literals in std lib 2020-03-01 13:57:41 -05:00
target arm baseline CPU is v7a rather than v6m 2020-02-26 12:37:13 -05:00
testing Add explicit error message for too many frees 2020-01-30 01:12:21 -06:00
time mv std/ lib/ 2019-09-25 23:35:41 -04:00
unicode zig fmt and update extern fn to callconv(.C) 2020-01-06 15:34:50 -05:00
valgrind string literals are now null terminated 2019-11-21 20:43:41 -05:00
zig breaking: std.os read/write functions + sendfile 2020-03-03 02:25:26 -05:00
array_list.zig Add an appendValues method to ArrayList to append a value n times. (#4460) 2020-02-19 11:33:35 -05:00
ascii.zig Switch a bunch of FBA to use testing.allocator 2020-02-12 17:17:56 -06:00
atomic.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
base64.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
bloom_filter.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
buf_map.zig Fix BufMap value leak 2020-01-29 22:22:01 -06:00
buf_set.zig Convert a bunch of page_allocator to testing.allocator 2020-01-29 22:22:01 -06:00
buffer.zig clean up std.Buffer.print 2020-02-24 22:34:06 -05:00
build.zig Update callers of fs.makePath 2020-03-03 13:25:43 -05:00
builtin.zig add new functions to std.mem and deprecate others 2020-03-01 13:07:55 -05:00
c.zig std: add os.fstatat 2020-03-03 13:25:43 -05:00
child_process.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
coff.zig fix windows std lib regressions 2019-11-29 21:55:27 -05:00
crypto.zig hashing algorithms: fix logic and index out of bounds 2020-02-24 13:43:54 -05:00
cstr.zig breaking: std.mem.len no longer takes a type argument 2020-03-01 13:21:39 -05:00
debug.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
dwarf.zig debug: Fix end-of-stream condition in DWARF parser 2020-02-26 21:02:54 -05:00
dwarf_bits.zig debug: Split the DWARF stuff in its own file 2020-02-20 19:41:28 +01:00
dynamic_library.zig complete the native target detection based on /usr/bin/env 2020-02-28 14:51:56 -05:00
elf.zig short std.builtin enum literals in std lib 2020-03-01 13:57:41 -05:00
event.zig self-hosted libc detection 2020-02-16 13:25:30 -05:00
fifo.zig remove @bytesToSlice, @sliceToBytes from std lib 2020-02-21 19:46:53 +01:00
fmt.zig breaking: std.mem.len no longer takes a type argument 2020-03-01 13:21:39 -05:00
fs.zig breaking changes to std.fs, std.os 2020-03-03 15:23:27 -05:00
hash.zig merge dumps tool: merging ast nodes 2019-10-11 18:13:24 -04:00
hash_map.zig short std.builtin enum literals in std lib 2020-03-01 13:57:41 -05:00
heap.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
http.zig mv std/ lib/ 2019-09-25 23:35:41 -04:00
io.zig breaking: std.os read/write functions + sendfile 2020-03-03 02:25:26 -05:00
json.zig std: tagged unions are broken on arm64 2020-02-19 23:17:04 +11:00
lazy_init.zig use enum with atomics in std lib 2019-11-12 17:55:54 +02:00
linked_list.zig more std lib async I/O integration 2020-02-06 18:05:50 -05:00
macho.zig delete extra code, more forgiveness 2020-02-22 12:44:21 +01:00
math.zig remove uses of @ArgType and @IntType 2020-02-24 23:39:03 +02:00
mem.zig short std.builtin enum literals in std lib 2020-03-01 13:57:41 -05:00
meta.zig std: format contents of sentinel terminated many pointers 2020-03-01 13:04:29 -05:00
mutex.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
net.zig breaking: std.mem.len no longer takes a type argument 2020-03-01 13:21:39 -05:00
os.zig breaking changes to std.fs, std.os 2020-03-03 15:23:27 -05:00
packed_int_array.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
pdb.zig Replace @typeOf with @TypeOf in all zig source 2019-12-10 11:09:41 -05:00
priority_queue.zig Promoted "leak_count_allocator" to the main testing.allocator 2020-01-29 22:22:00 -06:00
process.zig std.zig.system.NativeTargetInfo.detect: almost no Allocator 2020-02-28 14:51:55 -05:00
progress.zig std.fmt.format: tuple parameter instead of var args 2019-12-08 22:53:51 -05:00
rand.zig remove uses of @ArgType and @IntType 2020-02-24 23:39:03 +02:00
rb.zig rb: fix rb.Node.getLast() that never worked 2020-01-30 12:05:57 -05:00
reset_event.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
segmented_list.zig Convert a bunch of page_allocator to testing.allocator 2020-01-29 22:22:01 -06:00
sort.zig Switch a bunch of FBA to use testing.allocator 2020-02-12 17:17:56 -06:00
spinlock.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
start.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
start_windows_tls.zig un-special-case startup code in the std lib 2019-12-12 18:33:44 -05:00
std.zig progress towards merging 2020-01-19 20:54:04 -05:00
target.zig add CrossTarget.getObjectFormat 2020-02-29 12:27:13 -05:00
testing.zig short std.builtin enum literals in std lib 2020-03-01 13:57:41 -05:00
thread.zig std.Thread.cpuCount on Windows uses the PEB 2020-02-29 22:13:09 -05:00
time.zig introduce operating system version ranges as part of the target 2020-02-28 14:51:53 -05:00
unicode.zig remove @bytesToSlice, @sliceToBytes from std lib 2020-02-21 19:46:53 +01:00
valgrind.zig short std.builtin enum literals in std lib 2020-03-01 13:57:41 -05:00
zig.zig separate std.Target and std.zig.CrossTarget 2020-02-28 14:51:54 -05:00