BarryServer : Git

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

// Related

OrionLibC

Barry Importing existing Orion LibC 03048a9 (2 years, 3 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