#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <sys/time.h>
#include <netdb.h>
#include <netinet/in.h>
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
#include <rpcsvc/rquota.h>
#include <atalk/afp.h>
#include <atalk/logger.h>
#include "unix.h"
Macros | |
#define | PORTMAP 1 |
#define | GQR_STATUS status |
#define | GQR_RQUOTA getquota_rslt_u.gqr_rquota |
#define | NFS_BSIZE gq_rslt.GQR_RQUOTA.rq_bsize / bsize |
Functions | |
static int | callaurpc (struct vol *vol, u_long prognum, u_long versnum, u_long procnum, xdrproc_t inproc, char *in, xdrproc_t outproc, char *out) |
int | getnfsquota (struct vol *vol, const int uid, const uint32_t bsize, struct dqblk *dqp) |
#define GQR_RQUOTA getquota_rslt_u.gqr_rquota |
#define GQR_STATUS status |
#define NFS_BSIZE gq_rslt.GQR_RQUOTA.rq_bsize / bsize |
#define PORTMAP 1 |
|
static |
int getnfsquota | ( | struct vol * | vol, |
const int | uid, | ||
const uint32_t | bsize, | ||
struct dqblk * | dqp ) |