2023-03-11 16:45:20 +00:00
|
|
|
/* fcntl.h: File control. */
|
|
|
|
|
|
|
|
#ifndef _FCNTL_H
|
|
|
|
#define _FCNTL_H
|
|
|
|
|
2023-03-24 20:33:20 +00:00
|
|
|
#include <bits/fcntl.h>
|
2023-03-12 13:43:58 +00:00
|
|
|
#include <bits/open-flags.h>
|
2023-03-23 18:24:47 +00:00
|
|
|
#include <sys/types.h>
|
2023-03-12 13:43:58 +00:00
|
|
|
|
2023-03-11 16:45:20 +00:00
|
|
|
#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-11 16:45:20 +00:00
|
|
|
|
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);
|
|
|
|
|
2023-03-24 20:33:20 +00:00
|
|
|
/* Perform a file control operation. */
|
|
|
|
int fcntl(int fd, int cmd, ...);
|
|
|
|
|
2023-03-11 16:45:20 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|