diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2012-01-14 14:47:58 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-01-14 23:30:28 +0100 |
commit | 4d9dc03bbc42fdfdac0dc72f2bfac1f37f70e8b7 (patch) | |
tree | 775574efd98e37146be4a29c9d2d2d250ff8656c /main.h | |
parent | f8471a5a6b20693d3c7afc0645de62c842b82bd3 (diff) |
PID stat/status: show only the file name of processes
The Linux /proc fs shows only the file name of processes in the
`stat' and `status' files of every process directory, so adapt also
procfs to show process file names.
Add a new `args_filename` function, much similar to GNU's `basename'
but returning the original string also when the resulting file name
is an empty string.
* process.c (args_filename): New function.
(process_file_gc_stat): Wrap the `proc_stat_args' result with
`args_filename'.
(process_file_gc_status): Likewise.
Diffstat (limited to 'main.h')
0 files changed, 0 insertions, 0 deletions