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