/* * Please do not edit this file. * It was generated using rpcgen. */ #include /* for memset */ #include "fs.h" #define MAX_FILENAME_SIZE 255 #define MAX_BLOCK_SIZE 8192 /* Default timeout can be changed using clnt_control() */ static struct timeval TIMEOUT = { 25, 0 }; char ** cred_1(void *argp, CLIENT *clnt) { static char *clnt_res; memset((char *)&clnt_res, 0, sizeof(clnt_res)); if (clnt_call (clnt, CRED, (xdrproc_t) xdr_void, (caddr_t) argp, (xdrproc_t) xdr_wrapstring, (caddr_t) &clnt_res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return (&clnt_res); } fs_get_ret_t * get_1(fs_get_param_t *argp, CLIENT *clnt) { static fs_get_ret_t clnt_res; memset((char *)&clnt_res, 0, sizeof(clnt_res)); if (clnt_call (clnt, GET, (xdrproc_t) xdr_fs_get_param_t, (caddr_t) argp, (xdrproc_t) xdr_fs_get_ret_t, (caddr_t) &clnt_res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return (&clnt_res); } fs_list_t * list_1(fs_list_t *argp, CLIENT *clnt) { static fs_list_t clnt_res; memset((char *)&clnt_res, 0, sizeof(clnt_res)); if (clnt_call (clnt, LIST, (xdrproc_t) xdr_fs_list_t, (caddr_t) argp, (xdrproc_t) xdr_fs_list_t, (caddr_t) &clnt_res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return (&clnt_res); } int * exist_1(char **argp, CLIENT *clnt) { static int clnt_res; memset((char *)&clnt_res, 0, sizeof(clnt_res)); if (clnt_call (clnt, EXIST, (xdrproc_t) xdr_wrapstring, (caddr_t) argp, (xdrproc_t) xdr_int, (caddr_t) &clnt_res, TIMEOUT) != RPC_SUCCESS) { return (NULL); } return (&clnt_res); } /* author: Gustavo Sverzut Barbieri (http://www.gustavobarbieri.com.br) */