Luna/libc/include/fcntl.h
apio 770286a19d
All checks were successful
continuous-integration/drone/push Build is passing
kernel+libc: Implement fcntl() for F_DUPFD and F_DUPFD_CLOEXEC
2023-03-24 21:33:20 +01:00

29 lines
519 B
C

/* fcntl.h: File control. */
#ifndef _FCNTL_H
#define _FCNTL_H
#include <bits/fcntl.h>
#include <bits/open-flags.h>
#include <sys/types.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);
/* Perform a file control operation. */
int fcntl(int fd, int cmd, ...);
#ifdef __cplusplus
}
#endif
#endif