mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:27:34 +00:00
Kernel+LibC: Add fstatat
The function fstatat can do the same thing as the stat and lstat functions. However, it can be passed the file descriptor of a directory which will be used when as the starting point for relative paths. This is contrary to stat and lstat which use the current working directory as the starting for relative paths.
This commit is contained in:
parent
875116c3e5
commit
e7310ba45a
6 changed files with 29 additions and 5 deletions
|
@ -77,5 +77,6 @@ int mkfifo(const char* pathname, mode_t);
|
|||
int fstat(int fd, struct stat* statbuf);
|
||||
int lstat(const char* path, struct stat* statbuf);
|
||||
int stat(const char* path, struct stat* statbuf);
|
||||
int fstatat(int fd, const char* path, struct stat* statbuf, int flags);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue