[CC+=Alan Cox]
On 4/27/08, Ulrich Drepper <drepper@redhat.com> wrote:
Ulrich,
This is ugly. Why invent a diffent set of flags here. I agree with
your earlier statement that new syscalls would be cleaner. If, as
seems to be the case, we are going to create new syscalls for
eventfd()
signalfd()
accept()
dup2()
epoll_create()
pipe()
inotify_init()
(I've not seen those last two yet, but I assume you are going to do them.)
then *please* let's go the hwole way cleanly, and have new syscalls
also for socketpair() and socket(), and make all of the new syscalls
use the same flags. Creating a different set of flags just to avoid a
couple of extra sycalls is ugly. (You yourself asserted similar in
saying that dup3() is better than adding an extra flag to fcntl(), and
I don't disagree.)
Cheers,
Michael
--