Dan Mick <dan.m...@sun.com> wrote:

> Roland Mainz wrote:
>
> > Is there any efficient way (e.g. except |open()|+|dup2()|) to |open()| a
> > file but get a file descriptor number >= 500 (or any other value) ?
>
> I would think that most everyone would think that open + dup2 is plenty 
> efficient.  I know of no single system call.

Systemcalls that are based on fd's are usualls extremely fast.
fpathconf() is e.g. much faster than pathconf(). I did not meter this case, 
but I would asume that open()+dup2() is not really slower than open() alone.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       j...@cs.tu-berlin.de                (uni)  
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to