2023-03-12 14:32:09 +00:00
|
|
|
/* sys/stat.h: stat() routine and friends. */
|
|
|
|
|
|
|
|
#ifndef _SYS_STAT_H
|
|
|
|
#define _SYS_STAT_H
|
|
|
|
|
2023-03-12 15:55:46 +00:00
|
|
|
#include <bits/modes.h>
|
2023-04-10 17:56:03 +00:00
|
|
|
#include <bits/struct_stat.h>
|
2023-03-12 14:32:09 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Create a directory. */
|
|
|
|
int mkdir(const char* path, mode_t mode);
|
|
|
|
|
2023-03-18 08:13:31 +00:00
|
|
|
/* Create a special file. */
|
|
|
|
int mknod(const char* path, mode_t mode, dev_t dev);
|
|
|
|
|
2023-05-11 17:40:34 +00:00
|
|
|
/* Change the mode bits of a file. */
|
|
|
|
int chmod(const char* path, mode_t mode);
|
|
|
|
|
2023-04-10 17:56:03 +00:00
|
|
|
#pragma GCC push_options
|
|
|
|
#pragma GCC diagnostic ignored "-Wshadow"
|
|
|
|
|
|
|
|
/* Retrieve information about a file. */
|
|
|
|
int stat(const char* path, struct stat* st);
|
|
|
|
|
|
|
|
#pragma GCC pop_options
|
|
|
|
|
|
|
|
/* Retrieve information about a file. */
|
|
|
|
int fstat(int fd, struct stat* st);
|
|
|
|
|
2023-05-01 18:00:43 +00:00
|
|
|
/* Retrieve information about a file. */
|
|
|
|
int fstatat(int dirfd, const char* path, struct stat* st, int flags);
|
|
|
|
|
2023-03-12 14:32:09 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|