{"id":33931672,"url":"https://github.com/getargv/getargv-sys","last_synced_at":"2026-04-05T17:39:51.941Z","repository":{"id":62849569,"uuid":"563010130","full_name":"getargv/getargv-sys","owner":"getargv","description":"Rust bindings to libgetargv","archived":false,"fork":false,"pushed_at":"2026-02-22T23:16:01.000Z","size":194,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-23T04:15:34.754Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getargv.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-07T18:10:05.000Z","updated_at":"2026-02-22T23:16:05.000Z","dependencies_parsed_at":"2023-12-30T00:38:47.251Z","dependency_job_id":"90858a49-beac-4723-a6be-7baa41d5c908","html_url":"https://github.com/getargv/getargv-sys","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":0.02777777777777779,"last_synced_commit":"6b045b7f2a15f543c03b5ba9809762d91d756d7b"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/getargv/getargv-sys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getargv%2Fgetargv-sys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getargv%2Fgetargv-sys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getargv%2Fgetargv-sys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getargv%2Fgetargv-sys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getargv","download_url":"https://codeload.github.com/getargv/getargv-sys/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getargv%2Fgetargv-sys/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31444702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-12-12T12:56:06.236Z","updated_at":"2026-04-05T17:39:51.937Z","avatar_url":"https://github.com/getargv.png","language":"Rust","funding_links":["https://github.com/sponsors/CamJN"],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e\u003cimg src=\"logo.svg\" width=\"200\" alt=\"getargv\"\u003e\u003c/h1\u003e\n\n[![Rust CI](https://github.com/getargv/getargv-sys/actions/workflows/rust.yml/badge.svg)](https://github.com/getargv/getargv-sys/actions/workflows/rust.yml)\n\nThis crate is the Rust bindings for the `libgetargv` library. `libgetargv` is a library that allows you to get the arguments that were passed to another running process on macOS. It is intended to provide roughly the same functionality as reading from `/proc/\u003cpid\u003e/cmdline` on Linux. On macOS this is done by parsing the output of the `KERN_PROCARGS2` sysctl, which is \u003cabbr title=\"always, in my observation\"\u003every often\u003c/abbr\u003e implemented [incorrectly](https://getargv.narzt.cam/hallofshame.html), due to the overlooked possibility of leading empty arguments passed to the target process.\n\n## Installation\n\n - Install `libgetargv` to your system (see below).\n - Add the crate to your `Cargo.toml` file dependencies:\n\n```toml\n[target.'cfg(target_vendor = \"apple\")'.dependencies]\ngetargv-sys = \"~0.5.6\"\n```\n\u003e [!IMPORTANT]\n\u003e You should limit the dependency to just macOS unless your whole project only builds on macOS, as `getargv-sys` will not build on any other OS.\n\n## Permissions\n\n`libgetargv` can only see processes running as the same user by default, so be sure your process runs as the desired user (`setuid`, [`launchd.plist`](x-man-page://launchd.plist), [`sudo`](x-man-page://sudo)) or can [elevate privileges](https://developer.apple.com/library/archive/documentation/Security/Conceptual/SecureCodingGuide/Articles/AccessControl.html).\n\n\u003e [!CAUTION]\n\u003e Elevating privileges safely is [extremely complicated](https://developer.apple.com/forums/thread/708765), and will be a target of privilege escalation attacks on macOS so be extremely careful if you go this route, better to defer to the user to elevate privileges for you as needed.\n\n## System Requirements\n\nmacOS is required as this is a macOS specific `sysctl`, even BSD does not implement it. Your system must support `sysctl` and `KERN_PROCARGS2`, which probably means macOS [10.3](https://github.com/apple-oss-distributions/xnu/blob/xnu-517/bsd/sys/sysctl.h#L332) or later, though I haven't tested versions older than 10.7. You'll also need a non-ancient clang (c99 is required) or you'll have to override the compiler flags with `CC`, `EXTRA_CPPFLAGS`, and `EXTRA_CFLAGS`.\n\n## Building `getargv-sys`\n\nTo make `getargv-sys`:\n\n - Install `libgetargv` to your system (see below).\n - Clone this repo and run `cargo build`.\n\n## Installing `libgetargv`\n\nTo get access to `libgetargv`, sign up for an appropriate [sponsorship tier](https://github.com/sponsors/CamJN).\n\nThen you will be able to follow the instructions at https://github.com/getargv/getargv to install libgetargv.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetargv%2Fgetargv-sys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetargv%2Fgetargv-sys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetargv%2Fgetargv-sys/lists"}