#include "curl_setup.h"#include <curl/curl.h>#include "urldata.h"#include "fileinfo.h"#include "llist.h"#include "strtoofft.h"#include "ftp.h"#include "ftplistparser.h"#include "curl_fnmatch.h"#include "curl_memory.h"#include "memdebug.h"
Go to the source code of this file.
Classes | |
| struct | ftp_parselist_data |
| union | pl_unix_substate |
| union | pl_winNT_substate |
Defines | |
| #define | FTP_BUFFER_ALLOCSIZE 160 |
| #define | FTP_LP_MALFORMATED_PERM 0x01000000 |
Enumerations | |
| enum | pl_unix_mainstate { PL_UNIX_TOTALSIZE = 0, PL_UNIX_FILETYPE, PL_UNIX_PERMISSION, PL_UNIX_HLINKS, PL_UNIX_USER, PL_UNIX_GROUP, PL_UNIX_SIZE, PL_UNIX_TIME, PL_UNIX_FILENAME, PL_UNIX_SYMLINK } |
| enum | pl_winNT_mainstate { PL_WINNT_DATE = 0, PL_WINNT_TIME, PL_WINNT_DIRORSIZE, PL_WINNT_FILENAME } |
Functions | |
| size_t | Curl_ftp_parselist (char *buffer, size_t size, size_t nmemb, void *connptr) |
| struct ftp_parselist_data * | Curl_ftp_parselist_data_alloc (void) |
| void | Curl_ftp_parselist_data_free (struct ftp_parselist_data **pl_data) |
| CURLcode | Curl_ftp_parselist_geterror (struct ftp_parselist_data *pl_data) |
| static int | ftp_pl_get_permission (const char *str) |
| static CURLcode | ftp_pl_insert_finfo (struct connectdata *conn, struct curl_fileinfo *finfo) |
| static void | PL_ERROR (struct connectdata *conn, CURLcode err) |
| #define FTP_BUFFER_ALLOCSIZE 160 |
Now implemented:
1) Unix version 1 drwxr-xr-x 1 user01 ftp 512 Jan 29 23:32 prog 2) Unix version 2 drwxr-xr-x 1 user01 ftp 512 Jan 29 1997 prog 3) Unix version 3 drwxr-xr-x 1 1 1 512 Jan 29 23:32 prog 4) Unix symlink lrwxr-xr-x 1 user01 ftp 512 Jan 29 23:32 prog -> prog2000 5) DOS style 01-29-97 11:32PM <DIR> prog
Definition at line 56 of file ftplistparser.c.
| #define FTP_LP_MALFORMATED_PERM 0x01000000 |
Definition at line 200 of file ftplistparser.c.
| enum pl_unix_mainstate |
| PL_UNIX_TOTALSIZE | |
| PL_UNIX_FILETYPE | |
| PL_UNIX_PERMISSION | |
| PL_UNIX_HLINKS | |
| PL_UNIX_USER | |
| PL_UNIX_GROUP | |
| PL_UNIX_SIZE | |
| PL_UNIX_TIME | |
| PL_UNIX_FILENAME | |
| PL_UNIX_SYMLINK |
Definition at line 58 of file ftplistparser.c.
| enum pl_winNT_mainstate |
Definition at line 124 of file ftplistparser.c.
| size_t Curl_ftp_parselist | ( | char * | buffer, |
| size_t | size, | ||
| size_t | nmemb, | ||
| void * | connptr | ||
| ) |
Definition at line 333 of file ftplistparser.c.
| struct ftp_parselist_data* Curl_ftp_parselist_data_alloc | ( | void | ) | [read] |
Definition at line 181 of file ftplistparser.c.
| void Curl_ftp_parselist_data_free | ( | struct ftp_parselist_data ** | pl_data | ) |
Definition at line 187 of file ftplistparser.c.
| CURLcode Curl_ftp_parselist_geterror | ( | struct ftp_parselist_data * | pl_data | ) |
Definition at line 194 of file ftplistparser.c.
| static int ftp_pl_get_permission | ( | const char * | str | ) | [static] |
Definition at line 202 of file ftplistparser.c.
| static CURLcode ftp_pl_insert_finfo | ( | struct connectdata * | conn, |
| struct curl_fileinfo * | finfo | ||
| ) | [static] |
Definition at line 277 of file ftplistparser.c.
| static void PL_ERROR | ( | struct connectdata * | conn, |
| CURLcode | err | ||
| ) | [static] |
Definition at line 267 of file ftplistparser.c.