#include <pwd.h>#include <stdint.h>#include <atalk/afp_util.h>#include "afpclient.h"#include "testhelper.h"Functions | |
| char * | afp_error (int error) |
| const char * | AfpNum2name (int num) |
| void | dump_header (DSI *dsi) |
| void | dump_open (DSI *dsi) |
| unsigned int | FPopenLogin (CONN *conn, char *vers, char *uam, char *usr, char *pwd) |
| unsigned int | FPopenLoginExt (CONN *conn, char *vers, char *uam, char *usr, char *pwd) |
| unsigned int | FPLogOut (CONN *conn) |
| unsigned int | FPzzz (CONN *conn, int flag) |
| unsigned int | FPGetSessionToken (CONN *conn, int type, uint32_t time, int len, char *token) |
| unsigned int | FPDisconnectOldSession (CONN *conn, uint16_t type, int len, char *token) |
| unsigned int | FPMapID (CONN *conn, char fn, int id) |
| unsigned int | FPMapName (CONN *conn, char fn, char *name) |
| unsigned int | FPBadPacket (CONN *conn, char fn, char *name) |
| unsigned int | FPGetUserInfo (CONN *conn, char flag, int id, uint16_t bitmap) |
| unsigned int | FPGetSrvrInfo (CONN *conn) |
| unsigned int | FPGetSrvrParms (CONN *conn) |
| unsigned int | FPGetSrvrMsg (CONN *conn, uint16_t type, uint16_t bitmap) |
| uint16_t | FPOpenVolFull (CONN *conn, char *vol, uint16_t bitmap) |
| uint16_t | FPOpenVol (CONN *conn, char *vol) |
| unsigned int | FPCloseVol (CONN *conn, uint16_t vol) |
| uint16_t | FPOpenDT (CONN *conn, uint16_t vol) |
| unsigned int | FPGetIcon (CONN *conn, uint16_t dt, char *creator, char *type, char itype, uint16_t size) |
| unsigned int | FPAddIcon (CONN *conn, uint16_t dt, char *creator, char *type, char itype, uint32_t tag, uint16_t size, char *data) |
| unsigned int | FPGetIconInfo (CONN *conn, uint16_t dt, unsigned char *creator, uint16_t itype) |
| unsigned int | FPGetVolParam (CONN *conn, uint16_t vol, uint16_t bitmap) |
| unsigned int | FPSetVolParam (CONN *conn, uint16_t vol, uint16_t bitmap, struct afp_volume_parms *parms) |
| unsigned int | FPCloseDT (CONN *conn, uint16_t vol) |
| unsigned int | FPCloseFork (CONN *conn, uint16_t vol) |
| unsigned int | FPFlush (CONN *conn, uint16_t vol) |
| unsigned int | FPByteLock (CONN *conn, uint16_t fork, int end, int mode, int offset, int size) |
| unsigned int | FPByteLock_ext (CONN *conn, uint16_t fork, int end, int mode, off_t offset, off_t size) |
| unsigned int | FPFlushFork (CONN *conn, uint16_t vol) |
| unsigned int | FPCloseDir (CONN *conn, uint16_t vol, int did) |
| unsigned int | FPEnumerate (CONN *conn, uint16_t vol, int did, char *name, uint16_t f_bitmap, uint16_t d_bitmap) |
| unsigned int | FPEnumerateFull (CONN *conn, uint16_t vol, uint16_t sindex, uint16_t reqcnt, uint16_t size, int did, char *name, uint16_t f_bitmap, uint16_t d_bitmap) |
| unsigned int | FPGetFileDirParams (CONN *conn, uint16_t vol, int did, char *name, uint16_t f_bitmap, uint16_t d_bitmap) |
| unsigned int | FPCreateID (CONN *conn, uint16_t vol, int did, char *name) |
| unsigned int | FPDeleteID (CONN *conn, uint16_t vol, int did) |
| unsigned int | FPResolveID (CONN *conn, uint16_t vol, int did, uint16_t bitmap) |
| unsigned int | FPEnumerate_ext (CONN *conn, uint16_t vol, int did, char *name, uint16_t f_bitmap, uint16_t d_bitmap) |
| unsigned int | FPEnumerate_ext2 (CONN *conn, uint16_t vol, int did, char *name, uint16_t f_bitmap, uint16_t d_bitmap) |
| unsigned int | FPEnumerateExt2Full (CONN *conn, uint16_t vol, uint32_t did, char *name, uint16_t f_bitmap, uint16_t d_bitmap, uint32_t startindex, uint16_t reqcount) |
| unsigned int | FPDelete (CONN *conn, uint16_t vol, int did, char *name) |
| unsigned int | FPGetComment (CONN *conn, uint16_t vol, int did, char *name) |
| unsigned int | FPRemoveComment (CONN *conn, uint16_t vol, int did, char *name) |
| unsigned int | FPAddComment (CONN *conn, uint16_t vol, int did, char *name, char *cmt) |
| unsigned int | FPOpenDir (CONN *conn, uint16_t vol, int did, char *name) |
| unsigned int | FPCreateDir (CONN *conn, uint16_t vol, int did, char *name) |
| uint16_t | FPOpenFork (CONN *conn, uint16_t vol, int type, uint16_t bitmap, int did, char *name, int access) |
| unsigned int | FPCreateFile (CONN *conn, uint16_t vol, char type, int did, char *name) |
| unsigned int | FPGetForkParam (CONN *conn, uint16_t fork, uint16_t bitmap) |
| unsigned int | FPGetAppl (CONN *conn, uint16_t dt, char *name, uint16_t index, uint16_t bitmap) |
| unsigned int | FPAddAPPL (CONN *conn, uint16_t dt, int did, char *creator, uint32_t tag, char *name) |
| unsigned int | FPRemoveAPPL (CONN *conn, uint16_t dt, int did, char *creator, char *name) |
| unsigned int | FPSetForkParam (CONN *conn, uint16_t fork, uint16_t bitmap, off_t size) |
| unsigned int | FPSetDirParms (CONN *conn, uint16_t vol, int did, char *name, uint16_t bitmap, struct afp_filedir_parms *dir) |
| unsigned int | FPSetFileParams (CONN *conn, uint16_t vol, int did, char *name, uint16_t bitmap, struct afp_filedir_parms *fil) |
| unsigned int | FPSyncDir (CONN *conn, uint16_t vol, int did) |
| unsigned int | FPCatSearch (CONN *conn, uint16_t vol, uint32_t nbe, char *pos, uint16_t f_bitmap, uint16_t d_bitmap, uint32_t rbitmap, struct afp_filedir_parms *filedir, struct afp_filedir_parms *filedir2) |
| unsigned int | FPCatSearchExt (CONN *conn, uint16_t vol, uint32_t nbe, char *pos, uint16_t f_bitmap, uint16_t d_bitmap, uint32_t rbitmap, struct afp_filedir_parms *filedir, struct afp_filedir_parms *filedir2) |
| unsigned int | FPSetFilDirParam (CONN *conn, uint16_t vol, int did, char *name, uint16_t bitmap, struct afp_filedir_parms *fil) |
| unsigned int | FPCopyFile (CONN *conn, uint16_t svol, int sdid, uint16_t dvol, int ddid, char *src, char *dstdir, char *dst) |
| unsigned int | FPExchangeFile (CONN *conn, uint16_t vol, int sdid, int ddid, char *src, char *dst) |
| unsigned int | FPMoveAndRename (CONN *conn, uint16_t svol, int sdid, int ddid, char *src, char *dst) |
| unsigned int | FPRename (CONN *conn, uint16_t svol, int sdid, char *src, char *dst) |
| unsigned int | FPReadHeader (DSI *dsi, uint16_t fork, int offset, int size, char *data) |
| unsigned int | FPReadFooter (DSI *dsi, uint16_t fork, int offset, int size, char *data) |
| unsigned int | FPRead (CONN *conn, uint16_t fork, long long offset, int size, char *data) |
| unsigned int | FPRead_ext (CONN *conn, uint16_t fork, off_t offset, off_t size, char *data) |
| unsigned int | FPRead_ext_async (CONN *conn, uint16_t fork, off_t offset, off_t size, char *data) |
| unsigned int | FPWriteHeader (DSI *dsi, uint16_t fork, int offset, int size, char *data, char whence) |
| unsigned int | FPWriteFooter (DSI *dsi, uint16_t fork, int offset, int size, char *data, char whence) |
| unsigned int | FPWrite (CONN *conn, uint16_t fork, long long offset, int size, char *data, char whence) |
| unsigned int | FPWrite_ext (CONN *conn, uint16_t fork, off_t offset, off_t size, char *data, char whence) |
| unsigned int | FPWrite_ext_async (CONN *conn, uint16_t fork, off_t offset, off_t size, char *data, char whence) |
| unsigned int | FPGetACL (CONN *conn, uint16_t vol, int did, uint16_t bitmap, char *name) |
| unsigned int | FPGetExtAttr (CONN *conn, uint16_t vol, int did, uint16_t bitmap, uint16_t maxsize, char *name, char *attr) |
| unsigned int | FPListExtAttr (CONN *conn, uint16_t vol, int did, uint16_t bitmap, int maxsize, char *name) |
| unsigned int | FPSetExtAttr (CONN *conn, uint16_t vol, int did, uint16_t bitmap, char *name, char *attr, char *data) |
| unsigned int | FPRemoveExtAttr (CONN *conn, uint16_t vol, int did, uint16_t bitmap, char *name, char *attr) |
Variables | |
| static char * | dsi_command2str [] |
| char * afp_error | ( | int | error | ) |
| const char * AfpNum2name | ( | int | num | ) |
| void dump_header | ( | DSI * | dsi | ) |
| void dump_open | ( | DSI * | dsi | ) |
| unsigned int FPAddAPPL | ( | CONN * | conn, |
| uint16_t | dt, | ||
| int | did, | ||
| char * | creator, | ||
| uint32_t | tag, | ||
| char * | name ) |
| unsigned int FPAddComment | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name, | ||
| char * | cmt ) |
| unsigned int FPAddIcon | ( | CONN * | conn, |
| uint16_t | dt, | ||
| char * | creator, | ||
| char * | type, | ||
| char | itype, | ||
| uint32_t | tag, | ||
| uint16_t | size, | ||
| char * | data ) |
| unsigned int FPBadPacket | ( | CONN * | conn, |
| char | fn, | ||
| char * | name ) |
| unsigned int FPByteLock | ( | CONN * | conn, |
| uint16_t | fork, | ||
| int | end, | ||
| int | mode, | ||
| int | offset, | ||
| int | size ) |
| unsigned int FPByteLock_ext | ( | CONN * | conn, |
| uint16_t | fork, | ||
| int | end, | ||
| int | mode, | ||
| off_t | offset, | ||
| off_t | size ) |
| unsigned int FPCatSearch | ( | CONN * | conn, |
| uint16_t | vol, | ||
| uint32_t | nbe, | ||
| char * | pos, | ||
| uint16_t | f_bitmap, | ||
| uint16_t | d_bitmap, | ||
| uint32_t | rbitmap, | ||
| struct afp_filedir_parms * | filedir, | ||
| struct afp_filedir_parms * | filedir2 ) |
| unsigned int FPCatSearchExt | ( | CONN * | conn, |
| uint16_t | vol, | ||
| uint32_t | nbe, | ||
| char * | pos, | ||
| uint16_t | f_bitmap, | ||
| uint16_t | d_bitmap, | ||
| uint32_t | rbitmap, | ||
| struct afp_filedir_parms * | filedir, | ||
| struct afp_filedir_parms * | filedir2 ) |
| unsigned int FPCloseDir | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did ) |
| unsigned int FPCloseDT | ( | CONN * | conn, |
| uint16_t | vol ) |
| unsigned int FPCloseFork | ( | CONN * | conn, |
| uint16_t | vol ) |
| unsigned int FPCloseVol | ( | CONN * | conn, |
| uint16_t | vol ) |
| unsigned int FPCopyFile | ( | CONN * | conn, |
| uint16_t | svol, | ||
| int | sdid, | ||
| uint16_t | dvol, | ||
| int | ddid, | ||
| char * | src, | ||
| char * | dstdir, | ||
| char * | dst ) |
| unsigned int FPCreateDir | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name ) |
| unsigned int FPCreateFile | ( | CONN * | conn, |
| uint16_t | vol, | ||
| char | type, | ||
| int | did, | ||
| char * | name ) |
| unsigned int FPCreateID | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name ) |
| unsigned int FPDelete | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name ) |
| unsigned int FPDeleteID | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did ) |
| unsigned int FPDisconnectOldSession | ( | CONN * | conn, |
| uint16_t | type, | ||
| int | len, | ||
| char * | token ) |
| unsigned int FPEnumerate | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name, | ||
| uint16_t | f_bitmap, | ||
| uint16_t | d_bitmap ) |
| unsigned int FPEnumerate_ext | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name, | ||
| uint16_t | f_bitmap, | ||
| uint16_t | d_bitmap ) |
| unsigned int FPEnumerate_ext2 | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name, | ||
| uint16_t | f_bitmap, | ||
| uint16_t | d_bitmap ) |
| unsigned int FPEnumerateExt2Full | ( | CONN * | conn, |
| uint16_t | vol, | ||
| uint32_t | did, | ||
| char * | name, | ||
| uint16_t | f_bitmap, | ||
| uint16_t | d_bitmap, | ||
| uint32_t | startindex, | ||
| uint16_t | reqcount ) |
| unsigned int FPEnumerateFull | ( | CONN * | conn, |
| uint16_t | vol, | ||
| uint16_t | sindex, | ||
| uint16_t | reqcnt, | ||
| uint16_t | size, | ||
| int | did, | ||
| char * | name, | ||
| uint16_t | f_bitmap, | ||
| uint16_t | d_bitmap ) |
| unsigned int FPExchangeFile | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | sdid, | ||
| int | ddid, | ||
| char * | src, | ||
| char * | dst ) |
| unsigned int FPFlush | ( | CONN * | conn, |
| uint16_t | vol ) |
| unsigned int FPFlushFork | ( | CONN * | conn, |
| uint16_t | vol ) |
| unsigned int FPGetACL | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| uint16_t | bitmap, | ||
| char * | name ) |
| unsigned int FPGetAppl | ( | CONN * | conn, |
| uint16_t | dt, | ||
| char * | name, | ||
| uint16_t | index, | ||
| uint16_t | bitmap ) |
| unsigned int FPGetComment | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name ) |
| unsigned int FPGetExtAttr | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| uint16_t | bitmap, | ||
| uint16_t | maxsize, | ||
| char * | name, | ||
| char * | attr ) |
| unsigned int FPGetFileDirParams | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name, | ||
| uint16_t | f_bitmap, | ||
| uint16_t | d_bitmap ) |
| unsigned int FPGetForkParam | ( | CONN * | conn, |
| uint16_t | fork, | ||
| uint16_t | bitmap ) |
| unsigned int FPGetIcon | ( | CONN * | conn, |
| uint16_t | dt, | ||
| char * | creator, | ||
| char * | type, | ||
| char | itype, | ||
| uint16_t | size ) |
| unsigned int FPGetIconInfo | ( | CONN * | conn, |
| uint16_t | dt, | ||
| unsigned char * | creator, | ||
| uint16_t | itype ) |
| unsigned int FPGetSessionToken | ( | CONN * | conn, |
| int | type, | ||
| uint32_t | time, | ||
| int | len, | ||
| char * | token ) |
| unsigned int FPGetSrvrInfo | ( | CONN * | conn | ) |
| unsigned int FPGetSrvrMsg | ( | CONN * | conn, |
| uint16_t | type, | ||
| uint16_t | bitmap ) |
| unsigned int FPGetSrvrParms | ( | CONN * | conn | ) |
| unsigned int FPGetUserInfo | ( | CONN * | conn, |
| char | flag, | ||
| int | id, | ||
| uint16_t | bitmap ) |
| unsigned int FPGetVolParam | ( | CONN * | conn, |
| uint16_t | vol, | ||
| uint16_t | bitmap ) |
| unsigned int FPListExtAttr | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| uint16_t | bitmap, | ||
| int | maxsize, | ||
| char * | name ) |
| unsigned int FPLogOut | ( | CONN * | conn | ) |
| unsigned int FPMapID | ( | CONN * | conn, |
| char | fn, | ||
| int | id ) |
| unsigned int FPMapName | ( | CONN * | conn, |
| char | fn, | ||
| char * | name ) |
| unsigned int FPMoveAndRename | ( | CONN * | conn, |
| uint16_t | svol, | ||
| int | sdid, | ||
| int | ddid, | ||
| char * | src, | ||
| char * | dst ) |
| unsigned int FPOpenDir | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name ) |
| uint16_t FPOpenDT | ( | CONN * | conn, |
| uint16_t | vol ) |
| uint16_t FPOpenFork | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | type, | ||
| uint16_t | bitmap, | ||
| int | did, | ||
| char * | name, | ||
| int | access ) |
| unsigned int FPopenLogin | ( | CONN * | conn, |
| char * | vers, | ||
| char * | uam, | ||
| char * | usr, | ||
| char * | pwd ) |
| unsigned int FPopenLoginExt | ( | CONN * | conn, |
| char * | vers, | ||
| char * | uam, | ||
| char * | usr, | ||
| char * | pwd ) |
| uint16_t FPOpenVol | ( | CONN * | conn, |
| char * | vol ) |
| uint16_t FPOpenVolFull | ( | CONN * | conn, |
| char * | vol, | ||
| uint16_t | bitmap ) |
| unsigned int FPRead | ( | CONN * | conn, |
| uint16_t | fork, | ||
| long long | offset, | ||
| int | size, | ||
| char * | data ) |
| unsigned int FPRead_ext | ( | CONN * | conn, |
| uint16_t | fork, | ||
| off_t | offset, | ||
| off_t | size, | ||
| char * | data ) |
| unsigned int FPRead_ext_async | ( | CONN * | conn, |
| uint16_t | fork, | ||
| off_t | offset, | ||
| off_t | size, | ||
| char * | data ) |
| unsigned int FPReadFooter | ( | DSI * | dsi, |
| uint16_t | fork, | ||
| int | offset, | ||
| int | size, | ||
| char * | data ) |
| unsigned int FPReadHeader | ( | DSI * | dsi, |
| uint16_t | fork, | ||
| int | offset, | ||
| int | size, | ||
| char * | data ) |
| unsigned int FPRemoveAPPL | ( | CONN * | conn, |
| uint16_t | dt, | ||
| int | did, | ||
| char * | creator, | ||
| char * | name ) |
| unsigned int FPRemoveComment | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name ) |
| unsigned int FPRemoveExtAttr | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| uint16_t | bitmap, | ||
| char * | name, | ||
| char * | attr ) |
| unsigned int FPRename | ( | CONN * | conn, |
| uint16_t | svol, | ||
| int | sdid, | ||
| char * | src, | ||
| char * | dst ) |
| unsigned int FPResolveID | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| uint16_t | bitmap ) |
| unsigned int FPSetDirParms | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name, | ||
| uint16_t | bitmap, | ||
| struct afp_filedir_parms * | dir ) |
| unsigned int FPSetExtAttr | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| uint16_t | bitmap, | ||
| char * | name, | ||
| char * | attr, | ||
| char * | data ) |
| unsigned int FPSetFilDirParam | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name, | ||
| uint16_t | bitmap, | ||
| struct afp_filedir_parms * | fil ) |
| unsigned int FPSetFileParams | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did, | ||
| char * | name, | ||
| uint16_t | bitmap, | ||
| struct afp_filedir_parms * | fil ) |
| unsigned int FPSetForkParam | ( | CONN * | conn, |
| uint16_t | fork, | ||
| uint16_t | bitmap, | ||
| off_t | size ) |
| unsigned int FPSetVolParam | ( | CONN * | conn, |
| uint16_t | vol, | ||
| uint16_t | bitmap, | ||
| struct afp_volume_parms * | parms ) |
| unsigned int FPSyncDir | ( | CONN * | conn, |
| uint16_t | vol, | ||
| int | did ) |
| unsigned int FPWrite | ( | CONN * | conn, |
| uint16_t | fork, | ||
| long long | offset, | ||
| int | size, | ||
| char * | data, | ||
| char | whence ) |
| unsigned int FPWrite_ext | ( | CONN * | conn, |
| uint16_t | fork, | ||
| off_t | offset, | ||
| off_t | size, | ||
| char * | data, | ||
| char | whence ) |
| unsigned int FPWrite_ext_async | ( | CONN * | conn, |
| uint16_t | fork, | ||
| off_t | offset, | ||
| off_t | size, | ||
| char * | data, | ||
| char | whence ) |
| unsigned int FPWriteFooter | ( | DSI * | dsi, |
| uint16_t | fork, | ||
| int | offset, | ||
| int | size, | ||
| char * | data, | ||
| char | whence ) |
| unsigned int FPWriteHeader | ( | DSI * | dsi, |
| uint16_t | fork, | ||
| int | offset, | ||
| int | size, | ||
| char * | data, | ||
| char | whence ) |
| unsigned int FPzzz | ( | CONN * | conn, |
| int | flag ) |
|
static |