]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implemtn getdtablecount() to count open file descriptors for current process.
authorrodrigc <rodrigc@FreeBSD.org>
Sat, 14 Nov 2015 23:07:38 +0000 (23:07 +0000)
committerrodrigc <rodrigc@FreeBSD.org>
Sat, 14 Nov 2015 23:07:38 +0000 (23:07 +0000)
commit9a0b9f3b8c35a2610bdf7f5782412b75768f215a
tree8c0c78bb399e6de55c247fbeca6f7f432cf3ca7e
parent197e29b8ee808c3d92be574aa95480835d1b60e1
Implemtn getdtablecount() to count open file descriptors for current process.

Use underlying sysctl implemented by mjg in r290473.

PR:                    194985
Reviewed by:           bapt, mjg
Differential Revision: https://reviews.freebsd.org/D4084
lib/libopenbsd/Makefile
lib/libopenbsd/getdtablecount.c [new file with mode: 0644]
lib/libopenbsd/unistd.h [new file with mode: 0644]