DragonFly On-Line Manual Pages

Search: Section:  


ftp_realpath(3)                 C Library Calls                ftp_realpath(3)

NAME

ftp_realpath - determine the true path of a file from an FTP server

SYNOPSIS

#include <libfget.h> int ftp_realpath(FTP *ftp, char *path, char *resolved_path, size_t resolvelen);

VERSION

This man page documents version 1.3 of libfget.

DESCRIPTION

The ftp_realpath() function finds the true path of the file specified by path from the FTP server associated with ftp by expanding all symbolic links which are components of the path.

RETURN VALUE

The ftp_realpath() function returns 0 on success, or -1 on error (and sets errno).

ERRORS

The ftp_realpath() function fails if: ELOOP Too many symlinks were traversed. It may also fail for any of the errors specified for the underlying ftp_lstat(3) or ftp_readlink(3) library calls.

SEE ALSO

libfget(3), realpath(3) Feep Networks January 2004 ftp_realpath(3)

Search: Section: