*BSD News Article 22599


Return to BSD News archive

Xref: sserve comp.os.386bsd.bugs:1620 comp.os.386bsd.questions:6047
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!emory!tackle!irbs!jc
From: jc@irbs.UUCP (John Capo)
Newsgroups: comp.os.386bsd.bugs,comp.os.386bsd.questions
Subject: find . -ls bug
Message-ID: <515@irbs.UUCP>
Date: 19 Oct 93 17:21:13 GMT
Followup-To: comp.os.386bsd.bugs
Organization: Irbs Engineering
Lines: 18

With FreeBSD-1.0E `find . -ls' produces some very large file sizes
apparently due to the %4qd spec in ls.c:

     (void)printf("%6lu %4qd ", sb->st_ino, sb->st_blocks)
                        ^^^^^
8185 474989023199233 drwxrwxr-x    2 root     wheel    474989023199744 Oct 19 12:58 .
8186 474989023199233 -rw-r--r--    1 root     wheel    474989023199400 Jul 28 18:14 ./Makefile

sys/stat.h defines st_blocks and st_size as a long and not a long long.

I built FreeBSD-1.0E built from source on a 386BSD-0.1 system.  I used
the new gcc and /usr/lib/*.a from the binary distribution.  Everything
else came from the source distribution.

Do I have the wrong stat.h or is find ahead of the kernel?

---
jcapo@netcom.com