{"id":26514721,"url":"https://github.com/lioccoumd/ournix","last_synced_at":"2026-04-11T21:13:47.016Z","repository":{"id":275645862,"uuid":"926738204","full_name":"LIoccoUMD/Ournix","owner":"LIoccoUMD","description":"This project implements a touch function for a simple filesystem in C. It allows creating new files while ensuring proper structure and validation. The implementation includes memory management, pointer handling, and directory management. The project also includes a testable main function for demonstration.","archived":false,"fork":false,"pushed_at":"2025-02-13T18:46:53.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T08:49:04.745Z","etag":null,"topics":["c","filesystem","git","mock","unix"],"latest_commit_sha":null,"homepage":"","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/LIoccoUMD.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,"publiccode":null,"codemeta":null}},"created_at":"2025-02-03T19:20:57.000Z","updated_at":"2025-02-13T19:22:47.000Z","dependencies_parsed_at":"2025-03-21T05:41:26.242Z","dependency_job_id":null,"html_url":"https://github.com/LIoccoUMD/Ournix","commit_stats":null,"previous_names":["lioccoumd/ournix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LIoccoUMD/Ournix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIoccoUMD%2FOurnix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIoccoUMD%2FOurnix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIoccoUMD%2FOurnix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIoccoUMD%2FOurnix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIoccoUMD","download_url":"https://codeload.github.com/LIoccoUMD/Ournix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIoccoUMD%2FOurnix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31695568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T20:18:30.949Z","status":"ssl_error","status_checked_at":"2026-04-11T20:18:29.982Z","response_time":54,"last_error":"SSL_read: 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":["c","filesystem","git","mock","unix"],"created_at":"2025-03-21T05:29:11.571Z","updated_at":"2026-04-11T21:13:46.975Z","avatar_url":"https://github.com/LIoccoUMD.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ournix\n\nThis project implements a touch function for a simple filesystem in C. It allows creating new files while ensuring proper structure and validation. The implementation includes memory management, pointer handling, and directory management. The project also includes a testable main function for demonstration.\n\n## Mock Unix Filesystem\n\nThis project implements a basic mock Unix-style filesystem in C. It simulates file creation using a **touch** function, which allows users to create new files while maintaining directory structure and validation.\n\n### Features\n\n- **Unix-like Hierarchical Structure**: Files are organized under directories with parent-child relationships.\n- **Memory Management**: Uses dynamic memory allocation to create and manage file structures.\n- **File Validation**: Ensures that filenames are valid and do not contain restricted characters (e.g., `/`, `.`, `..`).\n- **Directory Management**: Supports subdirectories and file linking within the current working directory.\n- **Timestamp Updates**: Simulates file system behavior by incrementing timestamps upon file creation.\n\n### Implementation Details\n\n- **file_system struct**: Represents files and directories, storing metadata such as:\n  - Name\n  - Type\n  - Parent\n  - Children\n- **Ournix struct**: Acts as the filesystem, tracking the current directory.\n- **touch function**: \n  - Ensures files are created correctly and inserted into the directory structure.\n  - Avoids duplicates within the same directory.\n- **main() function**: Demonstrates the functionality by:\n  - Initializing a root directory \n  - Creating sample files for testing purposes.\n\nThis project serves as a foundation for understanding file system structures and operations in C.\n\n## Usage\n\nTo run and test this filesystem:\n\n1. Clone this repository:\n   ```sh\n   git clone [https://github.com/LIoccoUMD/Ournix.git]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flioccoumd%2Fournix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flioccoumd%2Fournix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flioccoumd%2Fournix/lists"}