{"id":13620499,"url":"https://github.com/dynamicheart/os-labs","last_synced_at":"2025-04-14T21:31:25.722Z","repository":{"id":75253931,"uuid":"124200085","full_name":"dynamicheart/os-labs","owner":"dynamicheart","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-17T07:26:32.000Z","size":2058,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"lab1","last_synced_at":"2024-08-01T21:44:30.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/dynamicheart.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}},"created_at":"2018-03-07T07:57:44.000Z","updated_at":"2018-06-24T08:08:09.000Z","dependencies_parsed_at":"2023-06-05T21:15:29.715Z","dependency_job_id":null,"html_url":"https://github.com/dynamicheart/os-labs","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/dynamicheart%2Fos-labs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicheart%2Fos-labs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicheart%2Fos-labs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicheart%2Fos-labs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dynamicheart","download_url":"https://codeload.github.com/dynamicheart/os-labs/tar.gz/refs/heads/lab1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223647939,"owners_count":17179348,"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-08-01T21:00:56.530Z","updated_at":"2024-11-08T07:30:29.708Z","avatar_url":"https://github.com/dynamicheart.png","language":null,"funding_links":[],"categories":["课程列表"],"sub_categories":["OS (jos lab, MIT 6.828 | chcore lab)"],"readme":"# JOS Lab1 \n\n**在提供的版本的代码中（老师提供的代码未做修改），目前发现了vprintfmt三个bug**\n\n1. 对于有符号类型的数字，其实就是d类型，负数是先打印负号，再调用printnum函数的，但是printnum函数中包含了打印padding的逻辑，因此右对齐的数字可能会出现如下情况的情况，符号和数字间有空格。\n\n```shell\n右对齐的负数:-             1\n```\n\n2. vprintfmt没有处理格式化字符串中空格的情况。空格只会对有符号类型(d)的数产生影响，而且如果有了+符号，那么空格符号会被忽视。\n\n3. 当左对齐符号'-'出现后，'0'符号会无效。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamicheart%2Fos-labs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynamicheart%2Fos-labs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamicheart%2Fos-labs/lists"}