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

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


fd(4)									 fd(4)

NAME    [Toc]    [Back]

     /dev/fd - file descriptor files

DESCRIPTION    [Toc]    [Back]

     These files, conventionally called	/dev/fd/0, /dev/fd/1, /dev/fd/2, and
     so	on, refer to files accessible through file descriptors.	 If file
     descriptor	n is open, these two system calls have the same	effect:

	  fd = open("/dev/fd/n<b>",mode);
	  fd = dup(n<b>);

     On	these files creat(2) is	equivalent to open, and	mode is	ignored.  As
     with dup, subsequent reads	or writes on fd	fail unless the	original file
     descriptor	allows the operations.

SEE ALSO    [Toc]    [Back]

     open(2), dup(2)

DIAGNOSTICS    [Toc]    [Back]

     open(2) returns -1	and EBADF if the associated file descriptor is not

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pxfisatty IRIX Determines if file descriptor corresponds to a valid file descriptor
fattach Tru64 Attach a STREAMS-based file descriptor to a file in the file system name space
fdetach Tru64 Detach a STREAMS-based file descriptor from a file in the file system name space
AFopenfile IRIX allocate an AFfilehandle structure for an audio file identified by name / by a Unix file descriptor
AFidentifyfd IRIX retrieve the audio file format of a file descriptor / open AFfilehandle
AFgetfd IRIX get the Unix file descriptor for the file associated with an AFfilehandle structure
acl_set_fd Tru64 Sets the ACL on the file or directory designated by the file descriptor
isfdtype Tru64 Test a file descriptor for a specific file type
isastream Tru64 Determine if a file descriptor refers to a STREAMS file
fdetach Tru64 Detaches a STREAMS-based file descriptor from a file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service