BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / 03048a95d88cc7a78171393371f5c22a0250a014 / 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