brintos

brintos / linux-shallow public Read only

0
0
Text · 344 B · d7e19e1 Raw
14 lines · c
1// SPDX-License-Identifier: GPL-2.02#ifndef _GNU_SOURCE3#define _GNU_SOURCE4#endif5#include <dirent.h>6 7int main(void)8{9	// expects non-NULL, arg3 is 'restrict' so "pointers" have to be different10	return scandirat(/*dirfd=*/ 0, /*dirp=*/ (void *)1, /*namelist=*/ (void *)2, /*filter=*/ (void *)3, /*compar=*/ (void *)4);11}12 13#undef _GNU_SOURCE14