Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!mit-eddie!genrad!decvax!decwrl!sun!gorodish!guy From: guy@gorodish.UUCP Newsgroups: comp.bugs.sys5 Subject: Bug in DIRENT(4) manual page Message-ID: <13418@sun.uucp> Date: Mon, 16-Feb-87 16:15:35 EST Article-I.D.: sun.13418 Posted: Mon Feb 16 16:15:35 1987 Date-Received: Tue, 17-Feb-87 21:31:12 EST Sender: news@sun.uucp Lines: 13 The DIRENT(4) manual page claims that the "d_off" field of a file system-independent directory entry contains the offset of that entry. This conflicted with the directory library code, which returns the "d_off" field for the entry just read if you do a "telldir", with the "getdents" code, and with our experience in doing that sort of thing; the NFS "readdir" operation returns the offset of the *next* entry with each entry, because that's what you're usually interested in after reading an entry. Well, I tried it on a 3B2 here, and by golly, the first directory entry in "/" gets a "d_off" of 16, not 0. The documentation is in error, it seems.