fd man page on Solaris

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
Solaris logo
[printable version]

fd(4)				 File Formats				 fd(4)

NAME
       fd - file descriptor files

DESCRIPTION
       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",mode);
       fd = dup(n);

       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.

       For  convenience	 in  referring to standard input, standard output, and
       standard error, an additional set of names is provided:	/dev/stdin  is
       a  synonym  for	 /dev/fd/0, /dev/stdout for /dev/fd/1, and /dev/stderr
       for  /dev/fd/2.

SEE ALSO
       creat(2), dup(2), open(2)

DIAGNOSTICS
       open(2) returns −1 and  EBADF if the associated file descriptor is  not
       open.

SunOS 5.10			  3 Jul 1990				 fd(4)
[top]

List of man pages available for Solaris

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net