*BSD News Article 19017


Return to BSD News archive

Xref: sserve comp.unix.wizards:30212 comp.unix.questions:37154 comp.unix.bsd:12335
Newsgroups: comp.unix.wizards,comp.unix.questions,comp.unix.bsd
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nabeth.cxo.dec.com!alan
From: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
Subject: Re: BSD filesystem and od utility
Message-ID: <1993Jul29.195743.1849@nntpd2.cxo.dec.com>
Lines: 32
Sender: usenet@nntpd2.cxo.dec.com (USENET News System)
Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
Organization: Digital Equipment Corporation
References:  <22n249$2fv@agate.berkeley.edu>
Date: Thu, 29 Jul 1993 19:57:43 GMT


In article <22n249$2fv@agate.berkeley.edu>, scott@soda.berkeley.edu (Scott Silvey) writes:
>
> [ Octal dump of a directory deleted. ]

>My questions are as follows: 
>
> [ Questions also deleted. ]
>
>Any information would be greatly appreciated.

Wouldn't it be easier to look at the structure of a directory
entry in the include file that defines, rather than trying to
disassemble it.  You can probably find it in /usr/include/sys/dir.h.
or maybe dirent.h.

If you can't find it, the directory entries consist of variable
length records.  In addition to the inode and name, it contains
a length for the entry and the name.  Entries are probably padded
to some nicely aligned length for those systems that care.

>
>                          Thanx in advance,
>
>                                   Jon.
>
>P.S. Please mail replies/clarifications to 'jon@lurnix.com' - I don't 
>     get to read news very often and this will insure I get your reply.
>
--
Alan Rollow				alan@nabeth.cxo.dec.com