oscomp / oscomp/testsuits-for-oskernel
初赛测例中定义的 `O_DIRECTORY` 似乎不正确
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 159
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/oscomp/testsuits-for-oskernel/blob/pre-2024/riscv-syscalls-testing/user/include/stddef.h#L60
下面是 musl 的定义,不过它是八进制的,对应十六进制实际是 0x10000
linux 的定义同 musl:https://github.com/torvalds/linux/blob/a38297e3fb012ddfa7ce0321a7e5a8daeb1872b6/include/uapi/asm-generic/fcntl.h#L54
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open user/include/stddef.h at line 60 and compare the O_DIRECTORY definition with the musl and Linux references linked in the issue. Update the constant to the correct value, then run the relevant syscall tests to confirm directory-opening behavior uses the expected flag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100