mlelstv%serpens.de@localhost (Michael van Elst) writes:
mlelstv%serpens.de@localhost (Michael van Elst) writes:
the direct struct doesn't use the d_namlen field, it's always zero.
Correction, it apparently uses a 16bit d_namlen field and d_type is missing.
This is the OLDDIRFMT.
Eh voila:
% ls -l /mnt
total 797
lrwxrwxrwx 1 root wheel 8 Dec 17 1990 bin -> /usr/bin
drwxr-xr-x 2 root wheel 3584 Nov 21 2002 dev
drwxr-xr-x 4 root wheel 1024 Nov 21 2002 etc
-rw-r--r-- 1 root wheel 0 Nov 21 2002 fastboot
drwxr-xr-x 3 root wheel 512 Oct 25 1990 home
lrwxrwxrwx 1 root wheel 8 Dec 17 1990 lib -> /usr/lib
drwxr-xr-x 2 root wheel 4096 Oct 25 1990 lost+found
drwxr-xr-x 2 root wheel 512 Oct 25 1990 mnt
drwxr-xr-x 2 root wheel 512 Mar 4 1991 mnt2
drwxr-xr-x 3 root wheel 512 Nov 6 1990 packages
drwxr-xr-x 3 root wheel 512 Oct 25 1990 release
drwxr-xr-x 2 root wheel 1024 Nov 21 2002 sbin
-rw-r--r-- 1 root wheel 0 Oct 25 1990 slowboot
-rw------- 1 root wheel 8388608 Nov 21 2002 swapfile
drwxr-xr-x 2 root wheel 512 Oct 25 1990 tftpboot
drwxrwxrwt 2 root wheel 512 Nov 21 2002 tmp
drwxr-xr-x 16 root wheel 512 Nov 27 1990 usr
drwxr-xr-x 11 root wheel 512 Nov 27 1990 var
-rwxr-xr-x 1 root wheel 806064 Dec 14 1990 vmunix
arnold% file /mnt/vmunix
/mnt/vmunix: a.out little-endian 32-bit demand paged pure executable not stripped