/******************************************************** * 復帰コード *******************************************************/ #define SY_OK 0 /* 正常復帰 */ #define SY_ERR_F_OPEN -1010 /* ファイルオープンエラー */ #define SY_ERR_F_READ -1020 /* ファイルリードエラー */ #define SY_ERR_F_WRIT -1030 /* ファイルライトエラー */ #define SY_ERR_F_LOCK -1040 /* ファイルロックエラー */ #define SY_ERR_F_ULCK -1050 /* ファイルアンロックエラー */ #define SY_ERR_F_SEEK -1060 /* ファイルシークエラー */ #define SY_ERR_ENV -2010 /* 環境設定エラー */ /******************************************************** * 比較管理ファイル名格納構造体 *******************************************************/ typedef struct STR_SY_CNTL_FILE { unsigned char data_kind[2]; /* データ種別 */ unsigned char host_name[20]; /* 転送元ホスト名 */ unsigned char cmp_file1[128]; /* 他ドメイン管理ファイル */ unsigned char cmp_file2[128]; /* 自ドメイン管理ファイル */ unsigned char user_name[20]; /* ユーザ名 */ unsigned char passwd[20]; /* パスワード */ } STR_SY_Cntl_File; /******************************************************** * 転送ファイル名格納構造体 *******************************************************/ typedef struct STR_SY_FILE_NAME { unsigned char from_file[128]; /* 転送元ファイル名 */ unsigned char to_file[128]; /* 転送先ファイル名 */ } STR_SY_File_Name;