Fennix  1.0.0
Full Documentation
Loading...
Searching...
No Matches
fcntl.h File Reference

Go to the source code of this file.

Data Structures

struct  f_owner_ex
 
struct  flock
 

Macros

#define F_DUPFD   0x1
 
#define F_DUPFD_CLOEXEC   0x101
 
#define F_DUPFD_CLOFORK   0x201
 
#define F_GETFD   0x2
 
#define F_SETFD   0x3
 
#define F_GETFL   0x4
 
#define F_SETFL   0x5
 
#define F_GETLK   0x6
 
#define F_SETLK   0x7
 
#define F_SETLKW   0x8
 
#define F_OFD_GETLK   0x9
 
#define F_OFD_SETLK   0xA
 
#define F_OFD_SETLKW   0xB
 
#define F_GETOWN   0xC
 
#define F_GETOWN_EX   0xD
 
#define F_SETOWN   0xE
 
#define F_SETOWN_EX   0xF
 
#define FD_CLOEXEC   0x1
 
#define FD_CLOFORK   0x2
 
#define F_RDLCK   0x1
 
#define F_UNLCK   0x2
 
#define F_WRLCK   0x3
 
#define F_OWNER_PID   0
 
#define F_OWNER_PGRP   1
 
#define O_CLOEXEC   02000000
 
#define O_CLOFORK   04000000
 
#define O_CREAT   0x8
 
#define O_DIRECTORY   0200000
 
#define O_EXCL   0x20
 
#define O_NOCTTY   0x40
 
#define O_NOFOLLOW   0400000
 
#define O_TRUNC   0x400
 
#define O_TTY_INIT   0x800
 
#define O_APPEND   0x4
 
#define O_DSYNC   0x10
 
#define O_NONBLOCK   0x80
 
#define O_RSYNC   0x100
 
#define O_SYNC   0x200
 
#define O_ACCMODE   0x3
 
#define O_EXEC   0x4
 
#define O_RDONLY   0x1
 
#define O_RDWR   0x3
 
#define O_SEARCH   0x10
 
#define O_WRONLY   0x2
 
#define AT_FDCWD
 
#define AT_EACCESS
 
#define AT_SYMLINK_NOFOLLOW
 
#define AT_SYMLINK_FOLLOW
 
#define AT_REMOVEDIR
 
#define POSIX_FADV_DONTNEED
 
#define POSIX_FADV_NOREUSE
 
#define POSIX_FADV_NORMAL
 
#define POSIX_FADV_RANDOM
 
#define POSIX_FADV_SEQUENTIAL
 
#define POSIX_FADV_WILLNEED
 

Typedefs

typedef struct f_owner_ex f_owner_ex
 
typedef struct flock flock
 

Data Structure Documentation

◆ f_owner_ex

struct f_owner_ex

Definition at line 94 of file fcntl.h.

Data Fields
pid_t pid
int type

◆ flock

struct flock

Definition at line 100 of file fcntl.h.

Data Fields
off_t l_len
pid_t l_pid
off_t l_start
short l_type
short l_whence

Macro Definition Documentation

◆ AT_EACCESS

#define AT_EACCESS

Definition at line 82 of file fcntl.h.

◆ AT_FDCWD

#define AT_FDCWD

Definition at line 81 of file fcntl.h.

◆ AT_REMOVEDIR

#define AT_REMOVEDIR

Definition at line 85 of file fcntl.h.

◆ AT_SYMLINK_FOLLOW

#define AT_SYMLINK_FOLLOW

Definition at line 84 of file fcntl.h.

◆ AT_SYMLINK_NOFOLLOW

#define AT_SYMLINK_NOFOLLOW

Definition at line 83 of file fcntl.h.

◆ F_DUPFD

#define F_DUPFD   0x1

Definition at line 26 of file fcntl.h.

◆ F_DUPFD_CLOEXEC

#define F_DUPFD_CLOEXEC   0x101

Definition at line 27 of file fcntl.h.

◆ F_DUPFD_CLOFORK

#define F_DUPFD_CLOFORK   0x201

Definition at line 28 of file fcntl.h.

◆ F_GETFD

#define F_GETFD   0x2

Definition at line 29 of file fcntl.h.

◆ F_GETFL

#define F_GETFL   0x4

Definition at line 31 of file fcntl.h.

◆ F_GETLK

#define F_GETLK   0x6

Definition at line 33 of file fcntl.h.

◆ F_GETOWN

#define F_GETOWN   0xC

Definition at line 39 of file fcntl.h.

◆ F_GETOWN_EX

#define F_GETOWN_EX   0xD

Definition at line 40 of file fcntl.h.

◆ F_OFD_GETLK

#define F_OFD_GETLK   0x9

Definition at line 36 of file fcntl.h.

◆ F_OFD_SETLK

#define F_OFD_SETLK   0xA

Definition at line 37 of file fcntl.h.

◆ F_OFD_SETLKW

#define F_OFD_SETLKW   0xB

Definition at line 38 of file fcntl.h.

◆ F_OWNER_PGRP

#define F_OWNER_PGRP   1

Definition at line 54 of file fcntl.h.

◆ F_OWNER_PID

#define F_OWNER_PID   0

Definition at line 53 of file fcntl.h.

◆ F_RDLCK

#define F_RDLCK   0x1

Definition at line 48 of file fcntl.h.

◆ F_SETFD

#define F_SETFD   0x3

Definition at line 30 of file fcntl.h.

◆ F_SETFL

#define F_SETFL   0x5

Definition at line 32 of file fcntl.h.

◆ F_SETLK

#define F_SETLK   0x7

Definition at line 34 of file fcntl.h.

◆ F_SETLKW

#define F_SETLKW   0x8

Definition at line 35 of file fcntl.h.

◆ F_SETOWN

#define F_SETOWN   0xE

Definition at line 41 of file fcntl.h.

◆ F_SETOWN_EX

#define F_SETOWN_EX   0xF

Definition at line 42 of file fcntl.h.

◆ F_UNLCK

#define F_UNLCK   0x2

Definition at line 49 of file fcntl.h.

◆ F_WRLCK

#define F_WRLCK   0x3

Definition at line 50 of file fcntl.h.

◆ FD_CLOEXEC

#define FD_CLOEXEC   0x1

Definition at line 44 of file fcntl.h.

◆ FD_CLOFORK

#define FD_CLOFORK   0x2

Definition at line 45 of file fcntl.h.

◆ O_ACCMODE

#define O_ACCMODE   0x3

Definition at line 73 of file fcntl.h.

◆ O_APPEND

#define O_APPEND   0x4

Definition at line 67 of file fcntl.h.

◆ O_CLOEXEC

#define O_CLOEXEC   02000000

Definition at line 57 of file fcntl.h.

◆ O_CLOFORK

#define O_CLOFORK   04000000

Definition at line 58 of file fcntl.h.

◆ O_CREAT

#define O_CREAT   0x8

Definition at line 59 of file fcntl.h.

◆ O_DIRECTORY

#define O_DIRECTORY   0200000

Definition at line 60 of file fcntl.h.

◆ O_DSYNC

#define O_DSYNC   0x10

Definition at line 68 of file fcntl.h.

◆ O_EXCL

#define O_EXCL   0x20

Definition at line 61 of file fcntl.h.

◆ O_EXEC

#define O_EXEC   0x4

Definition at line 75 of file fcntl.h.

◆ O_NOCTTY

#define O_NOCTTY   0x40

Definition at line 62 of file fcntl.h.

◆ O_NOFOLLOW

#define O_NOFOLLOW   0400000

Definition at line 63 of file fcntl.h.

◆ O_NONBLOCK

#define O_NONBLOCK   0x80

Definition at line 69 of file fcntl.h.

◆ O_RDONLY

#define O_RDONLY   0x1

Definition at line 76 of file fcntl.h.

◆ O_RDWR

#define O_RDWR   0x3

Definition at line 77 of file fcntl.h.

◆ O_RSYNC

#define O_RSYNC   0x100

Definition at line 70 of file fcntl.h.

◆ O_SEARCH

#define O_SEARCH   0x10

Definition at line 78 of file fcntl.h.

◆ O_SYNC

#define O_SYNC   0x200

Definition at line 71 of file fcntl.h.

◆ O_TRUNC

#define O_TRUNC   0x400

Definition at line 64 of file fcntl.h.

◆ O_TTY_INIT

#define O_TTY_INIT   0x800

Definition at line 65 of file fcntl.h.

◆ O_WRONLY

#define O_WRONLY   0x2

Definition at line 79 of file fcntl.h.

◆ POSIX_FADV_DONTNEED

#define POSIX_FADV_DONTNEED

Definition at line 87 of file fcntl.h.

◆ POSIX_FADV_NOREUSE

#define POSIX_FADV_NOREUSE

Definition at line 88 of file fcntl.h.

◆ POSIX_FADV_NORMAL

#define POSIX_FADV_NORMAL

Definition at line 89 of file fcntl.h.

◆ POSIX_FADV_RANDOM

#define POSIX_FADV_RANDOM

Definition at line 90 of file fcntl.h.

◆ POSIX_FADV_SEQUENTIAL

#define POSIX_FADV_SEQUENTIAL

Definition at line 91 of file fcntl.h.

◆ POSIX_FADV_WILLNEED

#define POSIX_FADV_WILLNEED

Definition at line 92 of file fcntl.h.

Typedef Documentation

◆ f_owner_ex

typedef struct f_owner_ex f_owner_ex

◆ flock

typedef struct flock flock