Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > F

fdetach(1M)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

fdetach — detach a STREAMS-based file descriptor from a filename

SYNOPSIS

fdetach path

DESCRIPTION

The fdetach command detaches or disassociates a file descriptor for an open STREAMS device or pipe from its filename in the file system. The path argument is the path that was previously associated with the file descriptor by the fattach() function.

Operations on path will subsequently affect the file system node, not the STREAMS device or pipe. The permissions and status of the node are returned to the state that they were in before the STREAMS device or pipe was attached. Any other paths that the STREAMS device or pipe may be attached to are not affected.

To successfully issue the fdetach command, the user must be superuser or must be the owner of the file and have write permission.

RETURN VALUE

fdetach returns 0 (zero) on success. If fdetach fails, it returns 1 and prints a message to stderr.

EXAMPLES

To detach the file descriptor for the STREAMS file /tmp/streamfile from its associated file system node, enter:

fdetach /tmp/streamfile

FILES

/usr/lib/nls/C/fdetach.cat

NLS catalog for fdetach.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.