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

#include <dirent.h>

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