hurd: Add open.
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 13 Mar 2019 23:08:35 +0000 (00:08 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 13 Dec 2019 20:52:30 +0000 (21:52 +0100)
commit89945751d9e94418843d93e799f430b3c92f7f73
treedbf4bf641fb93df359ff05b8046b0ab24a17e866
parent67d82a6de5f4cd717882fb1d87793b9ecc1b4baa
hurd: Add open.

* include/fcntl.h (O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, O_APPEND,
O_TRUNC)[__GNU__]: Specialize for GNU.
* lib/gnu/dir-lookup.c: New file.
* lib/stdio/fopen.c (fopen): Use O_RDONLY.
* lib/tests/posix/50-open-read.c (main): Likewise.
* lib/tests/stdio/90-fseek.c (main): Likewise.
* include/gnu/syscall.h (SYS__dir_lookup): New value.
* lib/gnu/_open3.c: New file.
* build-aux/configure-lib.sh (libc_SOURCES): Build them.
build-aux/configure-lib.sh
include/fcntl.h
include/gnu/syscall.h
lib/gnu/_open3.c [new file with mode: 0644]
lib/gnu/dir-lookup.c [new file with mode: 0644]
lib/gnu/io-write.c
lib/stdio/fopen.c
lib/tests/posix/50-open-read.c
lib/tests/stdio/90-fseek.c