mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Utilities: Add pathchk
This commit is contained in:
parent
ac98dc4f7c
commit
e0188d27de
Notes:
sideshowbarker
2024-07-18 19:10:03 +09:00
Author: https://github.com/bcoles
Commit: e0188d27de
Pull-request: https://github.com/SerenityOS/serenity/pull/6466
Reviewed-by: https://github.com/bgianfo
2 changed files with 100 additions and 0 deletions
|
@ -591,6 +591,8 @@ int mknod(const char* pathname, mode_t mode, dev_t dev)
|
|||
long fpathconf([[maybe_unused]] int fd, [[maybe_unused]] int name)
|
||||
{
|
||||
switch (name) {
|
||||
case _PC_NAME_MAX:
|
||||
return NAME_MAX;
|
||||
case _PC_PATH_MAX:
|
||||
return PATH_MAX;
|
||||
case _PC_VDISABLE:
|
||||
|
@ -603,6 +605,8 @@ long fpathconf([[maybe_unused]] int fd, [[maybe_unused]] int name)
|
|||
long pathconf([[maybe_unused]] const char* path, int name)
|
||||
{
|
||||
switch (name) {
|
||||
case _PC_NAME_MAX:
|
||||
return NAME_MAX;
|
||||
case _PC_PATH_MAX:
|
||||
return PATH_MAX;
|
||||
case _PC_PIPE_BUF:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue