# std.fs.Dir.openFile: use wasi libc API when \-lc · gitcafe/zig

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

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

Visibility: public

Requested revision: d06e5b4349a9670fc4aad7215c7a73b814bbf91b

Requested commit: d06e5b4349a9670fc4aad7215c7a73b814bbf91b

Commit: d06e5b4349a9670fc4aad7215c7a73b814bbf91b

Tree: 0f3eba0ea2f93d44fd6e726c05f65655cb100efd

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.fs.Dir.openFile: use wasi libc API when -lc

Also removes the LOCK namespace from std.c.wasi because wasi libc does
not have flock.

closes #19336
related to #19352

Co-authored-by: Ryan Liptak <squeek502@hotmail.com>

```

## Parents

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

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