summaryrefslogtreecommitdiffstats
path: root/build/has/getdents64-syscall.c
blob: 7642d931914fb24dd5cc682d42de9d0a3b3581ce (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

#include <dirent.h>
#include <sys/syscall.h>
#include <unistd.h>

int main(void) {
	char buf[1024];
	return syscall(SYS_getdents64, 3, (void *)buf, sizeof(buf));
}