Skip to content

Instantly share code, notes, and snippets.

🤔
.

Jacob Garby j4cobgarby

🤔
.
Block or report user

Report or block j4cobgarby

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Zhangerr
Zhangerr / fcntl.h
Created Jul 17, 2013
Flags for the linux syscall open in /usr/include/bits/fcntl.h
View fcntl.h
#define O_ACCMODE 0003
#define O_RDONLY 00
#define O_WRONLY 01
#define O_RDWR 02
#define O_CREAT 0100 /* not fcntl */
#define O_EXCL 0200 /* not fcntl */
#define O_NOCTTY 0400 /* not fcntl */
#define O_TRUNC 01000 /* not fcntl */
#define O_APPEND 02000
#define O_NONBLOCK 04000
You can’t perform that action at this time.