aboutsummaryrefslogtreecommitdiffstats
path: root/getdtablecount.c (follow)
Commit message (Collapse)AuthorAgeLines
* Have getdtablecount() return the right number of file descriptors6.8Wynn Wolf Arbor2021-01-17-1/+2
| | | | | | | | | | | To find the number of file descriptors that the process has currently open, getdtablecount() counts the number of files under '/proc/self/fd'. Previously, the special directories '.' and '..' were counted alongside any symbolic links, making getdtablecount() return the wrong number of file descriptors. Make sure that these special directories are ignored by only counting files whose name consists entirely of digits.
* Add getdtablecount(2)Wynn Wolf Arbor2020-05-24-0/+26
This was taken from https://github.com/Duncaen/lobase