summaryrefslogtreecommitdiffstats
path: root/build/has/posix-getdents.c
blob: f74bbe5dccf441fc638ddc844a9aa1250b5f0603 (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 posix_getdents(3, (void *)buf, sizeof(buf), 0);
}