diff options
author | Davidlohr Bueso | 2011-05-03 20:57:01 +0200 |
---|---|---|
committer | Karel Zak | 2011-05-04 15:30:28 +0200 |
commit | 9734045d9d11330b7782fbcffccf74fc98cdcc5c (patch) | |
tree | 54e0d01072a3242e8600d8ab22ffe243bbb89e0a /lib/procutils.c | |
parent | mkfs.minix: remove die() (diff) | |
download | kernel-qcow2-util-linux-9734045d9d11330b7782fbcffccf74fc98cdcc5c.tar.gz kernel-qcow2-util-linux-9734045d9d11330b7782fbcffccf74fc98cdcc5c.tar.xz kernel-qcow2-util-linux-9734045d9d11330b7782fbcffccf74fc98cdcc5c.zip |
lib: [procutils.c]: general purpose procfs parsing functions
We include the following functions as a first approach:
- proc_open_tasks(): allocate resources and setup basic data
- proc_next_tid(): iterate over the thread group
- proc_close_tasks(): free used resources
[kzak@redhat.com: - free() on error in proc_open_tasks(),
- always call free() in proc_close_tasks()
- ignore non-digit dirs and return 1 on end-of-dir
in proc_next_tid()]
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/procutils.c')
0 files changed, 0 insertions, 0 deletions