Page MenuHomeFreeBSD

Document procfs(5) as obsolete
ClosedPublic

Authored by trasz on Nov 7 2019, 2:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 9:05 PM
Unknown Object (File)
Jan 25 2024, 4:11 AM
Unknown Object (File)
Jan 17 2024, 6:54 PM
Unknown Object (File)
Dec 20 2023, 2:27 AM
Unknown Object (File)
Dec 20 2023, 1:58 AM
Unknown Object (File)
Dec 14 2023, 3:27 AM
Unknown Object (File)
Nov 14 2023, 12:57 PM
Unknown Object (File)
Oct 13 2023, 11:58 AM

Details

Summary

Update the procfs(5) man page to clarify that it's obsolete.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27388
Build 25635: arc lint + arc unit

Event Timeline

bcr added a subscriber: bcr.

Bump the .Dd when you commit. Thanks!

This revision is now accepted and ready to land.Nov 7 2019, 2:39 PM

Do we know what if any ports actually use procfs?

Do we know what if any ports actually use procfs?

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."

So... Is procfs actually obsolete then?

So... Is procfs actually obsolete then?

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.

pstef added inline comments.
share/man/man5/procfs.5
17

Just say it's deprecated as Ed suggested and overall this change is good.

This revision was automatically updated to reflect the committed changes.