BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / 2e2f919ac415da5f75aeb6b83981b659fa5072eb / include / fcntl.h

// Related

OrionLibC

Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)
#ifndef _FCNTL_H
#define _FCNTL_H

#include <sys/types.h>

#define O_ACCMODE 0003
#define O_RDONLY    00
#define O_WRONLY    01
#define O_RDWR      02

#define O_CREATE 0100
#define O_TRUNC  0200

#ifdef __cplusplus
extern "C" {
#endif

int open(const char *name, int flags, ...); /* mode_t mode */
int create(const char *name, mode_t mode);

#ifdef __cplusplus
}
#endif

#endif