ReactOS 0.4.16-dev-13-ge2fc578
|
#include <stdio.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "ncftp_errno.h"
Go to the source code of this file.
Classes | |
struct | Line |
struct | LineList |
struct | Response |
struct | SReadlineInfo |
struct | FTPLibraryInfo |
struct | FTPConnectionInfo |
struct | FileInfo |
struct | FileInfoList |
struct | MLstItem |
Variables | |
char | gLibNcFTPVersion [64] |
int | gLibNcFTP_Uses_Me_To_Quiet_Variable_Unused_Warnings |
#define kDefaultDataPortMode kSendPortMode |
#define kFirewallLastType kFirewallUserAtSiteFwuPassFwp |
#define kLibraryVersion "@(#) LibNcFTP 3.0.6 (April 14, 2001)" |
#define kNetReading kAcceptForReading |
#define kNetWriting kAcceptForWriting |
#define kPreferredMlsOpts (kMlsOptType | kMlsOptSize | kMlsOptModify | kMlsOptUNIXmode | kMlsOptUNIXowner | kMlsOptUNIXgroup | kMlsOptUNIXuid | kMlsOptUNIXgid | kMlsOptPerm) |
#define kSizeUnknown ((longest_int) (-1)) |
#define kSuggestedDefaultCtrlTimeout 135 /* 2*MSL, + slop */ |
#define LIBNCFTP_USE_VAR | ( | a | ) | gLibNcFTP_Uses_Me_To_Quiet_Variable_Unused_Warnings = (a == 0) |
#define NoConfirmResumeDownloadProc ((ConfirmResumeDownloadProc) 0) |
#define NoConfirmResumeUploadProc ((ConfirmResumeUploadProc) 0) |
#define NoGetPassphraseProc ((FTPGetPassphraseProc) 0) |
#define StrFindLocalPathDelim | ( | a | ) | strchr(a, LOCAL_PATH_DELIM) |
#define StrRemoveTrailingLocalPathDelim StrRemoveTrailingSlashes |
#define StrRFindLocalPathDelim | ( | a | ) | strrchr(a, LOCAL_PATH_DELIM) |
typedef struct FileInfoList FileInfoList |
typedef struct FileInfoList * FileInfoListPtr |
typedef struct FileInfo* FileInfoPtr |
typedef struct FileInfo ** FileInfoVec |
typedef struct FTPConnectionInfo* FTPCIPtr |
typedef struct FTPConnectionInfo FTPConnectionInfo |
typedef void(* FTPConnectMessageProc) (const FTPCIPtr, ResponsePtr) |
typedef struct FTPLibraryInfo FTPLibraryInfo |
typedef struct FTPLibraryInfo * FTPLIPtr |
typedef void(* FTPLoginMessageProc) (const FTPCIPtr, ResponsePtr) |
typedef void(* FTPPrintResponseProc) (const FTPCIPtr, ResponsePtr) |
typedef struct LineList * LineListPtr |
typedef struct MLstItem * MLstItemPtr |
typedef struct Response * ResponsePtr |
typedef struct SReadlineInfo SReadlineInfo |
FileInfoPtr AddFileInfo | ( | FileInfoListPtr | list, |
FileInfoPtr | src | ||
) |
Definition at line 530 of file linelist.c.
Referenced by ConcatFileInfoList(), ConcatFileToFileInfoList(), FTPLocalRecursiveFileList2(), Traverse(), UnLslR(), and UnMlsD().
LinePtr AddLine | ( | LineListPtr | list, |
const char * | buf1 | ||
) |
Definition at line 94 of file linelist.c.
Referenced by CopyLineList(), FTPDecodeURL(), FTPListToMemory2(), FTPLocalGlob(), FTPRemoteGlob(), GetResponse(), and LazyUnixLocalGlob().
int BufferGets | ( | char * | buf, |
size_t | bufsize, | ||
int | inStream, | ||
char * | secondaryBuf, | ||
char ** | secBufPtr, | ||
char ** | secBufLimit, | ||
size_t | secBufSize | ||
) |
Definition at line 978 of file rcmd.c.
Referenced by FTPList(), and FTPListToMemory2().
Definition at line 663 of file linelist.c.
Referenced by FTPGetFiles3(), and FTPPutFiles3().
Definition at line 579 of file linelist.c.
Referenced by FTPGetFiles3(), FTPPutFiles3(), FTPRemoteRecursiveFileList(), and FTPRemoteRecursiveFileList1().
int ConcatFileInfoList | ( | FileInfoListPtr | dst, |
FileInfoListPtr | src | ||
) |
Definition at line 556 of file linelist.c.
Referenced by FTPRemoteRecursiveFileList(), and FTPRemoteRecursiveFileList1().
int ConcatFileToFileInfoList | ( | FileInfoListPtr | dst, |
char * | rfile | ||
) |
Definition at line 740 of file linelist.c.
Referenced by FTPRemoteRecursiveFileList(), FTPRemoteRecursiveFileList1(), LineListToFileInfoList(), and LineToFileInfoList().
int CopyLineList | ( | LineListPtr | dst, |
LineListPtr | src | ||
) |
Definition at line 127 of file linelist.c.
Referenced by FTPRemoteHelp().
void DisposeFileInfoListContents | ( | FileInfoListPtr | list | ) |
Definition at line 152 of file linelist.c.
Referenced by FlushLsCacheItem(), FTPGetFiles3(), FTPPutFiles3(), FTPRemoteRecursiveFileList(), and FTPRemoteRecursiveFileList1().
void DisposeLineListContents | ( | LineListPtr | list | ) |
Definition at line 33 of file linelist.c.
Referenced by ChdirCmd(), CopyLineList(), DoneWithResponse(), EchoCmd(), FTPChmod(), FTPDeallocateHost(), FTPDelete(), FTPFileExistsNlst(), FTPFileExistsStat(), FTPFtwL2(), FTPGetFiles3(), FTPPutFiles3(), FTPRemoteRecursiveFileList(), FTPRemoteRecursiveFileList1(), FTPRmdir(), FTPRmdirRecursiveL2(), LocalRmCmd(), LocalRmdirCmd(), Ls(), OpenCmd(), ReInitResponse(), RGlobCmd(), RmtHelpCmd(), SaveLastResponse(), SpoolGetCmd(), and SpoolPutCmd().
void DoneWithResponse | ( | const | FTPCIPtr, |
ResponsePtr | rp | ||
) |
Definition at line 114 of file rcmd.c.
Referenced by FTPAbortDataTransfer(), FTPChdirAndGetCWD(), FTPCloseHost(), FTPCmd(), FTPEndDataCmd(), FTPFileExistsStat(), FTPFileModificationTime(), FTPFileSize(), FTPGetCWD(), FTPLoginHost(), FTPMListOneFile(), FTPQueryFeatures(), FTPRemoteHelp(), FTPStartDataCmd(), FTPUtime(), nFTPChdirAndGetCWD(), OpenControlConnection(), Passive(), SendPort(), and SetStartOffset().
Definition at line 111 of file util.c.
Referenced by GetBookmark(), GetNextBookmark(), LazyUnixLocalGlob(), OpenBookmarkFile(), PromptForBookmarkName(), PutBookmark(), and RunBookmarkEditor().
Definition at line 963 of file util.c.
Referenced by AutomaticallyUseASCIIModeDependingOnExtension().
Definition at line 870 of file rcmd.c.
Referenced by FTPCloseHost(), FTPGetOneF(), and FTPPutOneF().
Definition at line 11 of file cmds.c.
Referenced by FTPChdir3(), FTPFileExistsNlst(), FTPFileExistsStat(), FTPFileType(), FTPFtw(), FTPFtwL2(), FTPMkdir2(), FTPRemoteRecursiveFileList(), FTPRemoteRecursiveFileList1(), FTPRmdirRecursive(), FTPRmdirRecursiveL2(), OpenCmd(), and OpenURL().
int FTPChdir3 | ( | FTPCIPtr | cip, |
const char *const | cdCwd, | ||
char *const | newCwd, | ||
const size_t | newCwdSize, | ||
int | flags | ||
) |
Definition at line 376 of file cmds.c.
int FTPChdirAndGetCWD | ( | const FTPCIPtr | cip, |
const char *const | cdCwd, | ||
char *const | newCwd, | ||
const size_t | newCwdSize | ||
) |
Definition at line 313 of file cmds.c.
Referenced by FTPChdir3().
int FTPChmod | ( | const FTPCIPtr | cip, |
const char *const | pattern, | ||
const char *const | mode, | ||
const int | doGlob | ||
) |
Definition at line 46 of file cmds.c.
Referenced by ChmodCmd().
Definition at line 523 of file open.c.
Referenced by CloseHost(), and FTPOpenHost().
Definition at line 603 of file rcmd.c.
Referenced by DoOpen(), FTPChdir(), FTPChdir3(), FTPChmod(), FTPDelete(), FTPGetOneF(), FTPMkdir2(), FTPPutOneF(), FTPRename(), FTPRequestMlsOptions(), FTPRmdir(), FTPSetTransferType(), FTPSymlink(), FTPUmask(), QuoteCmd(), and SiteCmd().
Definition at line 656 of file rcmd.c.
Referenced by FTPAbortDataTransfer().
int FTPDecodeURL | ( | const FTPCIPtr | cip, |
char *const | url, | ||
LineListPtr | cdlist, | ||
char *const | fn, | ||
const size_t | fnsize, | ||
int *const | xtype, | ||
int *const | wantnlst | ||
) |
Definition at line 639 of file open.c.
Referenced by DecodeDirectoryURL().
int FTPDelete | ( | const FTPCIPtr | cip, |
const char *const | pattern, | ||
const int | recurse, | ||
const int | doGlob | ||
) |
Definition at line 195 of file cmds.c.
Referenced by DeleteCmd(), FTPGetOneF(), FTPPutOneF(), and FTPRmdirRecursiveL2().
Definition at line 933 of file rcmd.c.
Referenced by FTPGetOneF(), FTPList(), FTPListToMemory2(), FTPPutOneF(), and FTPStartDataCmd().
Definition at line 1423 of file cmds.c.
int FTPFileExists2 | ( | const FTPCIPtr | cip, |
const char *const | file, | ||
const int | tryMDTM, | ||
const int | trySIZE, | ||
const int | tryMLST, | ||
const int | trySTAT, | ||
const int | tryNLST | ||
) |
Definition at line 1350 of file cmds.c.
Referenced by FTPFileExists(), FTPFileType(), and FTPPutOneF().
Definition at line 1209 of file cmds.c.
Referenced by FTPFileExists2().
Definition at line 1008 of file cmds.c.
Referenced by FTPFileExists2().
Definition at line 649 of file cmds.c.
Referenced by FTPFileExists2(), FTPFileSizeAndModificationTime(), and FTPGetOneF().
int FTPFileSize | ( | const FTPCIPtr | cip, |
const char *const | file, | ||
longest_int *const | size, | ||
const int | type | ||
) |
Definition at line 887 of file cmds.c.
Referenced by FTPFileExists2(), and FTPFileSizeAndModificationTime().
int FTPFileSizeAndModificationTime | ( | const FTPCIPtr | cip, |
const char *const | file, | ||
longest_int *const | size, | ||
const int | type, | ||
time_t *const | mdtm | ||
) |
Definition at line 1433 of file cmds.c.
Referenced by FTPGetOneF(), and FTPPutOneF().
Definition at line 1475 of file cmds.c.
Referenced by FTPIsDir(), and FTPIsRegularFile().
Definition at line 1706 of file glob.c.
Definition at line 254 of file cmds.c.
Referenced by FTPChdir3(), FTPChdirAndGetCWD(), FTPFileExistsNlst(), FTPFileExistsStat(), FTPFileType(), FTPFtw(), FTPLoginHost(), FTPMkdir2(), FTPRemoteRecursiveFileList(), FTPRemoteRecursiveFileList1(), FTPRmdirRecursive(), nFTPChdirAndGetCWD(), OpenCmd(), OpenURL(), and PwdCmd().
int FTPGetFiles | ( | const FTPCIPtr | cip, |
const char *const | pattern, | ||
const char *const | dstdir, | ||
const int | recurse, | ||
const int | doGlob | ||
) |
Definition at line 2730 of file io.c.
int FTPGetFiles2 | ( | const FTPCIPtr | cip, |
const char *const | pattern, | ||
const char *const | dstdir, | ||
const int | recurse, | ||
const int | doGlob, | ||
const int | xtype, | ||
const int | resumeflag, | ||
const int | appendflag | ||
) |
Definition at line 2739 of file io.c.
int FTPGetFiles3 | ( | const FTPCIPtr | cip, |
const char * | pattern, | ||
const char *const | dstdir, | ||
const int | recurse, | ||
int | doGlob, | ||
const int | xtype, | ||
const int | resumeflag, | ||
int | appendflag, | ||
const int | deleteflag, | ||
const int | tarflag, | ||
const ConfirmResumeDownloadProc | resumeProc, | ||
int | reserved | ||
) |
int FTPGetFilesAscii | ( | const FTPCIPtr | cip, |
const char *const | pattern, | ||
const char *const | dstdir, | ||
const int | recurse, | ||
const int | doGlob | ||
) |
Definition at line 2757 of file io.c.
Definition at line 29 of file util.c.
Referenced by DoOpen(), LocalChdirCmd(), LocalPwdCmd(), PostInit(), SpoolGetCmd(), SpoolPutCmd(), and SpoolX().
Definition at line 2712 of file io.c.
int FTPGetOneFile2 | ( | const FTPCIPtr | cip, |
const char *const | file, | ||
const char *const | dstfile, | ||
const int | xtype, | ||
const int | fdtouse, | ||
const int | resumeflag, | ||
const int | appendflag | ||
) |
Definition at line 2721 of file io.c.
int FTPGetOneFile3 | ( | const FTPCIPtr | cip, |
const char *const | file, | ||
const char *const | dstfile, | ||
const int | xtype, | ||
const int | fdtouse, | ||
const int | resumeflag, | ||
const int | appendflag, | ||
const int | deleteflag, | ||
const ConfirmResumeDownloadProc | resumeProc, | ||
int | reserved | ||
) |
Definition at line 2748 of file io.c.
Definition at line 984 of file open.c.
Referenced by InitConnectionInfo().
Definition at line 81 of file open.c.
Referenced by FTPLoginHost(), and PostInitPrefs().
Definition at line 63 of file open.c.
Referenced by FTPInitializeAnonPassword(), LoadFirewallPrefs(), OpenTrace(), and WriteDefaultFirewallPrefs().
Definition at line 71 of file io.c.
Referenced by FTPGetOneF(), and FTPPutOneF().
Definition at line 1110 of file open.c.
Referenced by PreInit().
Definition at line 1531 of file cmds.c.
Referenced by FTPFtw(), FTPFtwL2(), and FTPGetFiles3().
Definition at line 174 of file io.c.