Luna/libc/include/sys/stat.h
apio 13c9caa856
All checks were successful
continuous-integration/drone/push Build is passing
kernel+libc: Add stat() + fstat()
2023-04-10 19:56:03 +02:00

37 lines
684 B
C

/* sys/stat.h: stat() routine and friends. */
#ifndef _SYS_STAT_H
#define _SYS_STAT_H
#include <bits/modes.h>
#include <bits/struct_stat.h>
#include <sys/types.h>
#ifdef __cplusplus
extern "C"
{
#endif
/* Create a directory. */
int mkdir(const char* path, mode_t mode);
/* Create a special file. */
int mknod(const char* path, mode_t mode, dev_t dev);
#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);
#ifdef __cplusplus
}
#endif
#endif