On 02/06/09 18:27, Ghee Teo wrote:
> Jim Li wrote:
>> All,
>>
>> Slocate has used fts_open(), fts_close(), fts_read() and fts_set() of 
>> libast.so.1 that are project private interface of ksh93. 
>   I m curious as to why slocate uses these private interfaces. Does 
> this not make this really unportable, since no many distros shipped 
> ksh93 as it was not open source until recently. Can these calls be 
> replaced to more stable interfaces?
The community use those interfaces cause they are in gnu standard 
library. But our standard library doesn't contain them, that's why we 
use these private interface of libast.so.1 .

Thanks
Jim
>
> -Ghee
>> The necessary  include head files for this also define a micro 
>> "#define getopt _ast_getopt", so that slocate uses _ast_getopt 
>> instead of getopt of standard library.  Ksh93 has made a update which 
>> probably change _ast_getopt interface in svn_106. So this fix just 
>> use getopt() of standard library instead of _ast_getopt by undef the 
>> micro.
>>
>> Thanks
>> Jim
>


Reply via email to