repo.or.cz
/
drm
/
drm-misc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git]
/
tools
/
build
/
feature
/
test-scandirat.c
blob
d7e19e1858a52235041dc7f351f155c1307c983d
1
// SPDX-License-Identifier: GPL-2.0
2
#ifndef _GNU_SOURCE
3
#define _GNU_SOURCE
4
#endif
5
#include <dirent.h>
6
7
int
main
(
void
)
8
{
9
// expects non-NULL, arg3 is 'restrict' so "pointers" have to be different
10
return
scandirat
(
/*dirfd=*/
0
,
/*dirp=*/
(
void
*)
1
,
/*namelist=*/
(
void
*)
2
,
/*filter=*/
(
void
*)
3
,
/*compar=*/
(
void
*)
4
);
11
}
12
13
#undef _GNU_SOURCE