{"id":16843790,"url":"https://github.com/stevelauc/understanding-unix-linux-programming","last_synced_at":"2025-07-08T16:33:17.251Z","repository":{"id":50435896,"uuid":"448792925","full_name":"SteveLauC/Understanding-Unix-Linux-Programming","owner":"SteveLauC","description":"Source code of Understanding Unix/Linux Programming. The book provides example code in C, I would like to replicate it in Rust.","archived":false,"fork":false,"pushed_at":"2022-09-27T09:10:07.000Z","size":6044,"stargazers_count":83,"open_issues_count":0,"forks_count":7,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-18T08:48:09.272Z","etag":null,"topics":["c","linux","rust","system-programming","unix"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SteveLauC.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}},"created_at":"2022-01-17T07:25:44.000Z","updated_at":"2025-02-18T02:45:21.000Z","dependencies_parsed_at":"2022-08-12T21:20:36.455Z","dependency_job_id":null,"html_url":"https://github.com/SteveLauC/Understanding-Unix-Linux-Programming","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/SteveLauC%2FUnderstanding-Unix-Linux-Programming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveLauC%2FUnderstanding-Unix-Linux-Programming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveLauC%2FUnderstanding-Unix-Linux-Programming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveLauC%2FUnderstanding-Unix-Linux-Programming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SteveLauC","download_url":"https://codeload.github.com/SteveLauC/Understanding-Unix-Linux-Programming/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244912800,"owners_count":20530764,"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":["c","linux","rust","system-programming","unix"],"created_at":"2024-10-13T12:53:41.114Z","updated_at":"2025-03-22T05:31:16.949Z","avatar_url":"https://github.com/SteveLauC.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Understanding-Unix-Linux-Programming\nSource code of Understanding Unix/Linux Programming. The book provides example code in C, I would like to replicate it in Rust.\n\n### Environment\n```shell\n$ uname -a\nLinux pop-os 5.17.5-76051705-generic #202204271406~1651504840~22.04~63e51bd SMP PREEMPT Mon May 2 15: x86_64 x86_64 x86_64 GNU/Linux\n$ ldd --version\nldd (Ubuntu GLIBC 2.35-0ubuntu3) 2.35\n$ gcc --version\ngcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0\n$ rustc --version\nrustc 1.61.0 (fe5b13d68 2022-05-18)\n```\n\n\u003e For the version info of external crate used, you can find it in `Cargo.toml` in each \ncorresponding project folder.\n\n### Note\nFew rust implementations are buggy or may not work at all. Any help would be much\nappreciated.\n\n| project| state | reason or bug behaviour |\n| -------|-------|--------|\n| [Ch7 03.ticker_demo](https://github.com/SteveLauC/Understanding-Unix-Linux-Programming/blob/main/Ch7/03.ticker_demo/ticker_demo.rs)| Unimplemented| `getitimer` and `setitimer` are missing in crate `libc`|\n| [Ch7 05.bounce](https://github.com/SteveLauC/Understanding-Unix-Linux-Programming/tree/main/Ch7/05.bounce)|Unimplemented|`getitimer` and `setitimer` are missing in crate `libc`|\n| [Ch12 01.socklib socklib.rs](https://github.com/SteveLauC/Understanding-Unix-Linux-Programming/blob/main/Ch12/01.socklib/socklib-rs/src/lib.rs)|Unimplemented| socklib.c is just some encapsulations of POSIX socket APIs, there is no need to do this in Rust cuz the API provided by std is pretty good|\n| [Ch14 04.twordcount twordcount4-rs](https://github.com/SteveLauC/Understanding-Unix-Linux-Programming/blob/main/Ch14/04.twordcount/twordcount4-rs/src/main.rs)|Unimplemented|I don't know how to use condition variable in Rust|\n| [Ch14 07.tanimate tanimate-rs](https://github.com/SteveLauC/Understanding-Unix-Linux-Programming/blob/main/Ch14/07.tanimate/tanimate-rs/src/main.rs)|does not work|IDK:(|\n\n\nEnjoy:)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevelauc%2Funderstanding-unix-linux-programming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevelauc%2Funderstanding-unix-linux-programming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevelauc%2Funderstanding-unix-linux-programming/lists"}