1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

LibC: Added _PC_VDISABLE option to fpathconf()

This was needed for vttest
This commit is contained in:
Brandon Scott 2019-12-01 04:34:34 -06:00 committed by Andreas Kling
parent 194f85431f
commit fd15c7e8db
2 changed files with 5 additions and 1 deletions

View file

@ -412,6 +412,8 @@ long fpathconf(int fd, int name)
switch (name) { switch (name) {
case _PC_PATH_MAX: case _PC_PATH_MAX:
return PATH_MAX; return PATH_MAX;
case _PC_VDISABLE:
return _POSIX_VDISABLE;
} }
ASSERT_NOT_REACHED(); ASSERT_NOT_REACHED();

View file

@ -117,7 +117,8 @@ int umount(const char* mountpoint);
enum { enum {
_PC_NAME_MAX, _PC_NAME_MAX,
_PC_PATH_MAX, _PC_PATH_MAX,
_PC_PIPE_BUF _PC_PIPE_BUF,
_PC_VDISABLE
}; };
#define HOST_NAME_MAX 64 #define HOST_NAME_MAX 64
@ -132,5 +133,6 @@ enum {
* range of values), but we do have process priorities. * range of values), but we do have process priorities.
*/ */
#define _POSIX_PRIORITY_SCHEDULING #define _POSIX_PRIORITY_SCHEDULING
#define _POSIX_VDISABLE '\0'
__END_DECLS __END_DECLS