1
Fork 0
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:
Conrad Pankoff 2019-09-02 15:36:22 +10:00 committed by Andreas Kling
parent 40daefd3dc
commit 17cf3c143a
2 changed files with 13 additions and 0 deletions

View file

@ -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();
}