{"id":16693071,"url":"https://github.com/rdbo/libproc","last_synced_at":"2025-09-26T16:02:32.868Z","repository":{"id":118702222,"uuid":"408042407","full_name":"rdbo/libproc","owner":"rdbo","description":"Linux API to abstract information from /proc (WIP)","archived":false,"fork":false,"pushed_at":"2021-09-19T22:03:48.000Z","size":15,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T01:15:01.192Z","etag":null,"topics":["api","c","linux","process","procfs"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdbo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-19T05:41:41.000Z","updated_at":"2023-05-30T17:10:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b2b602a-e8a1-4ee0-ad32-41825f5c3b9a","html_url":"https://github.com/rdbo/libproc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2Flibproc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2Flibproc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2Flibproc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbo%2Flibproc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdbo","download_url":"https://codeload.github.com/rdbo/libproc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137891,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","c","linux","process","procfs"],"created_at":"2024-10-12T16:29:14.049Z","updated_at":"2025-09-26T16:02:27.640Z","avatar_url":"https://github.com/rdbo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libproc\nLinux API to abstract information from /proc (WIP)  \n\n## Usage\n- Include `libproc/libproc.h`\n- Compile `libproc/libproc.c`\n\n## Example\nThe following example shows how to get the name of the current process\nthrough `struct proc`, which contains valuable information about the process,\nsuch as command line, absolute path, ppid, tracer pid, state, environment \nvariables and much more.  \nFor more examples, look at `tests/tests.c`  \n```c\n#include \u003clibproc.h\u003e\n\nint main()\n{\n        struct proc proc;\n\n        if (proc_openproc(getpid(), \u0026proc)) {\n                printf(\"Error!\\n\");\n                return -1;\n        }\n\n        printf(\"Process name: %s\\n\", proc.name);\n\n        proc_closeproc(\u0026proc);\n\n        return 0;\n}\n```\n\n## Requirements\n- Linux headers\n- GCC/clang (may work on other compilers too)\n\n## License\nRead `LICENSE`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdbo%2Flibproc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdbo%2Flibproc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdbo%2Flibproc/lists"}