mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
LibC: Move stat(), lstat() and fstat() to <sys/stat.h>
Dr. POSIX says that's where they belong.
This commit is contained in:
parent
9e55162e9b
commit
3a13c749cd
4 changed files with 30 additions and 31 deletions
|
@ -61,6 +61,9 @@ int chmod(const char* pathname, mode_t);
|
|||
int fchmod(int fd, mode_t);
|
||||
int mkdir(const char* pathname, mode_t);
|
||||
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);
|
||||
|
||||
inline dev_t makedev(unsigned int major, unsigned int minor) { return (minor & 0xffu) | (major << 8u) | ((minor & ~0xffu) << 12u); }
|
||||
inline unsigned int major(dev_t dev) { return (dev & 0xfff00u) >> 8u; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue