Re: add closefrom() call

看板FB_hackers作者時間18年前 (2007/07/24 11:05), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串23/26 (看更多)
--eqp4TxRxnD4KrmFZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Julian Elischer <julian@elischer.org> wrote: > Ed Schouten wrote: >> Woops! Sorry for responding this late, but it looks like I didn't >> explain myself good enough. Sorry. :) To rephrase myself: >> Wouldn't it be better to just implement fcntl(..., F_CLOSEM, ...) in the >> kernel and make closefrom() a simple libc routine: >> void >> closefrom(int lowfd) >> { >> fcntl(lowfd, F_CLOSEM, NULL); >> } > > what on earth would that achieve? > (as opposed to just a simple syscall) Compatability with an existing implementation. --=20 Ed Schouten <ed@fxq.nl> WWW: http://g-rave.nl/ --eqp4TxRxnD4KrmFZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGmvJ452SDGA2eCwURAur1AJ9e5Ft+T1fBTT4TQVMUMsu09cIlbACfQJw3 fsqdT2FgEfMFREZ/8FzcoGQ= =rXxf -----END PGP SIGNATURE----- --eqp4TxRxnD4KrmFZ--
文章代碼(AID): #16fMng00 (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #16fMng00 (FB_hackers)