{"id":21842376,"url":"https://github.com/frontear/mylloc","last_synced_at":"2026-05-21T05:32:13.698Z","repository":{"id":246906046,"uuid":"824318562","full_name":"Frontear/mylloc","owner":"Frontear","description":"Simple custom implementation of malloc(3) for educational purposes.","archived":false,"fork":false,"pushed_at":"2024-07-06T15:58:22.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T11:26:45.810Z","etag":null,"topics":["educational","malloc","nix"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Frontear.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":"2024-07-04T21:18:59.000Z","updated_at":"2024-07-06T15:58:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"07267235-7117-41c8-be09-a8a11d9b1c2b","html_url":"https://github.com/Frontear/mylloc","commit_stats":null,"previous_names":["frontear/mylloc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontear%2Fmylloc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontear%2Fmylloc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontear%2Fmylloc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frontear%2Fmylloc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frontear","download_url":"https://codeload.github.com/Frontear/mylloc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244825653,"owners_count":20516592,"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":["educational","malloc","nix"],"created_at":"2024-11-27T22:11:47.926Z","updated_at":"2026-05-21T05:32:08.673Z","avatar_url":"https://github.com/Frontear.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mylloc\nSimple custom implementation of `malloc(3)` for educational purposes.\n\n## Table Of Contents\n- [Building](#building)\n- [Installing + Linking](#installing--linking)\n- [License](#license)\n\n## Building\nStart by cloning the repository via `git clone https://github.com/Frontear/mylloc.git`.\n\n- If GNU Make: `prefix=result make install`\n- If Nix/NixOS: `nix build .#default`\n\nThe final shared library and include headers will be in `results/`:\n```\nresult\n├── include\n│  └── fmalloc.h\n└── lib\n   └── libmylloc.so\n```\n\n## Installing + Linking\nIf you're running a standard Linux distribution, `sudo make install` will be enough.\nYou can then link it via `-lmylloc`:\n```console\n$ $CC -o my-app -lmylloc src/main.c\n$ ./my-app\nsegmentation fault (core dumped) ./my-app\n```\n\nIf you are running NixOS, you will need to attach this project to your package `nativeBuildInputs`.\nYou can see a flake example of this here:\n```nix\n# flake.nix\n{\n  inputs.nixpkgs.url = \"github:NixOS/nixpkgs/nixos-unstable\";\n  inputs.mylloc.url = \"github:Frontear/mylloc\";\n\n  outputs = { nixpkgs, mylloc, ... }: {\n    packages.\"x86_64-linux\".default = nixpkgs.legacyPackages.\"x86_64-linux\".callPackage ./package.nix { mylloc = mylloc.packages.\"x86_64-linux\".default; };\n  };\n}\n\n# package.nix\n{\n  stdenv,\n  mylloc,\n}:\nstdenv.mkDerivation {\n  nativeBuildInputs = [ mylloc ];\n  \n  # ...\n}\n```\n\n## License\nAll code in this repo is subject to the GNU General Public License v3.0. Please be mindful of this when forking, download, and redistributing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontear%2Fmylloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrontear%2Fmylloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrontear%2Fmylloc/lists"}