home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sun / admin / 10639 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.2 KB

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