[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] lib: Fix getdents64 syscall.
From: |
Janneke Nieuwenhuizen |
Subject: |
Re: [PATCH] lib: Fix getdents64 syscall. |
Date: |
Mon, 29 Jan 2024 09:20:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Andrius tikonas writes:
> getdents64 syscall returns slightly different dirent struct.
Hi!
Reverted previous patch with squash commits, applied this and also
--8<---------------cut here---------------start------------->8---
diff --git a/include/dirent.h b/include/dirent.h
index 910e1631d..a69bc055e 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -32,6 +32,7 @@
#else // ! SYSTEM_LIBC
+#include <arch/syscall.h>
#include <dirstream.h>
// Taken from GNU C Library 1.06.4, 2.2.5
--8<---------------cut here---------------end--------------->8---
so that the #if defined () switch actually works :)
I still notice scandir being terribly slow on x86_64 over here, ideas?
./pre-inst-env mes
mes> ,use (ice-9 ftw)
mes> (scandir "bin")
;; ~5s wait on x86_64
$1 = ("." ".." "mes" "mes-gcc" "mes-m2" "mes-mescc")
Greetings,
Janneke
--
Janneke Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com