Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
fcntl.h File Reference
#include <sys/types.h>
#include <sys/cdefs.h>
#include <stdio.h>

Go to the source code of this file.

Classes

struct  flock

Defines

#define O_RDONLY   0x0001 /* open for reading only */
#define O_WRONLY   0x0002 /* open for writing only */
#define O_RDWR   0x0000 /* open for reading and writing */
#define O_ACCMODE   0x0003 /* mask for above modes */
#define O_NONBLOCK   0x0004 /* no delay */
#define O_APPEND   0x0008 /* set append mode */
#define O_CREAT   0x0200 /* create if nonexistant */
#define O_TRUNC   0x0400 /* truncate to zero length */
#define O_EXCL   0x0800 /* error if already exists */
#define O_ALIAS   0x2000 /* Open alias file (if the file is an alias) */
#define O_RSRC   0x4000 /* Open the resource fork */
#define O_NOCTTY   0 /* don't assign controlling terminal */
#define FNDELAY   O_NONBLOCK /* compat */
#define F_DUPFD   0 /* duplicate file descriptor */
#define F_GETFD   1 /* get file descriptor flags */
#define F_SETFD   2 /* set file descriptor flags */
#define F_GETFL   3 /* get file status flags */
#define F_SETFL   4 /* set file status flags */
#define F_GETOWN   5 /* get SIGIO/SIGURG proc/pgrp */
#define F_SETOWN   6 /* set SIGIO/SIGURG proc/pgrp */
#define F_GETLK   7 /* get record locking information */
#define F_SETLK   8 /* set record locking information */
#define F_SETLKW   9 /* F_SETLK; wait if blocked */
#define FD_CLOEXEC   1 /* close-on-exec flag */
#define F_RDLCK   1 /* shared or read lock */
#define F_UNLCK   2 /* unlock */
#define F_WRLCK   3 /* exclusive or write lock */

Functions

__BEGIN_DECLS int open __P ((const char *, int,...))
int creat __P ((const char *,...))
int fcntl __P ((int, int,...))
FILEfdopen (int fildes, const char *type)

Class Documentation

struct flock

Definition at line 106 of file fcntl.h.

Class Members
off_t l_len
pid_t l_pid
off_t l_start
short l_type
short l_whence

Define Documentation

#define F_DUPFD   0 /* duplicate file descriptor */

Definition at line 83 of file fcntl.h.

#define F_GETFD   1 /* get file descriptor flags */

Definition at line 84 of file fcntl.h.

#define F_GETFL   3 /* get file status flags */

Definition at line 86 of file fcntl.h.

#define F_GETLK   7 /* get record locking information */

Definition at line 90 of file fcntl.h.

#define F_GETOWN   5 /* get SIGIO/SIGURG proc/pgrp */

Definition at line 88 of file fcntl.h.

#define F_RDLCK   1 /* shared or read lock */

Definition at line 98 of file fcntl.h.

Definition at line 85 of file fcntl.h.

#define F_SETFL   4 /* set file status flags */

Definition at line 87 of file fcntl.h.

#define F_SETLK   8 /* set record locking information */

Definition at line 91 of file fcntl.h.

#define F_SETLKW   9 /* F_SETLK; wait if blocked */

Definition at line 92 of file fcntl.h.

#define F_SETOWN   6 /* set SIGIO/SIGURG proc/pgrp */

Definition at line 89 of file fcntl.h.

#define F_UNLCK   2 /* unlock */

Definition at line 99 of file fcntl.h.

#define F_WRLCK   3 /* exclusive or write lock */

Definition at line 100 of file fcntl.h.

#define FD_CLOEXEC   1 /* close-on-exec flag */

Definition at line 95 of file fcntl.h.

#define FNDELAY   O_NONBLOCK /* compat */

Definition at line 75 of file fcntl.h.

#define O_ACCMODE   0x0003 /* mask for above modes */

Definition at line 57 of file fcntl.h.

#define O_ALIAS   0x2000 /* Open alias file (if the file is an alias) */

Definition at line 67 of file fcntl.h.

#define O_APPEND   0x0008 /* set append mode */

Definition at line 60 of file fcntl.h.

#define O_CREAT   0x0200 /* create if nonexistant */

Definition at line 61 of file fcntl.h.

#define O_EXCL   0x0800 /* error if already exists */

Definition at line 63 of file fcntl.h.

#define O_NOCTTY   0 /* don't assign controlling terminal */

Definition at line 72 of file fcntl.h.

#define O_NONBLOCK   0x0004 /* no delay */

Definition at line 59 of file fcntl.h.

#define O_RDONLY   0x0001 /* open for reading only */

Definition at line 54 of file fcntl.h.

#define O_RDWR   0x0000 /* open for reading and writing */

Definition at line 56 of file fcntl.h.

#define O_RSRC   0x4000 /* Open the resource fork */

Definition at line 68 of file fcntl.h.

#define O_TRUNC   0x0400 /* truncate to zero length */

Definition at line 62 of file fcntl.h.

#define O_WRONLY   0x0002 /* open for writing only */

Definition at line 55 of file fcntl.h.


Function Documentation

__BEGIN_DECLS int open __P ( (const char *, int,...)  )
int creat __P ( (const char *,...)  )
int fcntl __P ( (int, int,...)  )
FILE* fdopen ( int  fildes,
const char *  type 
)

Here is the caller graph for this function: