bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fcntl module


From: Eric Blake
Subject: Re: fcntl module
Date: Sun, 23 Aug 2009 21:16:20 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Eric Blake on 8/23/2009 8:37 PM:
> For that matter, proposing an
> O_SAFER to the glibc folks might be worthwhile.

With kernel support for O_SAFER, our *_safer paradigms could even be more
efficient (no fd_safer after the fact, so fewer kernel calls and less
temporary fd pressure).  Plus, the kernel folks have so far avoided having
to create dup + flags:

dup (n)                 -> fcntl (n, F_DUPFD, 0)
dup_safer (n)           -> fcntl (n, F_DUPFD, 3)
dup_noinherit (n)       -> fcntl (n, F_DUPFD_CLOEXEC, 0)
dup_safer_noinherit (n) -> fcntl (n, F_DUPFD_CLOEXEC, 3)

so everywhere that we care about *_safer, we either have a place for a new
flag or we can already specify a minimum.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqSBgQACgkQ84KuGfSFAYDOdwCfUetXfbJHSWgjDKPbfyADsQ1x
JmIAn2lXAMm4FP7SnAeqHRTv9b8THgHM
=AVya
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]