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

  man pages->IRIX man pages -> fdetach (3c)              
Title
Content
Arch
Section
 

Contents


fdetach(3C)							   fdetach(3C)


NAME    [Toc]    [Back]

     fdetach - detach a	name from a STREAMS-based file descriptor

SYNOPSIS    [Toc]    [Back]

     int fdetach(const char *path);

DESCRIPTION    [Toc]    [Back]

     The fdetach routine detaches a STREAMS-based file descriptor from a name
     in	the filesystem.	 path is the pathname of the object in the filesystem
     name space, which was previously attached (see fattach(3C)).  The user
     must be the owner of the file or a	user with the appropriate privileges.
     All subsequent operations on path will operate on the filesystem node and
     not on the	STREAMS	file.  The permissions and status of the node are
     restored to the state the node was	in before the STREAMS file was
     attached to it.

RETURN VALUE    [Toc]    [Back]

     If	successful, fdetach returns 0; otherwise it returns -1 and sets	errno
     to	indicate an error.

ERRORS    [Toc]    [Back]

     Under the following conditions, the function fdetach fails	and sets errno
     to:

     EPERM	  The effective	user ID	is not the owner of path or is not a
		  user with appropriate	permissions.

     ENOTDIR	  A component of the path prefix is not	a directory.

     ENOENT	  path does not	exist.

     EINVAL	  path is not attached to a STREAMS file.

     ENAMETOOLONG The size of path exceeds {PATH_MAX}, or a pathname component
		  is longer than {NAME_MAX} while {_POSIX_NO_TRUNC} is in
		  effect.

     ELOOP	  Too many symbolic links were encountered in translating
		  path.

SEE ALSO    [Toc]    [Back]

      
      
     fdetach(1M), fattach(3C), streamio(7)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
fdetach HP-UX detach a STREAMS-based file descriptor from a filename
fdetach Tru64 Detach a STREAMS-based file descriptor from a file in the file system name space
fattach IRIX attach a STREAMS-based file descriptor to an object in the filesystem name space
fattach Tru64 Attach a STREAMS-based file descriptor to a file in the file system name space
fdetach Tru64 Detaches a STREAMS-based file descriptor from a file
usclosepollsema IRIX detach a file descriptor from a pollable semaphore
isastream Tru64 Determine if a file descriptor refers to a STREAMS file
streampipes HP-UX force all pipes to be STREAMS-based
nstrpty HP-UX maximum number of STREAMS-based pseudo terminals (pts)
dupb Tru64 STREAMS: Duplicates a message block descriptor
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service