OS-agnostic process stat
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Aitor 80899abd65 Do not use fixed size PATH_MAX to allocate memory in functions like pstat_get_binary_path_from... 4 weeks ago
os Replace deprecated _BSD_SOURCE with _DEFAULT_SOURCE 1 month ago
pkg Cloned from Jude Nelson's git repository. 2 years ago
tools Cloned from Jude Nelson's git repository. 2 years ago
.gitignore Cloned from Jude Nelson's git repository. 2 years ago
CONTRIBUTORS Cloned from Jude Nelson's git repository. 2 years ago
LICENSE.ISC Cloned from Jude Nelson's git repository. 2 years ago
LICENSE.LGPLv3+ Cloned from Jude Nelson's git repository. 2 years ago
Makefile Fix a mistake in the Makefile moving the definition of PREFIX above the 1 month ago
README.md Cloned from Jude Nelson's git repository. 2 years ago
libpstat.c Do not use fixed size PATH_MAX to allocate memory in functions like pstat_get_binary_path_from... 4 weeks ago
libpstat.h Do not use fixed size PATH_MAX to allocate memory in functions like pstat_get_binary_path_from... 4 weeks ago
libpstat.pc.in Modify the version: it should be the upstream version, not the MAJOR:MINOR:PATCH version numbers of the shared library 1 month ago

README.md

libpstat: OS-agnostic process stat

libpstat is a small library for getting information on running processes in an OS-agnostic way. The source is structured to make it easy to add support for additional operating systems. Currently, Linux is the only supported OS.

Building

To build:

$ make OS=$OS_NAME

Substitute $OS_NAME for "LINUX".

Installing

To install libpstat to /lib and headers to /usr/include/pstat:

$ sudo make install PREFIX=/ INCLUDE_PREFIX=/usr

Advanced: If you want to install libpstat's headers to a custom location, you can do so by setting the INCLUDE_DIR variable instead of the INCLUDE_PREFIX variable. For example, passing INCLUDE_DIR=/custom/location/ would install the headers directly to /custom/location, whereas INCLUDE_PREFIX=/custom/location would install the headers to /custom/location/include/pstat.

Documentation

TODO