*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: fdetach | Section: 3 | Source: Digital UNIX | File: fdetach.3.gz
fdetach(3) Library Functions Manual fdetach(3) NAME fdetach - Detaches a file name from a STREAMS-based file descriptor LIBRARY Standard C Library (libc.so, libc.a) SYNOPSIS #include <stropts.h> int fdetach( const char *path); STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: fdetach(): XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. PARAMETERS Specifies the pathname of an existing object in the file system name space that was previously attached (see the fattach() reference page). DESCRIPTION The fdetach() function separates (detaches) a STREAMS-based file de- scriptor from a name in the file system designated by path. As a re- sult of this operation, the node's status and permissions return to the state prior to the file attaching to the node. Any later operations on path will affect only the file system node and not the attached file. The user must either have the proper permissions to allow access to the file, or own the file. RETURN VALUES Upon successful completion, the fdetach() function returns a value of 0 (zero). Otherwise, it returns a value of -1 is returned, and errno is set to indicate the error. ERRORS If any of the following conditions occurs, the fdetach() function sets errno to the value that corresponds to the condition. The user is not the owner of the file or does not have the correct permissions to ac- cess the file. [Digital] There is an active reference to a file lo- cated on the file system. [Digital] The path parameter points outside the process's allocated address space. The object pointed to by the path parameter is not attached to a file. When path was translated, too many symbolic links were found. The path parameter points to a pathname that does not exist. The directory portion of the path para- meter does not exist. The size of a pathname component is longer than [NAME_MAX] when [_POSIX_NO_TRUNC] is in effect, the pathname length is longer than [PATH_MAX], or the length of the intermediate result of a pathname resolution of a symbolic link is longer than PATH_MAX. The current effective user ID is not the owner of the existing object spec- ified by the path parameter, or the current effective user ID does not specify a user with the correct privileges. RESTRICTIONS [Digital] The fdetach() function requires that the FFM_FS kernel op- tion be configured. See System Administration for information on con- figuring kernel options. RELATED INFORMATION Functions: fattach(3), isastream(3), umount(3) Commands: fdetach(8) Interfaces: streamio(7) Standards: standards(5) delim off fdetach(3)

Navigation Options