Date: Thu, 13 Nov 2014 10:07:23 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 194985] getdtablecount new syscall from openbsd Message-ID: <bug-194985-8-sUlQirKZtq@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-194985-8@https.bugs.freebsd.org/bugzilla/> References: <bug-194985-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194985 Mateusz Guzik <mjg@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mjg@FreeBSD.org --- Comment #1 from Mateusz Guzik <mjg@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194985-8-sUlQirKZtq>