Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/zfs-tests/cmd/statx.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <unistd.h>

Expand Down Expand Up @@ -54,14 +55,16 @@
#endif /* __NR_statx */


#ifndef HAVE_STATX
int
statx(int, const char *, int, unsigned int, void *)
__attribute__((weak));
#endif

static inline int
_statx(int fd, const char *path, int flags, unsigned int mask, void *stx)
{
if (statx)
if (&statx != NULL)
return (statx(fd, path, flags, mask, stx));
else
return (syscall(__NR_statx, fd, path, flags, mask, stx));
Expand Down
Loading