commit b7f07a3

chld  ·  2026-10-27 12:56:59 +0000 UTC
parent fb8d6ba
replace fstatat with regular stat() .. compiles!
4 files changed,  +1, -1
M uxn.c
M uxn.o
M uxn.c
+1, -1
1@@ -515,7 +515,7 @@ static void console_out(Device*dev,Uint8 id) {
2 
3 static Uint16 files_stat(int fd,char*name,Uint16 len,Uint8*out) {
4   struct stat st;
5-  if(strlen(name)+7>len || fstatat(fd,name,&st,0)) return 0;
6+  if(strlen(name)+7>len || stat(name,&st)) return 0;
7   if(S_ISDIR(st.st_mode)) return snprintf(out,len,"---- %s\n",name);
8   else if(st.st_size<0x10000) return snprintf(out,len,"%04x %s\n",(unsigned int)st.st_size,name);
9   else return snprintf(out,len,"???? %s\n",name);
M uxn.o
+0, -0
+0, -0
+0, -0