The strange thing, then, is that all of the fts_... calls are inside 
file_utils_posix.cc...
I've seen checks for ANDROID skipping all the fts stuff, I'll patch to treat 
OS_SOLARIS the same way,
and see the results, then I'll ask clarifications at firefox discussion list.
Anyway, fts_ looks a normal library in linux, isn't it implemented some way in 
illumos without
the need for ast?
----------------------------------------------------------------------------------
Da: Joerg Schilling
A: [email protected]
Data: 18 novembre 2013 11.18.38 CET
Oggetto: Re: [discuss] fts
Gabriele Bulfon
wrote:
Actually I wouldn't want it, but file_util.h from firefox says:
#if defined(OS_WIN)
#include
#elif defined(ANDROID)
#include
#elif defined(OS_POSIX)
#include
#include
#include
#endif
and then tries this:
#if defined(OS_WIN)
WIN32_FIND_DATA find_data_;
HANDLE find_handle_;
#elif defined(ANDROID)
void *fts_;
#elif defined(OS_POSIX)
FTS* fts_;
FTSENT* fts_ent_;
#endif
This looks like a bug in firefox.
...except when FTS... is a #define that may be struct FTW.
fts is available on some platforms but not part of posix and I am not sure
whether it is a good idea to link something against libast that is a
reimplementation of libc and may behave different from libc.
Note that libast gives portability by implementing _everything_ from libc.
While this may be a good idea for Win-DOS, in case you don't use Cygwin (note
that libast is used with UWIN) there are other portability approaches, like
libschily where the portability lib only contains features that are missing
from the local libc.
Jörg
--
EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
[email protected]                (uni)
[email protected] (work) Blog: http://schily.blogspot.com/
URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175541-02f10c6f
Modify Your Subscription: 
https://www.listbox.com/member/?&id;secret=21175541-29e3e0ee
Powered by Listbox: http://www.listbox.com



-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to