webvm/examples/c/openat.c
2022-01-31 22:00:49 +01:00

10 lines
188 B
C

#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
int main()
{
int ret = openat(AT_FDCWD, "/dev/tty", 0x88102, 0);
printf("return value is %d and errno is %d\n", ret, errno);
}