[Bug 194985] getdtablecount new syscall from openbsd

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 13 10:07:23 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194985

Mateusz Guzik <mjg at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mjg at FreeBSD.org

--- Comment #1 from Mateusz Guzik <mjg at FreeBSD.org> ---
What rationale is behind this?

If such syscall is really needed, it may be it will be fast enough to count
bits set in the map.

Also what's up with this:
+    p = td->td_proc;
+    PROC_LOCK(p);
+    td->td_retval[0] = p->p_fd->fd_openfd;
+    PROC_UNLOCK(p);

proc lock does not protect file table nor fd_openfd.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list