{"id":17817630,"url":"https://github.com/codelixir/syscalls","last_synced_at":"2025-04-02T09:13:53.871Z","repository":{"id":233798060,"uuid":"400472652","full_name":"codelixir/syscalls","owner":"codelixir","description":"Using system calls in C code to read/write to files/stdout/stderr. For OSN course, Monsoon 2021.","archived":false,"fork":false,"pushed_at":"2021-10-12T07:15:19.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T00:19:14.795Z","etag":null,"topics":["c","system-calls"],"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/codelixir.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":"2021-08-27T10:29:48.000Z","updated_at":"2024-09-14T20:02:15.000Z","dependencies_parsed_at":"2024-04-17T11:18:35.194Z","dependency_job_id":"21c9a37e-826d-4d05-9292-bae2575d75d7","html_url":"https://github.com/codelixir/syscalls","commit_stats":null,"previous_names":["codelixir/syscalls"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelixir%2Fsyscalls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelixir%2Fsyscalls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelixir%2Fsyscalls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codelixir%2Fsyscalls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codelixir","download_url":"https://codeload.github.com/codelixir/syscalls/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246785453,"owners_count":20833494,"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","system-calls"],"created_at":"2024-10-27T16:44:37.555Z","updated_at":"2025-04-02T09:13:53.852Z","avatar_url":"https://github.com/codelixir.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![forthebadge](https://forthebadge.com/images/badges/fo-real.svg)](https://forthebadge.com)\n\n# System Calls\n\nThe problem statements are given in [Assignment.pdf](Assignment.pdf).\n\nSome sample files are given in `sample` directory with [`test.txt`](sample/test.txt) as the input. The outputs are generated using:\n\n```bash\n$ gcc q1.c\n$ ./a.out test.txt\n```\n```bash\n$ gcc q2.c\n$ ./a.out test.txt 6 3\n```\n```bash\n$ gcc q1.c\n$ ./a.out test.txt \u003e 3.txt\n```\n\n## Assumptions and Remarks\n\n### Question 1\n\n* In case of missing arguments, program exits. In case of additional arguments, program continues by ignoring extra arguments. In both cases, error messages are output to the terminal.\n* If the directory `Assignment/` already exists, permissions aren't being overridden because the assignment mentioned to use the existing directory. Same for files; content is being overridden, permissions aren't.\n\n### Question 2\n\n* Same as question 1\n* Last 2 arguments are single digit positive integers. (Throws error for non-integers and negative integers).\n* The file is exactly divisible into the input number of parts\n\n### Question 3\n\n* Same as Q1 Point 1\n* `Assignment/` directory, if exists, is present inside the working directory.\n\n---\n*These codes were written as a part of the Operating Systems and Networks course, Monsoon 2021.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelixir%2Fsyscalls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodelixir%2Fsyscalls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelixir%2Fsyscalls/lists"}