{"action":"created","issue":{"url":"https://api.github.com/repos/nix-rust/nix/issues/264","repository_url":"https://api.github.com/repos/nix-rust/nix","labels_url":"https://api.github.com/repos/nix-rust/nix/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/nix-rust/nix/issues/264/comments","events_url":"https://api.github.com/repos/nix-rust/nix/issues/264/events","html_url":"https://github.com/nix-rust/nix/issues/264","id":133158456,"number":264,"title":"Use definitions from libc instead of writing our own","user":{"login":"kamalmarhubi","id":50936,"avatar_url":"https://avatars.githubusercontent.com/u/50936?v=3","gravatar_id":"","url":"https://api.github.com/users/kamalmarhubi","html_url":"https://github.com/kamalmarhubi","followers_url":"https://api.github.com/users/kamalmarhubi/followers","following_url":"https://api.github.com/users/kamalmarhubi/following{/other_user}","gists_url":"https://api.github.com/users/kamalmarhubi/gists{/gist_id}","starred_url":"https://api.github.com/users/kamalmarhubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamalmarhubi/subscriptions","organizations_url":"https://api.github.com/users/kamalmarhubi/orgs","repos_url":"https://api.github.com/users/kamalmarhubi/repos","events_url":"https://api.github.com/users/kamalmarhubi/events{/privacy}","received_events_url":"https://api.github.com/users/kamalmarhubi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nix-rust/nix/labels/A-refactor","name":"A-refactor","color":"fbca04"},{"url":"https://api.github.com/repos/nix-rust/nix/labels/E-good-first-bug","name":"E-good-first-bug","color":"009800"},{"url":"https://api.github.com/repos/nix-rust/nix/labels/E-mentor","name":"E-mentor","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"kamalmarhubi","id":50936,"avatar_url":"https://avatars.githubusercontent.com/u/50936?v=3","gravatar_id":"","url":"https://api.github.com/users/kamalmarhubi","html_url":"https://github.com/kamalmarhubi","followers_url":"https://api.github.com/users/kamalmarhubi/followers","following_url":"https://api.github.com/users/kamalmarhubi/following{/other_user}","gists_url":"https://api.github.com/users/kamalmarhubi/gists{/gist_id}","starred_url":"https://api.github.com/users/kamalmarhubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamalmarhubi/subscriptions","organizations_url":"https://api.github.com/users/kamalmarhubi/orgs","repos_url":"https://api.github.com/users/kamalmarhubi/repos","events_url":"https://api.github.com/users/kamalmarhubi/events{/privacy}","received_events_url":"https://api.github.com/users/kamalmarhubi/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-02-12T05:02:19Z","updated_at":"2016-03-06T19:55:13Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/nix-rust/nix/issues/comments/192974366","html_url":"https://github.com/nix-rust/nix/issues/264#issuecomment-192974366","issue_url":"https://api.github.com/repos/nix-rust/nix/issues/264","id":192974366,"user":{"login":"kamalmarhubi","id":50936,"avatar_url":"https://avatars.githubusercontent.com/u/50936?v=3","gravatar_id":"","url":"https://api.github.com/users/kamalmarhubi","html_url":"https://github.com/kamalmarhubi","followers_url":"https://api.github.com/users/kamalmarhubi/followers","following_url":"https://api.github.com/users/kamalmarhubi/following{/other_user}","gists_url":"https://api.github.com/users/kamalmarhubi/gists{/gist_id}","starred_url":"https://api.github.com/users/kamalmarhubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kamalmarhubi/subscriptions","organizations_url":"https://api.github.com/users/kamalmarhubi/orgs","repos_url":"https://api.github.com/users/kamalmarhubi/repos","events_url":"https://api.github.com/users/kamalmarhubi/events{/privacy}","received_events_url":"https://api.github.com/users/kamalmarhubi/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T19:55:13Z","updated_at":"2016-03-06T19:55:13Z","body":"**Mentored bug**\r\n\r\nThis is something the maintainers will be working on on and off, but it will take some time. It's a good place to start, and I'm happy to help anyone who wants to contribute patches towards it.\r\n\r\nThe intention is to remove all `extern` declarations from nix, and rely on them from the [libc crate](https://github.com/rust-lang/libc) instead.\r\n\r\nThis can be done a module at a time. In some cases, functions declared in nix are not yet in libc, so this may require some patches to libc. I've made a few PRs there, and have a good idea of where things belong, so I can help with those PRs as well.\r\n\r\n**Example PR** doing this for the `unistd` module: https://github.com/nix-rust/nix/pull/294"}}