Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/f/flink.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/f/flink.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/f/flink.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/f/flink.html on line 8
Assign a pathname to a file descriptor
#include <unistd.h>
int flink( int fd,
const char *path );
- fd
- The file descriptor.
- path
- The path you want to associate with the file descriptor.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The flink() function assigns the pathname, path, to
the file associated with the file descriptor, fd.
- 0
- Success.
- -1
- An error occurred; errno
is set.
- EACCES
- A component of either path prefix denies search permission, or the
link named by path is in a directory with a mode that denies
write permission.
- EBADF
- The file descriptor fd is invalid.
- EEXIST
- The link named by path already exists.
- ELOOP
- Too many levels of symbolic links or prefixes.
- EMLINK
- The number of links to the file would exceed LINK_MAX.
- ENAMETOOLONG
- The length of the path string exceeds
PATH_MAX, or a pathname component is longer than
NAME_MAX.
- ENOENT
- This error code can mean the following:
- A component of either path prefix doesn't exist.
- The path points to an empty
string.
- ENOSPC
- The directory that would contain the link can't be extended.
- ENOSYS
- The flink() function isn't implemented for the filesystem specified in path.
- ENOTDIR
- A component of either path prefix isn't a directory.
- EROFS
- The requested link requires writing in a directory on a read-only file
system.
- EXDEV
- The link named by path is on a different logical disk.
Unix
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
link()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/f/flink.html on line 192
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/f/flink.html on line 192