Update the procfs(5) man page to clarify that it's obsolete.
Details
- Reviewers
emaste bcr 0mp - Group Reviewers
manpages - Commits
- rG45fb3e74d2b9: procfs: Document as deprecated
rG70774c637b87: procfs: Document as deprecated
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Quite a lot of software ported from Linux, because it's way easier to change /proc/self to /proc/curproc than to actually write code for using sysctls and such :)
Grepping for curproc in ports reveals x11/keyboardcast, security/beid, net-mgmt/seafile-server, net-mgmt/seafile-client, java/openjdk7, net-mgmt/ccnet-server, mail/dbmail, science/opensph, sysutils/memfetch, devel/RStudio, devel/synfig, devel/clanlib1, devel/clanlib, devel/oclgrind… Typically it's just for finding the current executable binary.
And you can find more on the internet e.g.
Just installed libsigsegv on a machine and the pkg message was: "Note that the stackoverflow handling functions of this library need procfs mounted on /proc."
I would say use of procfs is deprecated, and your advice (about libkvm etc.) is sound., but it is still used by a number of ports.
share/man/man5/procfs.5 | ||
---|---|---|
17 | Just say it's deprecated as Ed suggested and overall this change is good. |