parse.h
来自「一个很有名的浏览器」· C头文件 代码 · 共 51 行
H
51 行
/* FTP directory parsing *//* $Id: parse.h,v 1.4.2.1 2005/04/06 09:30:31 jonas Exp $ */#ifndef EL__PROTOCOL_FTP_PARSE_H#define EL__PROTOCOL_FTP_PARSE_H#include "util/string.h"/* File types. *//* The value is the char value used when displaying the file type. */enum ftp_file_type { FTP_FILE_PLAINFILE = '-', FTP_FILE_DIRECTORY = 'd', FTP_FILE_SYMLINK = 'l', FTP_FILE_UNKNOWN = '?',};/* Information about one file in a directory listing. */struct ftp_file_info { enum ftp_file_type type; /* File type */ struct string name; /* File name */ struct string symlink; /* Link to which file points */ long size; /* File size. -1 if unknown. */ time_t mtime; /* Modification time */ unsigned int local_time_zone:1; /* What format the mtime is in */ int permissions; /* File permissions */};#define FTP_SIZE_UNKNOWN -1/* File info initializers: */#define INIT_FTP_FILE_INFO \ { FTP_FILE_UNKNOWN, INIT_STRING("", 0), INIT_STRING("", 0), FTP_SIZE_UNKNOWN, 0, 0, 0644 }#define INIT_FTP_FILE_INFO_ROOT \ { FTP_FILE_DIRECTORY, INIT_STRING("..", 2), INIT_STRING("", 0), FTP_SIZE_UNKNOWN, 0, 0, 0755 }struct ftp_file_info *parse_ftp_file_info(struct ftp_file_info *info, unsigned char *src, int len);/* Define to feed debug FTP responses into the parser. Then point ELinks to an * FTP server to run the tests. *//*#define DEBUG_FTP_PARSER*/#ifdef DEBUG_FTP_PARSERunsigned char *get_ftp_debug_parse_responses(unsigned char *buffer, int buflen);#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?