# std.Io: give File a nonblocking bit on Windows · gitcafe/zig

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

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

Visibility: public

Requested revision: de3a2c0ebb60901f7603af0fbfa0a57b27a4b5a5

Requested commit: de3a2c0ebb60901f7603af0fbfa0a57b27a4b5a5

Commit: de3a2c0ebb60901f7603af0fbfa0a57b27a4b5a5

Tree: b7cdd155ed00710643e5ff8f0090e11585aa69b0

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io: give File a nonblocking bit on Windows

This tracks whether it is a file opened in synchronous mode, or
something that supports APC.

This will be needed in order to know whether concurrent batch operations
on the file should return error.ConcurrencyUnavailable, or use APC to
complete the batch.

This patch also switches to using NtCreateFile directly in
std.Io.Threaded for dirCreateFile, as well as NtReadFile for
fileReadStreaming, making it handle files opened in synchronous mode as
well as files opened in asynchronous mode.

```

## Parents

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

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