2023-03-11 17:45:20 +01:00
|
|
|
/* fcntl.h: File control. */
|
|
|
|
|
|
|
|
#ifndef _FCNTL_H
|
|
|
|
#define _FCNTL_H
|
|
|
|
|
2023-04-15 20:26:15 +02:00
|
|
|
#include <bits/atfile.h>
|
2023-03-24 21:33:20 +01:00
|
|
|
#include <bits/fcntl.h>
|
2023-03-12 14:43:58 +01:00
|
|
|
#include <bits/open-flags.h>
|
2023-03-23 19:24:47 +01:00
|
|
|
#include <sys/types.h>
|
2023-03-12 14:43:58 +01:00
|
|
|
|
2023-03-11 17:45:20 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Open a file path and return a file descriptor to it. */
|
2023-03-12 16:55:46 +01:00
|
|
|
int open(const char* path, int flags, ...);
|
2023-03-11 17:45:20 +01:00
|
|
|
|
2023-03-19 19:21:36 +01:00
|
|
|
/* Create a file and return a file descriptor to it. */
|
|
|
|
int creat(const char* path, mode_t mode);
|
|
|
|
|
2023-03-24 21:33:20 +01:00
|
|
|
/* Perform a file control operation. */
|
|
|
|
int fcntl(int fd, int cmd, ...);
|
|
|
|
|
2023-03-11 17:45:20 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|