{"id":18458575,"url":"https://github.com/softwaresystemslaboratory/systems-code-examples","last_synced_at":"2025-04-08T05:34:23.466Z","repository":{"id":49336836,"uuid":"146691752","full_name":"SoftwareSystemsLaboratory/systems-code-examples","owner":"SoftwareSystemsLaboratory","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-14T15:42:52.000Z","size":320,"stargazers_count":32,"open_issues_count":0,"forks_count":18,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-23T06:51:10.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SoftwareSystemsLaboratory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-08-30T03:39:05.000Z","updated_at":"2025-01-29T00:03:22.000Z","dependencies_parsed_at":"2024-01-13T04:58:51.602Z","dependency_job_id":"37aaaf5c-4740-4f8f-b7b8-1c11fd09abab","html_url":"https://github.com/SoftwareSystemsLaboratory/systems-code-examples","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftwareSystemsLaboratory%2Fsystems-code-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftwareSystemsLaboratory%2Fsystems-code-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftwareSystemsLaboratory%2Fsystems-code-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoftwareSystemsLaboratory%2Fsystems-code-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SoftwareSystemsLaboratory","download_url":"https://codeload.github.com/SoftwareSystemsLaboratory/systems-code-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785919,"owners_count":20995641,"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":[],"created_at":"2024-11-06T08:19:08.489Z","updated_at":"2025-04-08T05:34:18.448Z","avatar_url":"https://github.com/SoftwareSystemsLaboratory.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Build Status\n--------------\n\n[![OS Examples](https://github.com/SoftwareSystemsLaboratory/systems-code-examples/actions/workflows/cmake.yml/badge.svg)](https://github.com/SoftwareSystemsLaboratory/systems-code-examples/actions/workflows/cmake.yml)\n\nSynopsis\n---------\n\nA number of example programs to accompany the [os.cs.luc.edu](https://os.cs.luc.edu) lecture notes for the Operating Systems course at Loyola University Chicago.\n\nRecent Developments\n----------------------\n\n- Updated CMake build process. All examples are driven by a top-level `CMakeLists.txt`. CMake is pretty awesome. I just don't have the time to write Makefiles by hand, and I never enjoyed working with autoconf.\n\n- Establish foundation for using `GoogleTest`. \n\n- Modular structure to allow various examples to be standalone programs, possibly with internal library dependencies. \n\n- Many new examples with *pthreads*.\n\n\nDebian/Linux/GNU Systems\n-------------------------\n\n- `git clone https://github.com/SoftwareSystemsLaboratory/systems-code-examples`\n- `apt install build-essential cmake`\n- Install GoogleTest using instructions at https://github.com/SoftwareSystemsLaboratory/googletest-mva.\n- `cd systems-code-examples`\n- `mkdir build`\n- `cd build`\n- `cmake ..`\n- `make`\n\nOS X via Homebrew\n------------------\n\nWe only provide limited support for OS X and Homebrew at this time.\nThe core examples from https://os.cs.luc.edu work. However, some of the newer examples rely on some GNU-specific (and sometimes GNU-only) features that don't seem to have a clear equivalent on OS X (even via Homebrew).\nI'm still working on it.\n\nNevertheless, if you want to try, do the following:\n\n\n- `git clone https://github.com/SoftwareSystemsLaboratory/systems-code-examples`\n- `brew install cmake gcc@11`\n- Install GoogleTest using instructions at https://github.com/SoftwareSystemsLaboratory/googletest-mva.\n- `cd systems-code-examples`\n- `mkdir build`\n- `cd build`\n- `cmake -DCMAKE_C_COMPILER=$(which gcc-11) -DCMAKE_CXX_COMPILER=$(which g++-11) ..`\n- `make`\n\nHopefully, by end of the Fall semester, I will be able to get the 5 pesky examples to build/run on OS X.\nIt's not a matter of *if* but *when*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwaresystemslaboratory%2Fsystems-code-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftwaresystemslaboratory%2Fsystems-code-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwaresystemslaboratory%2Fsystems-code-examples/lists"}