fcntl.h File Reference

#include <sys/types.h>

Include dependency graph for fcntl.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  flock

Defines

#define F_DUPFD   0
#define F_GETFD   1
#define F_SETFD   2
#define F_GETFL   3
#define F_SETFL   4
#define F_GETLK   5
#define F_SETLK   6
#define F_SETLKW   7
#define F_FREESP   8
#define FD_CLOEXEC   1
#define F_RDLCK   1
#define F_WRLCK   2
#define F_UNLCK   3
#define O_CREAT   00100
#define O_EXCL   00200
#define O_NOCTTY   00400
#define O_TRUNC   01000
#define O_APPEND   02000
#define O_NONBLOCK   04000
#define O_RDONLY   0
#define O_WRONLY   1
#define O_RDWR   2
#define O_ACCMODE   03
#define LOCK_SH   F_RDLCK
#define LOCK_EX   F_WRLCK
#define LOCK_NB   0x0080
#define LOCK_UN   F_UNLCK

Functions

 _PROTOTYPE (int creat,(const char *_path, _mnx_Mode_t _mode))
 _PROTOTYPE (int fcntl,(int _filedes, int _cmd,...))
 _PROTOTYPE (int open,(const char *_path, int _oflag,...))
 _PROTOTYPE (int flock,(int fd, int mode))


Define Documentation

#define F_DUPFD   0
 

Definition at line 18 of file fcntl.h.

Referenced by copyfd(), do_fcntl(), dup(), dup2(), fcntl(), shellescape(), test7c(), and test7i().

#define F_FREESP   8
 

Definition at line 26 of file fcntl.h.

Referenced by do_fcntl(), and fcntl().

#define F_GETFD   1
 

Definition at line 19 of file fcntl.h.

Referenced by close_on_exec(), do_check(), do_fcntl(), main(), opendir(), run(), run_job(), setgrent(), setinputfd(), setpwent(), setttyent(), startup(), test20d(), test24a(), test7c(), and test8a().

#define F_GETFL   3
 

Definition at line 21 of file fcntl.h.

Referenced by _tcp_connect(), do_fcntl(), dup2(), fill_iftab(), get_ipconf(), getch(), getifaddrs(), main(), opentrace(), preadbuffer(), startup(), test7c(), and test8a().

#define F_GETLK   5
 

Definition at line 23 of file fcntl.h.

Referenced by do_check(), do_fcntl(), fcntl(), lock_op(), locked(), test20d(), and test29a().

#define F_RDLCK   1
 

Definition at line 32 of file fcntl.h.

Referenced by do_check(), lock_dev(), lock_op(), set(), and test20d().

#define F_SETFD   2
 

Definition at line 20 of file fcntl.h.

Referenced by close_on_exec(), closeExec(), do_fcntl(), fcntl(), main(), opendir(), run(), run_job(), setgrent(), setinputfd(), setpwent(), setttyent(), startup(), test20d(), and test7c().

#define F_SETFL   4
 

Definition at line 22 of file fcntl.h.

Referenced by do_fcntl(), fcntl(), fill_iftab(), get_ipconf(), getch(), getifaddrs(), main(), opentrace(), preadbuffer(), startup(), terminate(), test19d(), test19g(), and test7c().

#define F_SETLK   6
 

Definition at line 24 of file fcntl.h.

Referenced by do_check(), do_fcntl(), fcntl(), flock(), lock_dev(), test20d(), and test29a().

#define F_SETLKW   7
 

Definition at line 25 of file fcntl.h.

Referenced by do_fcntl(), fcntl(), flock(), openpool(), test7e(), test7f(), test7g(), and test7h().

#define F_UNLCK   3
 

Definition at line 34 of file fcntl.h.

Referenced by do_check(), lock_op(), locked(), set(), and test20d().

#define F_WRLCK   2
 

Definition at line 33 of file fcntl.h.

Referenced by do_check(), lock_dev(), lock_op(), locked(), openpool(), set(), test20d(), and test29a().

#define FD_CLOEXEC   1
 

Definition at line 29 of file fcntl.h.

Referenced by close_on_exec(), do_fcntl(), main(), opendir(), run(), run_job(), setgrent(), setinputfd(), setpwent(), setttyent(), startup(), test20d(), test24a(), test7c(), and test8a().

#define LOCK_EX   F_WRLCK
 

Definition at line 70 of file fcntl.h.

Referenced by lock(), and lock_dev().

#define LOCK_NB   0x0080
 

Definition at line 71 of file fcntl.h.

Referenced by flock(), lock(), and lock_dev().

#define LOCK_SH   F_RDLCK
 

Definition at line 69 of file fcntl.h.

Referenced by lock_dev().

#define LOCK_UN   F_UNLCK
 

Definition at line 72 of file fcntl.h.

Referenced by unlock().

#define O_ACCMODE   03
 

Definition at line 52 of file fcntl.h.

Referenced by common_open(), and do_fcntl().

#define O_APPEND   02000
 

Definition at line 43 of file fcntl.h.

Referenced by cmd_write(), common_open(), do_fcntl(), fopen(), freopen(), openredirect(), opentrace(), read_write(), recvfile(), servxcheck(), test19b(), test19g(), test25a(), test25b(), test27a(), test38a(), test38b(), test39e(), test7c(), tmpsave(), write_log(), and wtmp().

#define O_CREAT   00100
 

Definition at line 37 of file fcntl.h.

Referenced by apply_add(), cachedhcp(), common_open(), copy(), copylink(), daemonize(), decode_message(), do_creat(), do_open(), do_writefile(), DOlist(), DOMretr(), DOnlst(), DOretr(), dump_core(), file_creat(), fopen(), fopen_output_safely(), freopen(), getfp(), gunzip(), gzlog_open(), lock_device(), main(), mformat(), open(), openredirect(), opentab(), opentemp(), police(), recvfile(), sbx_tset(), spool(), test16a(), test19a(), test22a(), test25a(), test25b(), test25c(), test25d(), test25e(), test26b(), test38a(), test38b(), and unix_write().

#define O_EXCL   00200
 

Definition at line 38 of file fcntl.h.

Referenced by common_open(), do_writefile(), file_creat(), fopen_output_safely(), lock_device(), mtoolstest(), spool(), test19a(), test25a(), test25b(), test25c(), and test25e().

#define O_NOCTTY   00400
 

Definition at line 39 of file fcntl.h.

#define O_NONBLOCK   04000
 

Definition at line 44 of file fcntl.h.

#define O_RDONLY   0
 

Definition at line 47 of file fcntl.h.

Referenced by add(), add_open(), allowed(), asciisize(), bopen(), close1(), cmd_errlist(), cmd_read(), cmd_tag(), copy(), copylink(), crash_check(), devopen(), df(), diocntl(), directory(), do_pipe(), DOappe(), doexrc(), DOMstor(), DOrstor(), DOstor(), DOstou(), Draw_Strings(), eat_dir(), eopen(), exec_one(), fdxcmd(), file(), File_Device(), file_open(), filter(), Find_Deleted_Entry(), find_exist(), find_user(), finduser(), fopen(), forkshell(), format_device(), freopen(), fsversion(), fts_children(), fts_read(), fts_safe_changedir(), geometry(), get_block_size(), getgeom(), gethostname(), getpass(), gunzip(), gztack(), haunt(), init_config(), initialize(), ins_file(), install_master(), isbackup(), load_mtab(), lock_device(), m_read(), main(), mcat(), mcopy(), mdu(), merge(), minfo(), mlabel(), my_getcwd(), nm(), opendir(), openpool(), openredirect(), opentab(), opentty(), pathconf(), peek(), police(), preserve(), printdata(), procfile(), read_conf(), read_profile(), read_settings(), readcmdfile(), readcutblk(), readfs(), regular(), sanitycheck_failed(), scsi_open(), setgrent(), setinputfile(), setpwent(), setttyent(), show_file(), SimpleFileOpen(), size(), sizeup(), slave(), spool(), strip(), subr(), syminit(), test16a(), test19a(), test19c(), test19d(), test19e(), test21a(), test25a(), test25b(), test25c(), test25e(), test26a(), test26b(), test26c(), test27b(), test29b(), test30a(), test31a(), test32a(), test38a(), test38b(), test39e(), test6c(), test7b(), test7i(), test8a(), test8b(), tmpstart(), uname(), unix_dir_loop(), unix_loop(), visitfile(), wall(), wr_archive(), writedata(), and wtmp().

#define O_RDWR   2
 

Definition at line 49 of file fcntl.h.

Referenced by _tcp_accept(), _tcp_socket(), _udp_socket(), commitpool(), connect(), copylink(), daemonize(), daemonloop(), DataConnect(), devopen(), do_child(), do_open(), DOdata(), DOopen(), doPASV(), DOrretr(), dos_target_lookup(), fill_iftab(), findpool(), freopen(), get_pty(), getifaddrs(), gzlog_open(), gzscan(), install_master(), isbackup(), job_setup_connect(), job_setup_listen(), listen(), m_read(), main(), make_bootable(), mbadblocks(), mdel(), mdoctorfat(), mformat(), mlabel(), mmd(), mmove(), netfinger(), NetInit(), NETinit(), openlog(), openpty(), opentemp(), rcmd(), recvfile(), sbx_tset(), scsi_open(), sendcodes(), set_ipconf(), simple(), SimpleFileOpen(), special(), startup(), swapon(), tcp_connect(), test11a(), test16a(), test19a(), test19b(), test19e(), test19g(), test20d(), test25a(), test25b(), test25c(), test25d(), test25e(), test26b(), test26c(), test27a(), test29a(), test38a(), test38b(), test39e(), test7d(), test7e(), test7f(), test7g(), test7h(), test7i(), test7j(), test8a(), tmpstart(), touch(), tty_init(), udp_conf(), and zcopy().

#define O_TRUNC   01000
 

Definition at line 40 of file fcntl.h.

Referenced by apply_add(), cachedhcp(), common_open(), copy(), copylink(), daemonize(), do_creat(), DOlist(), DOMretr(), DOnlst(), DOretr(), dump_core(), file_creat(), fopen(), freopen(), getfp(), gunzip(), main(), openredirect(), opentab(), opentemp(), police(), recvfile(), sbx_tset(), test16a(), test19b(), test25a(), test25b(), test25c(), test25e(), and unix_write().

#define O_WRONLY   1
 

Definition at line 48 of file fcntl.h.


Function Documentation

_PROTOTYPE int  flock,
(int fd, int mode
 

_PROTOTYPE int  open,
(const char *_path, int _oflag,...) 
 

_PROTOTYPE int  fcntl,
(int _filedes, int _cmd,...) 
 

_PROTOTYPE int  creat,
(const char *_path, _mnx_Mode_t _mode) 
 


Generated on Fri Apr 14 23:09:44 2006 for minix by  doxygen 1.4.6