Go to the source code of this file.
Functions | |
SMB_File * | SMB_Open (SMB_Tree_Handle Tree_Handle, SMB_File *File_Handle, char *file_name, WORD mode, WORD search) |
int | SMB_Close (SMB_File *File_Handle) |
int | SMB_Read (SMB_File *File_Handle, char *data, int numbytes) |
off_t | SMB_Lseek (SMB_File *File_Handle, off_t offset, int whence) |
int | SMB_Write (SMB_File *File_Handle, char *data, int numbytes) |
SMB_File * | SMB_Create (SMB_Tree_Handle Tree_Handle, SMB_File *File_Handle, char *file_name, WORD search) |
int | SMB_Delete (SMB_Tree_Handle tree, char *file_name, WORD search) |
int | SMB_Create_Dir (SMB_Tree_Handle tree, char *dir_name) |
int | SMB_Delete_Dir (SMB_Tree_Handle tree, char *dir_name) |
int | SMB_Check_Dir (SMB_Tree_Handle tree, char *dir_name) |
int | SMB_Search (SMB_Tree_Handle tree, char *dir_name, WORD search, SMB_CP_dirent *dirents, int direntc, char *resumekey, int resumekey_len) |
Function Documentation
◆ SMB_Check_Dir()
int SMB_Check_Dir | ( | SMB_Tree_Handle | tree, |
char * | dir_name | ||
) |
Definition at line 1069 of file file.c.
References CVAL, IVAL, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_checkdir_bcc_offset, SMB_checkdir_buf_offset, SMB_checkdir_len, SMB_DEF_IDF, SMB_Hdr, SMB_hdr_com_offset, SMB_hdr_err_offset, SMB_hdr_idf_offset, SMB_hdr_mid_offset, SMB_hdr_pid_offset, SMB_hdr_rcls_offset, SMB_hdr_tid_offset, SMB_hdr_uid_offset, SMB_hdr_wct_offset, SMBasciiID, SMBC_SUCCESS, SMBchkpth, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_BAD, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SSVAL, and SVAL.
◆ SMB_Close()
Definition at line 192 of file file.c.
References CVAL, IVAL, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_clos_bcc_offset, SMB_clos_fid_offset, SMB_clos_len, SMB_clos_tim_offset, SMB_DEF_IDF, SMB_Hdr, SMB_hdr_com_offset, SMB_hdr_err_offset, SMB_hdr_idf_offset, SMB_hdr_mid_offset, SMB_hdr_pid_offset, SMB_hdr_rcls_offset, SMB_hdr_tid_offset, SMB_hdr_uid_offset, SMB_hdr_wct_offset, SMBC_SUCCESS, SMBclose, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_BAD, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SSVAL, and SVAL.
◆ SMB_Create()
SMB_File * SMB_Create | ( | SMB_Tree_Handle | Tree_Handle, |
SMB_File * | File_Handle, | ||
char * | file_name, | ||
WORD | search | ||
) |
Definition at line 634 of file file.c.
References CVAL, SMB_File_Def::fid, SMB_File_Def::filename, IVAL, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, size, SMB_AMODE_OPENRW, SMB_creat_atr_offset, SMB_creat_bcc_offset, SMB_creat_buf_offset, SMB_creat_dat_offset, SMB_creat_len, SMB_creat_tim_offset, SMB_creatr_fid_offset, SMB_DEF_IDF, SMB_Hdr, SMB_hdr_com_offset, SMB_hdr_err_offset, SMB_hdr_idf_offset, SMB_hdr_mid_offset, SMB_hdr_pid_offset, SMB_hdr_rcls_offset, SMB_hdr_tid_offset, SMB_hdr_uid_offset, SMB_hdr_wct_offset, SMBasciiID, SMBC_SUCCESS, SMBcreate, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SSVAL, SVAL, and SMB_File_Def::tree.
◆ SMB_Create_Dir()
int SMB_Create_Dir | ( | SMB_Tree_Handle | tree, |
char * | dir_name | ||
) |
Definition at line 877 of file file.c.
References CVAL, IVAL, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_creatdir_bcc_offset, SMB_creatdir_buf_offset, SMB_creatdir_len, SMB_DEF_IDF, SMB_Hdr, SMB_hdr_com_offset, SMB_hdr_err_offset, SMB_hdr_idf_offset, SMB_hdr_mid_offset, SMB_hdr_pid_offset, SMB_hdr_rcls_offset, SMB_hdr_tid_offset, SMB_hdr_uid_offset, SMB_hdr_wct_offset, SMBasciiID, SMBC_SUCCESS, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_BAD, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SMBmkdir, SSVAL, and SVAL.
◆ SMB_Delete()
int SMB_Delete | ( | SMB_Tree_Handle | tree, |
char * | file_name, | ||
WORD | search | ||
) |
Definition at line 780 of file file.c.
References CVAL, IVAL, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_DEF_IDF, SMB_delet_bcc_offset, SMB_delet_buf_offset, SMB_delet_len, SMB_delet_sat_offset, SMB_Hdr, SMB_hdr_com_offset, SMB_hdr_err_offset, SMB_hdr_idf_offset, SMB_hdr_mid_offset, SMB_hdr_pid_offset, SMB_hdr_rcls_offset, SMB_hdr_tid_offset, SMB_hdr_uid_offset, SMB_hdr_wct_offset, SMBasciiID, SMBC_SUCCESS, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_BAD, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SMBunlink, SSVAL, and SVAL.
◆ SMB_Delete_Dir()
int SMB_Delete_Dir | ( | SMB_Tree_Handle | tree, |
char * | dir_name | ||
) |
Definition at line 973 of file file.c.
References CVAL, IVAL, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_DEF_IDF, SMB_deletdir_bcc_offset, SMB_deletdir_buf_offset, SMB_deletdir_len, SMB_Hdr, SMB_hdr_com_offset, SMB_hdr_err_offset, SMB_hdr_idf_offset, SMB_hdr_mid_offset, SMB_hdr_pid_offset, SMB_hdr_rcls_offset, SMB_hdr_tid_offset, SMB_hdr_uid_offset, SMB_hdr_wct_offset, SMBasciiID, SMBC_SUCCESS, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_BAD, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SMBrmdir, SSVAL, and SVAL.
◆ SMB_Lseek()
◆ SMB_Open()
SMB_File * SMB_Open | ( | SMB_Tree_Handle | Tree_Handle, |
SMB_File * | File_Handle, | ||
char * | file_name, | ||
WORD | mode, | ||
WORD | search | ||
) |
Definition at line 44 of file file.c.
References CVAL, SMB_File_Def::fid, SMB_File_Def::filename, IVAL, max(), NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, size, SMB_DEF_IDF, SMB_Hdr, SMB_hdr_com_offset, SMB_hdr_err_offset, SMB_hdr_idf_offset, SMB_hdr_mid_offset, SMB_hdr_pid_offset, SMB_hdr_rcls_offset, SMB_hdr_tid_offset, SMB_hdr_uid_offset, SMB_hdr_wct_offset, SMB_open_atr_offset, SMB_open_bcc_offset, SMB_open_buf_offset, SMB_open_len, SMB_open_mod_offset, SMB_openr_acc_offset, SMB_openr_fid_offset, SMB_openr_fsz_offset, SMB_openr_len, SMB_openr_tim_offset, SMBasciiID, SMBC_SUCCESS, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SMBopen, SSVAL, SVAL, and SMB_File_Def::tree.
◆ SMB_Read()
Definition at line 297 of file file.c.
References CVAL, RFCNB_Pkt::data, IVAL, RFCNB_Pkt::len, RFCNB_Pkt::next, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_DEF_IDF, SMB_Hdr, SMB_hdr_com_offset, SMB_hdr_err_offset, SMB_hdr_idf_offset, SMB_hdr_mid_offset, SMB_hdr_pid_offset, SMB_hdr_rcls_offset, SMB_hdr_tid_offset, SMB_hdr_uid_offset, SMB_hdr_wct_offset, SMB_read_bcc_offset, SMB_read_clf_offset, SMB_read_cnt_offset, SMB_read_fid_offset, SMB_read_len, SMB_read_ofs_offset, SMB_readr_cnt_offset, SMB_readr_len, SMBC_SUCCESS, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_BAD, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SMBread, SSVAL, and SVAL.
◆ SMB_Search()
int SMB_Search | ( | SMB_Tree_Handle | tree, |
char * | dir_name, | ||
WORD | search, | ||
SMB_CP_dirent * | dirents, | ||
int | direntc, | ||
char * | resumekey, | ||
int | resumekey_len | ||
) |
Definition at line 1166 of file file.c.
References CVAL, SMB_CP_dirent::date_time, SMB_CP_dirent::file_attributes, IVAL, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_CP_dirent::size, SMB_DEF_IDF, SMB_FLG2_EXT_ATR, SMB_FLG2_NON_DOS, SMB_Hdr, SMB_hdr_com_offset, SMB_hdr_err_offset, SMB_hdr_flg2_offset, SMB_hdr_idf_offset, SMB_hdr_mid_offset, SMB_hdr_pid_offset, SMB_hdr_rcls_offset, SMB_hdr_tid_offset, SMB_hdr_uid_offset, SMB_hdr_wct_offset, SMB_search_atr_offset, SMB_search_bcc_offset, SMB_search_buf_offset, SMB_search_len, SMB_search_mdc_offset, SMB_searchr_buf_offset, SMB_searchr_dec_offset, SMB_searchr_dirent_len, SMB_searchr_len, SMBasciiID, SMBC_SUCCESS, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_BAD, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SMBsearch, SMBvariableblockID, SSVAL, and SVAL.
◆ SMB_Write()
Definition at line 481 of file file.c.
References CVAL, RFCNB_Pkt::data, IVAL, RFCNB_Pkt::len, RFCNB_Pkt::next, NULL, pid, RFCNB_Alloc_Pkt(), RFCNB_Free_Pkt(), RFCNB_Recv(), RFCNB_Send(), SIVAL, SMB_DEF_IDF, SMB_Hdr, SMB_hdr_com_offset, SMB_hdr_err_offset, SMB_hdr_flg_offset, SMB_hdr_idf_offset, SMB_hdr_mid_offset, SMB_hdr_pid_offset, SMB_hdr_rcls_offset, SMB_hdr_tid_offset, SMB_hdr_uid_offset, SMB_hdr_wct_offset, SMB_write_bcc_offset, SMB_write_buf_offset, SMB_write_clf_offset, SMB_write_cnt_offset, SMB_write_fid_offset, SMB_write_len, SMB_write_ofs_offset, SMBC_SUCCESS, SMBdatablockID, SMBlib_errno, SMBlib_SMB_Error, SMBlibE_BAD, SMBlibE_NoSpace, SMBlibE_RecvFailed, SMBlibE_Remote, SMBlibE_SendFailed, SMBwrite, SSVAL, and SVAL.