Re:Linux /proc/pid/stat parsing bugs
by woodruffw on Thursday December 22, 2022 @03:35PM
(#34098299)
People make fun of the excesses of the XML era, but that would still be an improvement in the state of affairs!
Realistically, however, a reasonable format here would be CSV/TSV with a bit of escaping, or even something like netstrings[1]. Either would be unambiguous, while retaining the shell-tool-friendly nature of these pseudofiles.
Realistically, however, a reasonable format here would be CSV/TSV with a bit of escaping, or even something like netstrings[1]. Either would be unambiguous, while retaining the shell-tool-friendly nature of these pseudofiles.
[1]: https://cr.yp.to/proto/netstrings.txt