https://github.com/jcnelson/libpstat
Library for getting information about running processes
https://github.com/jcnelson/libpstat
Last synced: 9 months ago
JSON representation
Library for getting information about running processes
- Host: GitHub
- URL: https://github.com/jcnelson/libpstat
- Owner: jcnelson
- License: isc
- Created: 2014-11-21T00:50:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-07T03:03:55.000Z (over 10 years ago)
- Last Synced: 2025-04-09T00:28:22.934Z (about 1 year ago)
- Language: C
- Size: 229 KB
- Stars: 11
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.ISC
Awesome Lists containing this project
README
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