*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> unistd (4)              


UNISTD(4)							     UNISTD(4)

NAME    [Toc]    [Back]

     unistd - file header for symbolic constants

SYNOPSIS    [Toc]    [Back]

     #include <unistd.h>

DESCRIPTION    [Toc]    [Back]

     The header	file <unistd.h>	lists the symbolic constants and structures
     not already defined or declared in	some other header file.

     /*	Symbolic constants for the "access" routine: */

     #define R_OK 4	 /*Test	for Read permission */
     #define W_OK 2	 /*Test	for Write permission */
     #define X_OK 1	 /*Test	for eXecute permission */
     #define F_OK 0	 /*Test	for existence of File */

     #define F_ULOCK	 0/*Unlock a previously	locked region */
     #define F_LOCK	 1/*Lock a region for exclusive	use */
     #define F_TLOCK	 2/*Test and lock a region for exclusive use */
     #define F_TEST	 3/*Test a region for other processes locks */

     /*Symbolic	constants for the "lseek" routine: */

     #define SEEK_SET	 0/* Set file pointer to "offset" */
     #define SEEK_CUR	 1/* Set file pointer to current plus "offset" */
     #define SEEK_END	 2/* Set file pointer to EOF plus "offset" */


     #define GF_PATH	 /etc/group/*Pathname of the group file	*/
     #define PF_PATH	 /etc/passwd/*Pathname of the passwd file */

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pxfconst IRIX Returns the value associated with symbolic constants
unistd HP-UX standard structures and symbolic constants
limits Tru64 Header files for implementation-specific constants
limits IRIX file headers for implementation-specific constants
sat_write_filehdr IRIX write audit file header, write close time to audit file header
AFclosefile IRIX close an audio file, update file header if file was opened for write access.
symlink OpenBSD make symbolic link to a file
symlink IRIX make a symbolic link to a file
symlink HP-UX make symbolic link to a file
symlink Tru64 Make a symbolic link to a file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service