RT-Thread / RT-Thread/rt-thread

sysret_t sys_open(const char *name, int flag, ...)

Open
#7,108 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
12.2k
Forks
5.4k
Avg merge
4d 12h
Merged PRs (30d)
40

Description

master:分支
commitID:4ab11d5bbccb8386267400f22530ccaf27cdb0b2

lwp_syscall.c中的sys_open(const char *name, int flag, ...)函数没有保留mode参数,导致移植或自己实现文件系统时比较麻烦。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in lwp_syscall.c at sys_open(const char *name, int flag, ...), and inspect how its variadic arguments are handled. Check the expected open mode behavior for portability and custom filesystems, then ensure the mode argument is retained rather than lost. Done means callers can provide a mode successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.