├── .gitignore ├── .travis.yml ├── CMakeLists.txt ├── README.md ├── cmake ├── CodeCoverage.cmake ├── GTest.cmake ├── uninstall.cmake └── uninstall.cmake.in ├── example ├── include │ ├── command_line.hh │ ├── kill │ │ ├── command_kill.hh │ │ └── kill.hh │ ├── tclap │ │ ├── Arg.h │ │ ├── ArgException.h │ │ ├── ArgTraits.h │ │ ├── CmdLine.h │ │ ├── CmdLineInterface.h │ │ ├── CmdLineOutput.h │ │ ├── Constraint.h │ │ ├── DocBookOutput.h │ │ ├── HelpVisitor.h │ │ ├── IgnoreRestVisitor.h │ │ ├── MultiArg.h │ │ ├── MultiSwitchArg.h │ │ ├── OptionalUnlabeledTracker.h │ │ ├── StandardTraits.h │ │ ├── StdOutput.h │ │ ├── SwitchArg.h │ │ ├── UnlabeledMultiArg.h │ │ ├── UnlabeledValueArg.h │ │ ├── ValueArg.h │ │ ├── ValuesConstraint.h │ │ ├── VersionVisitor.h │ │ ├── Visitor.h │ │ ├── XorHandler.h │ │ └── ZshCompletionOutput.h │ └── watch │ │ ├── command_watch.hh │ │ └── watch.hh └── src │ ├── CMakeLists.txt │ ├── command_line.cc │ ├── kill │ ├── CMakeLists.txt │ ├── command_kill.cc │ └── kill.cc │ ├── main.cc │ └── watch │ ├── CMakeLists.txt │ ├── command_watch.cc │ └── watch.cc ├── include ├── CMakeLists.txt ├── error.hh ├── helper.hh ├── mstat.hh ├── periodic_watcher.hh ├── plib.hh ├── process.hh ├── pstat.hh └── watcher.hh ├── src ├── CMakeLists.txt ├── fs.cc ├── helper.cc ├── periodic_watcher.cc ├── plib.cc ├── process.cc ├── sort.cc └── watcher.cc └── tests ├── CMakeLists.txt ├── CMakeLists.txt.in ├── fs_test.cc ├── kill_test.cc ├── script.hh.in ├── scripts ├── check-clean.sh └── while_true.sh ├── sort_test.cc └── watcher_test.cc /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | *~ 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/.travis.yml -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/README.md -------------------------------------------------------------------------------- /cmake/CodeCoverage.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/cmake/CodeCoverage.cmake -------------------------------------------------------------------------------- /cmake/GTest.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/cmake/GTest.cmake -------------------------------------------------------------------------------- /cmake/uninstall.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/cmake/uninstall.cmake -------------------------------------------------------------------------------- /cmake/uninstall.cmake.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/cmake/uninstall.cmake.in -------------------------------------------------------------------------------- /example/include/command_line.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/command_line.hh -------------------------------------------------------------------------------- /example/include/kill/command_kill.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/kill/command_kill.hh -------------------------------------------------------------------------------- /example/include/kill/kill.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/kill/kill.hh -------------------------------------------------------------------------------- /example/include/tclap/Arg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/Arg.h -------------------------------------------------------------------------------- /example/include/tclap/ArgException.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/ArgException.h -------------------------------------------------------------------------------- /example/include/tclap/ArgTraits.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/ArgTraits.h -------------------------------------------------------------------------------- /example/include/tclap/CmdLine.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/CmdLine.h -------------------------------------------------------------------------------- /example/include/tclap/CmdLineInterface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/CmdLineInterface.h -------------------------------------------------------------------------------- /example/include/tclap/CmdLineOutput.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/CmdLineOutput.h -------------------------------------------------------------------------------- /example/include/tclap/Constraint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/Constraint.h -------------------------------------------------------------------------------- /example/include/tclap/DocBookOutput.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/DocBookOutput.h -------------------------------------------------------------------------------- /example/include/tclap/HelpVisitor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/HelpVisitor.h -------------------------------------------------------------------------------- /example/include/tclap/IgnoreRestVisitor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/IgnoreRestVisitor.h -------------------------------------------------------------------------------- /example/include/tclap/MultiArg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/MultiArg.h -------------------------------------------------------------------------------- /example/include/tclap/MultiSwitchArg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/MultiSwitchArg.h -------------------------------------------------------------------------------- /example/include/tclap/OptionalUnlabeledTracker.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/OptionalUnlabeledTracker.h -------------------------------------------------------------------------------- /example/include/tclap/StandardTraits.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/StandardTraits.h -------------------------------------------------------------------------------- /example/include/tclap/StdOutput.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/StdOutput.h -------------------------------------------------------------------------------- /example/include/tclap/SwitchArg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/SwitchArg.h -------------------------------------------------------------------------------- /example/include/tclap/UnlabeledMultiArg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/UnlabeledMultiArg.h -------------------------------------------------------------------------------- /example/include/tclap/UnlabeledValueArg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/UnlabeledValueArg.h -------------------------------------------------------------------------------- /example/include/tclap/ValueArg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/ValueArg.h -------------------------------------------------------------------------------- /example/include/tclap/ValuesConstraint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/ValuesConstraint.h -------------------------------------------------------------------------------- /example/include/tclap/VersionVisitor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/VersionVisitor.h -------------------------------------------------------------------------------- /example/include/tclap/Visitor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/Visitor.h -------------------------------------------------------------------------------- /example/include/tclap/XorHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/XorHandler.h -------------------------------------------------------------------------------- /example/include/tclap/ZshCompletionOutput.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/tclap/ZshCompletionOutput.h -------------------------------------------------------------------------------- /example/include/watch/command_watch.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/watch/command_watch.hh -------------------------------------------------------------------------------- /example/include/watch/watch.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/include/watch/watch.hh -------------------------------------------------------------------------------- /example/src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/src/CMakeLists.txt -------------------------------------------------------------------------------- /example/src/command_line.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/src/command_line.cc -------------------------------------------------------------------------------- /example/src/kill/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/src/kill/CMakeLists.txt -------------------------------------------------------------------------------- /example/src/kill/command_kill.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/src/kill/command_kill.cc -------------------------------------------------------------------------------- /example/src/kill/kill.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/src/kill/kill.cc -------------------------------------------------------------------------------- /example/src/main.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/src/main.cc -------------------------------------------------------------------------------- /example/src/watch/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/src/watch/CMakeLists.txt -------------------------------------------------------------------------------- /example/src/watch/command_watch.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/src/watch/command_watch.cc -------------------------------------------------------------------------------- /example/src/watch/watch.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/example/src/watch/watch.cc -------------------------------------------------------------------------------- /include/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/include/CMakeLists.txt -------------------------------------------------------------------------------- /include/error.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/include/error.hh -------------------------------------------------------------------------------- /include/helper.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/include/helper.hh -------------------------------------------------------------------------------- /include/mstat.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/include/mstat.hh -------------------------------------------------------------------------------- /include/periodic_watcher.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/include/periodic_watcher.hh -------------------------------------------------------------------------------- /include/plib.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/include/plib.hh -------------------------------------------------------------------------------- /include/process.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/include/process.hh -------------------------------------------------------------------------------- /include/pstat.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/include/pstat.hh -------------------------------------------------------------------------------- /include/watcher.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/include/watcher.hh -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/fs.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/src/fs.cc -------------------------------------------------------------------------------- /src/helper.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/src/helper.cc -------------------------------------------------------------------------------- /src/periodic_watcher.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/src/periodic_watcher.cc -------------------------------------------------------------------------------- /src/plib.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/src/plib.cc -------------------------------------------------------------------------------- /src/process.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/src/process.cc -------------------------------------------------------------------------------- /src/sort.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/src/sort.cc -------------------------------------------------------------------------------- /src/watcher.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/src/watcher.cc -------------------------------------------------------------------------------- /tests/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/tests/CMakeLists.txt -------------------------------------------------------------------------------- /tests/CMakeLists.txt.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/tests/CMakeLists.txt.in -------------------------------------------------------------------------------- /tests/fs_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/tests/fs_test.cc -------------------------------------------------------------------------------- /tests/kill_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/tests/kill_test.cc -------------------------------------------------------------------------------- /tests/script.hh.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/tests/script.hh.in -------------------------------------------------------------------------------- /tests/scripts/check-clean.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/tests/scripts/check-clean.sh -------------------------------------------------------------------------------- /tests/scripts/while_true.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | while [ 1 -eq 1 ]; do 4 | continue 5 | done 6 | -------------------------------------------------------------------------------- /tests/sort_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/tests/sort_test.cc -------------------------------------------------------------------------------- /tests/watcher_test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/reyreaud-l/libproc/HEAD/tests/watcher_test.cc --------------------------------------------------------------------------------