aboutsummaryrefslogtreecommitdiff
path: root/lib/sys/getdents.h
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-02-14 17:48:12 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-02-14 17:48:12 +0100
commit3a369468f7daae5b3a60feaa50c6050b240be6d4 (patch)
treeea3f5b1859c3cea91fb432c75c0920a0697347f3 /lib/sys/getdents.h
parent7a98e998c5cda484611d19854649ab8535f503d4 (diff)
add colors to ls
Diffstat (limited to 'lib/sys/getdents.h')
-rw-r--r--lib/sys/getdents.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sys/getdents.h b/lib/sys/getdents.h
index b5a0c74..5efa3db 100644
--- a/lib/sys/getdents.h
+++ b/lib/sys/getdents.h
@@ -3,12 +3,12 @@
#include "syscalls.h"
-struct dirent {
+typedef struct {
unsigned long d_ino;
unsigned long d_off;
unsigned short d_reclen;
char d_name[];
-};
+} dirent_t;
static int getdents(unsigned int fd, char *buf, unsigned int count)
{