Bug in SVR4 BSD-compatibility library (libucb)

Andy Crump andyc at bucky.intel.com
Thu Jan 31 02:53:48 AEST 1991


>>>>> On 25 Jan 91 17:50:04 GMT, lcz at sat.datapoint.com (Lee Ziegenhals) said:

Lee> There appears to be a bug in the BSD compatibility library in SVR4.  The
Lee> library includes the BSD version of readdir(3) which returns (struct direct *).
Lee> This routine is not mentioned in the BSD/Xenix Compatibility Guide, but it is
Lee> included in /usr/ucbinclude/sys/dir.h.  The problem is that getwd(3) and
Lee> scandir(3) both use the SYSV definition of readdir, which returns
Lee> (struct dirent *)!  The result is that if you include ucblib, getwd and
Lee> scandir do not work, because they end up calling the BSD readdir while
Lee> expecting the SYSV readdir.

getwd is fixed in SVR4.0 Version 3.0.  But scandir is still broke.  I
will file a problem report with AT&T on scandir.
--

    -- Andy Crump

    ...!tektronix!reed!littlei!andyc | andyc at littlei.intel.com
    ...!uunet!littlei!andyc          | andyc at littlei.uu.net

Disclaimer: Any opinions expressed here are my own and 
            not representive of Intel Corportation.



More information about the Comp.bugs.sys5 mailing list