]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/procfs: add functions to read /proc/#/ stuff
authorKarel Zak <kzak@redhat.com>
Tue, 7 Sep 2021 15:32:01 +0000 (17:32 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 09:01:54 +0000 (11:01 +0200)
commit32c21c768140a31c6ce1f522be6a60f5ceb6f1fa
treefd98f8ac09f8a2f60807311a46bf778124d99672
parent2f26f8aae1ece618ff7ade997609509f0b60d400
lib/procfs: add functions to read /proc/#/ stuff

This is extension to lib/path.c (the same as lib/sysfs.c for block
devices) to read info about processes.

* replaces code from lib/procutils.c
* remove proc_{open,close}_processes(), opendir and readdir is good enough
* add procfs_dirent_*() functions to work with readdir() from /proc
* add new path_cxt based API (will be extended in next commits) for
  complex tasks

Signed-off-by: Karel Zak <kzak@redhat.com>
include/Makemodule.am
include/pathnames.h
include/procfs.h [new file with mode: 0644]
lib/Makemodule.am
lib/meson.build
lib/procfs.c [new file with mode: 0644]