On Mon, Jun 17, 2013 at 4:42 PM, Glenn Fowler <[email protected]> wrote:
> On Mon, 17 Jun 2013 16:22:36 +0200 Lionel Cons wrote:
>> Does libast have a directory walker API which can take a directory fd
>> (for openat()) as input to define the starting point?
>
> no -- that's a good point
> we would probably add fts_openat(path, fd, flags, comparf)

BTW: Such code should avoid using |chdir()| (no longer being needed
with the |*at()| API) and use |readdir_r()| to make the code fully
thread-safe...

> and extend the *at() semantics to allow path==0 to use fd already in hand

Erm... AFAIK you mean path=="." in this case ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to