mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
LibC: Added _PC_VDISABLE option to fpathconf()
This was needed for vttest
This commit is contained in:
parent
194f85431f
commit
fd15c7e8db
Notes:
sideshowbarker
2024-07-19 11:00:53 +09:00
Author: https://github.com/xeons Commit: https://github.com/SerenityOS/serenity/commit/fd15c7e8db8 Pull-request: https://github.com/SerenityOS/serenity/pull/833
2 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue