Anonymous

Procfs: Difference between revisions

From dankwiki
9 bytes added ,  10:08, 11 October 2019
Line 20: Line 20:


===<tt>proc/PID/stat</tt> sucks===
===<tt>proc/PID/stat</tt> sucks===
<tt>/proc/PID/stat</tt> contains a mélange of data, though exactly which data depends on precise kernel version. The proc(5) manpage describes them in terms of <tt>scanf</tt> conversion operators, which generally lacks rigor due to [[C]] numeric types having different ranges on different implementations. This would all be gross, but fundamentally acceptable.
<tt>/proc/PID/stat</tt> contains a mélange of data, though exactly which data depends on precise kernel version. The <tt>proc(5)</tt> manpage describes them in terms of <tt>scanf</tt> conversion operators, which generally lacks rigor due to [[C]] numeric types having different ranges on different implementations. This would all be gross, but fundamentally acceptable.


No, the real shit on this sandwich is that it is provably impossible to rigorously delineate the second field, even with a pushdown automata:
No, the real shit on this sandwich is that it is provably impossible to rigorously delineate the second field, even with a pushdown automata: