Luna/libc/include/fcntl.h

24 lines
390 B
C
Raw Normal View History

/* 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. */
2023-03-12 15:55:46 +00:00
int open(const char* path, int flags, ...);
2023-03-19 18:21:36 +00:00
/* Create a file and return a file descriptor to it. */
int creat(const char* path, mode_t mode);
#ifdef __cplusplus
}
#endif
#endif