summaryrefslogtreecommitdiff
path: root/0.c
diff options
context:
space:
mode:
authorn <@>2021-11-03 13:41:31 +0200
committern <@>2021-11-03 13:41:31 +0200
commitd5770bedb0a2ff69dc12bdfa5242636a6ff62aa2 (patch)
treef8a9356d7bad203192d09bfd35efd562955fbfce /0.c
parent6b2163589e00fc2cf428e38f4a4217b6fa18b405 (diff)
0.c
Diffstat (limited to '0.c')
-rw-r--r--0.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/0.c b/0.c
index de9ad467..4beef502 100644
--- a/0.c
+++ b/0.c
@@ -69,6 +69,9 @@ I main(In,O char**a)_(kinit(n,a);I r=n>1?!cmdl(a[1]):repl();Q(cmdm(""));r)
TD ST{long d_ino;off_t d_off;UH d_reclen;C d_name[];}DE;
#endif
ssize_t getdents(I,char*,N);
+ #if defined(libc) && defined(__linux__)
+ ssize_t getdents(If,char*a,Nn)_(syscall(SYS_getdents,f,a,n))
+ #endif
#if !defined(libc)
asm(h3(getdents));
#endif