aboutsummaryrefslogtreecommitdiffstats
path: root/getdtablecount.c (unfollow)
Commit message (Collapse)AuthorLines
2021-01-17Have getdtablecount() return the right number of file descriptors6.8Wynn Wolf Arbor-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.
2020-05-24Add getdtablecount(2)Wynn Wolf Arbor-0/+26
This was taken from https://github.com/Duncaen/lobase