libc/unistd: move NAME_MAX/LINE_MAX/PATH_MAX define to unistd#15551
Conversation
|
[Experimental Bot, please feedback here] This PR appears to mostly meet the requirements, but is missing some key information. What's good:
What's missing/needs improvement:
In short: The PR needs to expand on the why for each change and provide more concrete details regarding the impact and testing performed. Simply stating "N/A" or "ci-check" is not sufficient for a thorough review. |
why not? |
Let me clarify further, should be"define", not "use"
|
c85b5ec to
f2eb0df
Compare
well, to me, it seems more natural to define kernel constants in kernel than libc. |
actually no one in the sched directory is using these definitions |
if you move them to fs, it might make sense. |
Most of the limit macros are Unix-specific and are more likely to be defined in libc unistd https://pubs.opengroup.org/onlinepubs/009696799/functions/fpathconf.html |
sorry, i don't understand your logic. |
I just need a more suitable place to define these macros, not sched. unistd is the best choice I see. If you think there is a better place, please suggest instead of constantly saying no. What I need is the method, not your challenge. |
Signed-off-by: chao an <anchao.archer@bytedance.com>
These options are unistd-specific and should not be filesystem dependent, and also not suitable for define in the sched directory. Signed-off-by: chao an <anchao.archer@bytedance.com>
i feel sched is a more natural place for them than libc. |
Sure, except for the sched directory, libc/fs is more reasonable. I think the reason why libc is better is that the limit value is frequently used in user space, so libc may be better. |
Summary
These options are unistd-specific and should not be filesystem dependent,
and also not suitable for define in the sched directory.
Signed-off-by: chao an anchao.archer@bytedance.com
Signed-off-by: chao an anchao.archer@bytedance.com
Signed-off-by: chao an anchao.archer@bytedance.com
Impact
N/A
Testing
ci-check