Dan Mick <[email protected]> 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:[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 _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
