[Top][All Lists]
[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-----
- Re: fcntl module, (continued)
- Re: fcntl module, Paolo Bonzini, 2009/08/22
- Re: fcntl module (was: O_CLOEXEC support), Bruno Haible, 2009/08/22
- Re: fcntl module, Paolo Bonzini, 2009/08/22
- Re: fcntl module, Bruno Haible, 2009/08/22
- Re: fcntl module, Paolo Bonzini, 2009/08/23
- Re: fcntl module, Eric Blake, 2009/08/22
- Re: fcntl module, Bruno Haible, 2009/08/22
- Re: fcntl module, Eric Blake, 2009/08/22
- Re: fcntl module, Bruno Haible, 2009/08/23
- Re: fcntl module, Eric Blake, 2009/08/23
- Re: fcntl module,
Eric Blake <=
- Re: O_SAFER (was: fcntl module), Bruno Haible, 2009/08/24
- Re: O_SAFER, Paolo Bonzini, 2009/08/24
- Re: O_SAFER, Eric Blake, 2009/08/24
- Re: fcntl module, Bruno Haible, 2009/08/24
- [PATCH] Move more flags to lib/fcntl.in.h, Paolo Bonzini, 2009/08/20
- Re: [PATCH] Move more flags to lib/fcntl.in.h, Eric Blake, 2009/08/20
- Re: [PATCH] Move more flags to lib/fcntl.in.h, Bruno Haible, 2009/08/22
- Re: O_CLOEXEC support (was: popen bugs, popen_safer), Bruno Haible, 2009/08/22
- Re: O_CLOEXEC support, Paolo Bonzini, 2009/08/22
Re: popen bugs, popen_safer, Bruno Haible, 2009/08/20