Article View: comp.bugs.sys5
Article #341Re: Bug in SVR4 BSD-compatibility library (libucb)
From: Andy Crump
Date: Wed, 30 Jan 1991 15:53
Date: Wed, 30 Jan 1991 15:53
22 lines
1615 bytes
1615 bytes
>>>>> On 25 Jan 91 17:50:04 GMT, lcz@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@littlei.intel.com
...!uunet!littlei!andyc | andyc@littlei.uu.net
Disclaimer: Any opinions expressed here are my own and
not representive of Intel Corportation.
Technical Details
Message-ID:
<ANDYC.91Jan30155348@bucky.intel.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!sol.ctr.columbia.edu!emory!ogicse!littlei!gandalf!andycReferences:
<867@dptspd.sat.datapoint.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!sol.ctr.columbia.edu!emory!ogicse!littlei!gandalf!andyc From: andyc@bucky.intel.com (Andy Crump) Newsgroups: comp.bugs.sys5 Subject: Re: Bug in SVR4 BSD-compatibility library (libucb) Message-ID: <ANDYC.91Jan30155348@bucky.intel.com> Date: 30 Jan 91 15:53:48 GMT References: <867@dptspd.sat.datapoint.com> Sender: news@littlei.UUCP Organization: Intel Corporation, Hillsboro, Oregon Lines: 22 In-reply-to: lcz@sat.datapoint.com's message of 25 Jan 91 17:50:04 GMT