On Fri, Sep 14, 2012 at 3:08 PM, Simon Toedt <simon.to...@gmail.com> wrote:
> On Fri, Sep 14, 2012 at 6:01 AM, Roland Mainz <roland.ma...@nrubsig.org> 
> wrote:
>> - If files or directories are opened relative to /dev/fd/$fd/$path
>> |sfopen()|/|sfopenat()| will now bypass the /dev/fd filesystem
>> completely (which gives a nice performance boost). The only exception
>> is that this can *NOT* be done for a plain /dev/fd/$fd, e.g.
>> /dev/fd/15. The problem is that there is AFAIK no way to open a file
>> from a file descriptor without using the /dev/fd filesystem or using
>> |dup()| ... but |dup()| rules itself out because the resulting
>> "cloned" fd still shares attributes like the current seek position
>> with the original fd...
>
> I don't want to nitpick, but wouldn't -d for directory more
> appropriate instead of -f?

Mhhh... -f was picked based on the name "file descriptor" (while the
long option name is "--dirfd") ...
... David: What do you think ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.ma...@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-developers mailing list
ast-developers@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to