|
From: Jeremy F. <je...@go...> - 2004-02-16 07:06:19
|
On Sat, 2004-02-14 at 07:20, Nicholas Nethercote wrote: > Two things I'm not sure about: > > 1. There's a record_fd_open() in vg_syscalls.c:check_cmsg_for_fds(). I > don't know if this needs to be checked; the man page says that recvmsg() > can be used to pass fds over sockets... and EMFILE (or ENFILE) aren't > among the error values that recvmsg() can return. > > 2. The man pages for futex() also don't list EMFILE (or ENFILE) as one of > the allowed error values. > > Can someone else take a look at this? Thanks. I think these are both documentation oversights. The kernel will definitely return ENFILE from futex(); I'm not sure about recvmsg; it might return EBADF (which would be confusing). J |