# std lib \(breaking\): posixRead can return less than buffer size · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/af229c1fdc89f69273f69627ab5a0304dab11572)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: af229c1fdc89f69273f69627ab5a0304dab11572

Requested commit: af229c1fdc89f69273f69627ab5a0304dab11572

Commit: af229c1fdc89f69273f69627ab5a0304dab11572

Tree: d49bd02b57017ce751c999cd8e6e970e15ad6ee4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std lib (breaking): posixRead can return less than buffer size

closes #1414

std.io.InStream.read now can return less than buffer size
introduce std.io.InStream.readFull for previous behavior

add std.os.File.openWriteNoClobberC
rename std.os.deleteFileWindows to std.os.deleteFileW
remove std.os.deleteFilePosix
add std.os.deleteFileC

std.os.copyFile no longer takes an allocator
std.os.copyFileMode no longer takes an allocator
std.os.AtomicFile no longer takes an allocator

add std.os.renameW
add windows support for std.os.renameC

add a test for std.os.AtomicFile

```

## Parents

- [d1ec8377d1fcc9874c40e6603f64087f0b310677](https://git.cafe/gitcafe/zig/commit/d1ec8377d1fcc9874c40e6603f64087f0b310677?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/af229c1fdc89f69273f69627ab5a0304dab11572?format=markdown)
