linux_syscall_openat2

Synopsis

Declared in <folly/system/os/linux.h>

long
linux_syscall_openat2(
    int dirfd,
    char const* pathname,
    open_how const* how);

Description

Invokes the openat2 syscall. Returns the file descriptor on success, or returns ‐1 and sets errno on failure.

Return Value

The file descriptor on success, or ‐1 with errno set on failure.

Parameters

Name

Description

dirfd

Directory file descriptor relative to which pathname is resolved.

pathname

Path of the file to open.

how

Pointer to the open_how structure describing how to open the file.

Created with MrDocs