2 ms·
Note that man page says that the name is truncated to 16 chars, so if for whatever reason you don't want to do unbounded length read then you can use that
by zokier 4y ago
Note that man page says that the name is truncated to 16 chars, so if for whatever reason you don't want to do unbounded length read then you can use that
- jyxent 4y agoThey actually allow up to 64 characters in the kernel: https://github.com/torvalds/linux/blob/8395ae05cb5a2e31d36106e8c85efa11cda849be/fs/proc/array.c#L100 https://github.com/torvalds/linux/blob/8395ae05cb5a2e31d3610... This might just be for certain kernel things though. I don't see any regular processes that aren't truncated, but I see a bunch of kernel things that have more than 16 chars on my system.
- deleted 4y ago[deleted]