webvm/examples/c/openat.c

11 lines
188 B
C
Raw Permalink Normal View History

2022-01-31 20:52:13 +00:00
#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);
}