NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERROR MESSAGES | ATTRIBUTES
#include <arpa/ftpd/systemFilesys.h>off_t systemAsciiOff(FtpConn *conn, char *name, int offset);
The systemAsciiOff function converts an offset expressed relatively to the FTP-encoded version (that is, EOL is \r\n) of the text contained by the file given, to the corresponding offset in the file itself. The routine behaves as though the file had been read, converting it on the fly to the FTP text format. When the resulting text is offset bytes long, the actual number of characters read is returned.
If succesful, the offset thus computed is returned, or -1 in case of failure.
For a resource allocation problem
For a file name problem
For a file seek problem (including an incorrect number of characters in the file)
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ERROR MESSAGES | ATTRIBUTES