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
Notes: sideshowbarker 2024-07-19 11:00:53 +09:00
2 changed files with 5 additions and 1 deletions

View file

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

View file

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