Luna/libc/include/fcntl.h
apio bab9600be5
Some checks failed
continuous-integration/drone/push Build is failing
libc: Add creat()
2023-03-19 19:21:36 +01:00

24 lines
390 B
C

/* fcntl.h: File control. */
#ifndef _FCNTL_H
#define _FCNTL_H
#include <bits/open-flags.h>
#ifdef __cplusplus
extern "C"
{
#endif
/* Open a file path and return a file descriptor to it. */
int open(const char* path, int flags, ...);
/* Create a file and return a file descriptor to it. */
int creat(const char* path, mode_t mode);
#ifdef __cplusplus
}
#endif
#endif