X-Git-Url: http://git.sourceforge.jp/view?p=ffftp%2Fffftp.git;a=blobdiff_plain;f=common.h;h=d1f7b5c2ed0b8aef6ccd30dd5dc2a5e7a5d9bb74;hp=51510136cad2a68e73022bdad7fc0eb6b1224c1d;hb=39667277c869f8eea15387ba7f30e97710721195;hpb=b0819c6bb0f6e5d74c98be2d978481effaa970f7 diff --git a/common.h b/common.h index 5151013..d1f7b5c 100644 --- a/common.h +++ b/common.h @@ -70,9 +70,9 @@ //#define VER_STR "1.97b" //#define VER_NUM 1921 /* 設定バージョン */ //#define PROGRAM_VERSION_NUM 1972 /* バージョン */ -#define VER_STR "1.98d" -#define VER_NUM 1984 /* 設定バージョン */ -#define PROGRAM_VERSION_NUM 1984 /* バージョン */ +#define VER_STR "1.98e" +#define VER_NUM 1985 /* 設定バージョン */ +#define PROGRAM_VERSION_NUM 1985 /* バージョン */ // SourceForge.JPによるフォーク @@ -150,6 +150,11 @@ #define CHMOD_CMD_NOR "SITE CHMOD" /* 属性変更コマンド */ #define PORT_NOR 21 /* ポート番号 */ #define LS_FNAME "-alL" /* NLSTに付けるもの */ +#if defined(HAVE_TANDEM) +#define DEF_PRIEXT 4 /* Primary Extents の初期値 */ +#define DEF_SECEXT 28 /* Secondary Extents の初期値 */ +#define DEF_MAXEXT 978 /* Max Extents の初期値 */ +#endif /*===== 同じ名前のファイルがあった時の処理 =====*/ @@ -297,8 +302,13 @@ #define LIST_UNIX_73 45 /* UNIX 73 */ #define LIST_UNIX_74 46 /* UNIX 74 */ #define LIST_UNIX_75 47 /* UNIX 75 */ +// linux-ftpd +#define LIST_UNIX_16 48 /* UNIX 16 */ // MLSD対応 -#define LIST_MLSD 48 +#define LIST_MLSD 49 +#if defined(HAVE_TANDEM) +#define LIST_TANDEM 50 /* HP NonStop Server */ +#endif #define LIST_MELCOM 0x100 /* MELCOM80 */ @@ -671,6 +681,22 @@ LIST_UNIX_70 61191 Aug-30-2002 17:30:38 FILENAME.C +// linux-ftpd +*LIST_UNIX_16 + 0 1 2 3 4 5 6 7 + ------------------------------------------------------- + 合計 12345 + drwxr-x--- 2 root root 4096 2011-12-06 23:39 . + drwxr-x--- 3 root root 4096 2011-12-06 23:39 .. + -rw-r----- 1 root root 251 2011-12-06 23:39 .hoge + +*LIST_TANDEM + 0 1 2 3 4 5 6 + --------------------------------------------------------------- + File Code EOF Last Modification Owner RWEP + EMSACSTM 101 146 18-Sep-00 09:03:37 170,175 "nunu" + TACLCSTM O 101 101 4-Mar-01 23:50:06 255,255 "oooo" + ------------------------------------*/ /*===== 接続ウインドウの形式 =====*/ @@ -751,6 +777,9 @@ LIST_UNIX_70 #define HTYPE_STRATUS 5 /* Stratus */ #define HTYPE_AGILENT 6 /* Agilent Logic analyzer */ #define HTYPE_SHIBASOKU 7 /* Shibasoku LSI test system */ +#if defined(HAVE_TANDEM) +#define HTYPE_TANDEM 8 /* HP NonStop Server */ +#endif /*===== コマンドラインオプション =====*/ @@ -954,6 +983,7 @@ typedef struct { // 同時接続対応 int MaxThreadCount; /* 同時接続数 */ int ReuseCmdSkt; /* メインウィンドウのソケットを再利用する (YES/NO) */ + int NoDisplayUI; /* UIを表示しない (YES/NO) */ // FEAT対応 int Feature; /* 利用可能な機能のフラグ (FEATURE_xxx) */ // MLSD対応 @@ -1054,6 +1084,12 @@ typedef struct transpacket { int KanjiCodeDesired; /* ローカルの漢字コード (KANJI_xxx) */ int KanaCnv; /* 半角カナを全角に変換(YES/NO) */ int Mode; /* 転送モード (EXIST_xxx) */ +#if defined(HAVE_TANDEM) + int FileCode; /* ファイルコード */ + int PriExt; /* Primary Extents */ + int SecExt; /* Secondary Extents */ + int MaxExt; /* Max Extents */ +#endif HWND hWndTrans; /* 転送中ダイアログのウインドウハンドル */ int Abort; /* 転送中止フラグ (ABORT_xxx) */ // 同時接続対応 @@ -1073,6 +1109,8 @@ typedef struct filelist { FILETIME Time; /* 時間(UTC) */ char Owner[OWNER_NAME_LEN+1]; /* オーナ名 */ char InfoExist; /* ファイル一覧に存在した情報のフラグ (FINFO_xxx) */ + // ファイルアイコン表示対応 + int ImageId; /* アイコン画像番号 */ struct filelist *Next; } FILELIST; @@ -1268,6 +1306,8 @@ BOOL __stdcall SSLConfirmCallback(BOOL* pbAborted, BOOL bVerified, LPCSTR Certif BOOL LoadSSLRootCAFile(); // マルチコアCPUの特定環境下でファイル通信中にクラッシュするバグ対策 BOOL IsMainThread(); +// ファイルアイコン表示対応 +int AskDispFileIcon(void); /*===== filelist.c =====*/ @@ -1440,6 +1480,11 @@ int AskShareProh(void); void DisconnectProc(void); void DisconnectSet(void); int AskConnecting(void); +#if defined(HAVE_TANDEM) +int AskRealHostType(void); +int SetOSS(int wkOss); +int AskOSS(void); +#endif SOCKET connectsock(char *host, int port, char *PreMsg, int *CancelCheckWork); // IPv6対応 SOCKET connectsockIPv4(char *host, int port, char *PreMsg, int *CancelCheckWork); @@ -1558,6 +1603,9 @@ int DoQUOTE(char *CmdStr); SOCKET DoClose(SOCKET Sock); int DoQUIT(SOCKET ctrl_skt); int DoDirListCmdSkt(char *AddOpt, char *Path, int Num, int *CancelCheckWork); +#if defined(HAVE_TANDEM) +void SwitchOSSProc(void); +#endif int CommandProcCmd(char *Reply, char *fmt, ...); // 同時接続対応 //int CommandProcTrn(char *Reply, char *fmt, ...); @@ -1729,6 +1777,11 @@ LONGLONG MakeLongLong(DWORD High, DWORD Low); char *MakeNumString(LONGLONG Num, char *Buf, BOOL Comma); // 異なるファイルが表示されるバグ修正 char* MakeDistinguishableFileName(char* Out, char* In); +// 環境依存の不具合対策 +char* GetAppTempPath(char* Buf); +#if defined(HAVE_TANDEM) +void CalcExtentSize(TRANSPACKET *Pkt, LONGLONG Size); +#endif /*===== dlgsize.c =====*/