home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!male.EBay.Sun.COM!exodus.Eng.Sun.COM!gday!maslen
- From: maslen@gday.Eng.Sun.COM (Thomas Maslen)
- Newsgroups: comp.sys.sun.admin
- Subject: Re: SunOS 5.1 bug in readdir()
- Date: 22 Jan 1993 06:58:37 GMT
- Organization: Sun Microsystems Inc., Mountain View, CA
- Lines: 19
- Distribution: world
- Message-ID: <llv6otINN7fh@exodus.Eng.Sun.COM>
- References: <5130@metasoft.UUCP>
- NNTP-Posting-Host: gday
-
- > struct dirent {
- > ino_t d_ino; /* "inode number" of entry */
- > off_t d_off; /* offset of disk directory entry */
- > unsigned short d_reclen; /* length of this record */
- > char d_name[1]; /* name of file */
- > };
-
- >Unfortunately, when examining the structure after calling readdir,
- >it appears that d_off was treated as a short since d_reclen begins
- >2 bytes after d_off.
-
- >Is this a known problem?
-
- Is it possible that you compiled with the the native header files
- (/usr/include) but then linked against the source-compatibility
- libraries in /usr/ucblib, thus getting the BSD version of readdir?
-
- Thomas Maslen
- maslen@eng.sun.com My opinions, not Sun(Soft)'s
-