Classes | Defines | Enumerations | Functions
ftplistparser.c File Reference
#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"
Include dependency graph for ftplistparser.c:

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_dataCurl_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 Documentation

#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.


Enumeration Type Documentation

Enumerator:
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.

Enumerator:
PL_WINNT_DATE 
PL_WINNT_TIME 
PL_WINNT_DIRORSIZE 
PL_WINNT_FILENAME 

Definition at line 124 of file ftplistparser.c.


Function Documentation

size_t Curl_ftp_parselist ( char *  buffer,
size_t  size,
size_t  nmemb,
void *  connptr 
)

Definition at line 333 of file ftplistparser.c.

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.

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.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:08