mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibC: Support _PC_PATH_MAX in [f]pathconf
This commit is contained in:
parent
40daefd3dc
commit
17cf3c143a
2 changed files with 13 additions and 0 deletions
|
@ -413,6 +413,12 @@ long fpathconf(int fd, int name)
|
|||
{
|
||||
(void)fd;
|
||||
(void)name;
|
||||
|
||||
switch (name) {
|
||||
case _PC_PATH_MAX:
|
||||
return PATH_MAX;
|
||||
}
|
||||
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
|
@ -420,6 +426,12 @@ long pathconf(const char* path, int name)
|
|||
{
|
||||
(void)path;
|
||||
(void)name;
|
||||
|
||||
switch (name) {
|
||||
case _PC_PATH_MAX:
|
||||
return PATH_MAX;
|
||||
}
|
||||
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue