llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[libc] Implement pathconf/fpathconf

Open SchrodingerZhu opened this issue 1 year ago • 2 comments

Provide portable way to get NAME_MAX or PATH_MAX. See also https://man7.org/linux/man-pages/man3/pathconf.3.html.

  • [ ] pathconf/fpathconf

These function itself may need:

  • [x] #85964

This will also deliver the following functions along the way:

  • [ ] statvfs/fstatvfs (POSIX API)

SchrodingerZhu avatar Mar 13 '24 18:03 SchrodingerZhu

@SchrodingerZhu, are you already working on it? Otherwise, I'd give it a shot.

robincaloudis avatar Mar 24 '24 09:03 robincaloudis

Hi, the statvfs/fstatvfs part is already in progress. After that, you can look into the pathconf and fpathconf part if you want.

You can check the design in bionic libc.

SchrodingerZhu avatar Mar 24 '24 13:03 SchrodingerZhu