(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/plugins/quota/rquota_xdr.c) |
| |
| 158 | | | xdr_rquota (XDR *xdrs, rquota *objp) |
| 159 | | | { |
| 160 | | | register int32_t *buf ATTR_UNUSED; |
| 161 | | | |
| 162 | | | |
| 163 | | | if (xdrs->x_op == XDR_ENCODE) { |
| 164 | | | buf = XDR_INLINE (xdrs, 10 * BYTES_PER_XDR_UNIT);
x /usr/include/rpc/xdr.h |
| |
205 | #define XDR_INLINE(xdrs, len) \ |
206 | (*(xdrs)->x_ops->x_inline)(xdrs, len) |
| |
x /usr/include/rpc/xdr.h |
| |
90 | #define BYTES_PER_XDR_UNIT (4) |
| |
|
| 165 | | | if (buf == NULL) { |
| 166 | | | if (!xdr_int (xdrs, &objp->rq_bsize)) |
| 167 | | | return FALSE; |
| 168 | | | if (!xdr_bool (xdrs, &objp->rq_active)) |
| 169 | | | return FALSE; |
| 170 | | | if (!xdr_u_int (xdrs, &objp->rq_bhardlimit)) |
| 171 | | | return FALSE; |
| 172 | | | if (!xdr_u_int (xdrs, &objp->rq_bsoftlimit)) |
| 173 | | | return FALSE; |
| 174 | | | if (!xdr_u_int (xdrs, &objp->rq_curblocks)) |
| 175 | | | return FALSE; |
| 176 | | | if (!xdr_u_int (xdrs, &objp->rq_fhardlimit)) |
| 177 | | | return FALSE; |
| 178 | | | if (!xdr_u_int (xdrs, &objp->rq_fsoftlimit)) |
| 179 | | | return FALSE; |
| 180 | | | if (!xdr_u_int (xdrs, &objp->rq_curfiles)) |
| 181 | | | return FALSE; |
| 182 | | | if (!xdr_u_int (xdrs, &objp->rq_btimeleft)) |
| 183 | | | return FALSE; |
| 184 | | | if (!xdr_u_int (xdrs, &objp->rq_ftimeleft)) |
| 185 | | | return FALSE; |
| 186 | | | } else { |
| 187 | | | (void)IXDR_PUT_LONG(buf, objp->rq_bsize);
x /usr/include/rpc/xdr.h |
| |
264 | #define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) |
| |
x /usr/include/rpc/xdr.h |
| |
255 | #define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)(v))) |
| |
x /usr/include/netinet/in.h |
| |
393 | # define htonl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 188 | | | (void)IXDR_PUT_BOOL(buf, objp->rq_active);
x /usr/include/rpc/xdr.h |
| |
274 | #define IXDR_PUT_BOOL(buf, v) IXDR_PUT_LONG(buf, (long)(v)) |
| |
x /usr/include/rpc/xdr.h |
| |
264 | #define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) |
| |
x /usr/include/rpc/xdr.h |
| |
255 | #define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)(v))) |
| |
x /usr/include/netinet/in.h |
| |
393 | # define htonl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 189 | | | (void)IXDR_PUT_U_LONG(buf, objp->rq_bhardlimit);
x /usr/include/rpc/xdr.h |
| |
266 | #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v)) |
| |
x /usr/include/rpc/xdr.h |
| |
264 | #define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) |
| |
x /usr/include/rpc/xdr.h |
| |
255 | #define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)(v))) |
| |
x /usr/include/netinet/in.h |
| |
393 | # define htonl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 190 | | | (void)IXDR_PUT_U_LONG(buf, objp->rq_bsoftlimit);
x /usr/include/rpc/xdr.h |
| |
266 | #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v)) |
| |
x /usr/include/rpc/xdr.h |
| |
264 | #define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) |
| |
x /usr/include/rpc/xdr.h |
| |
255 | #define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)(v))) |
| |
x /usr/include/netinet/in.h |
| |
393 | # define htonl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 191 | | | (void)IXDR_PUT_U_LONG(buf, objp->rq_curblocks);
x /usr/include/rpc/xdr.h |
| |
266 | #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v)) |
| |
x /usr/include/rpc/xdr.h |
| |
264 | #define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) |
| |
x /usr/include/rpc/xdr.h |
| |
255 | #define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)(v))) |
| |
x /usr/include/netinet/in.h |
| |
393 | # define htonl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 192 | | | (void)IXDR_PUT_U_LONG(buf, objp->rq_fhardlimit);
x /usr/include/rpc/xdr.h |
| |
266 | #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v)) |
| |
x /usr/include/rpc/xdr.h |
| |
264 | #define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) |
| |
x /usr/include/rpc/xdr.h |
| |
255 | #define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)(v))) |
| |
x /usr/include/netinet/in.h |
| |
393 | # define htonl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 193 | | | (void)IXDR_PUT_U_LONG(buf, objp->rq_fsoftlimit);
x /usr/include/rpc/xdr.h |
| |
266 | #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v)) |
| |
x /usr/include/rpc/xdr.h |
| |
264 | #define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) |
| |
x /usr/include/rpc/xdr.h |
| |
255 | #define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)(v))) |
| |
x /usr/include/netinet/in.h |
| |
393 | # define htonl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 194 | | | (void)IXDR_PUT_U_LONG(buf, objp->rq_curfiles);
x /usr/include/rpc/xdr.h |
| |
266 | #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v)) |
| |
x /usr/include/rpc/xdr.h |
| |
264 | #define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) |
| |
x /usr/include/rpc/xdr.h |
| |
255 | #define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)(v))) |
| |
x /usr/include/netinet/in.h |
| |
393 | # define htonl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 195 | | | (void)IXDR_PUT_U_LONG(buf, objp->rq_btimeleft);
x /usr/include/rpc/xdr.h |
| |
266 | #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v)) |
| |
x /usr/include/rpc/xdr.h |
| |
264 | #define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) |
| |
x /usr/include/rpc/xdr.h |
| |
255 | #define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)(v))) |
| |
x /usr/include/netinet/in.h |
| |
393 | # define htonl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 196 | | | (void)IXDR_PUT_U_LONG(buf, objp->rq_ftimeleft);
x /usr/include/rpc/xdr.h |
| |
266 | #define IXDR_PUT_U_LONG(buf, v) IXDR_PUT_LONG(buf, (long)(v)) |
| |
x /usr/include/rpc/xdr.h |
| |
264 | #define IXDR_PUT_LONG(buf, v) ((long)IXDR_PUT_INT32(buf, (long)(v))) |
| |
x /usr/include/rpc/xdr.h |
| |
255 | #define IXDR_PUT_INT32(buf, v) (*(buf)++ = (int32_t)htonl((uint32_t)(v))) |
| |
x /usr/include/netinet/in.h |
| |
393 | # define htonl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
Unused Value
The value assigned to buf is never subsequently used on any execution path. |
|
| 197 | | | } |
| 198 | | | return TRUE; |
| 199 | | | } else if (xdrs->x_op == XDR_DECODE) { |
| 200 | | | buf = XDR_INLINE (xdrs, 10 * BYTES_PER_XDR_UNIT);
x /usr/include/rpc/xdr.h |
| |
205 | #define XDR_INLINE(xdrs, len) \ |
206 | (*(xdrs)->x_ops->x_inline)(xdrs, len) |
| |
x /usr/include/rpc/xdr.h |
| |
90 | #define BYTES_PER_XDR_UNIT (4) |
| |
|
| 201 | | | if (buf == NULL) { |
| 202 | | | if (!xdr_int (xdrs, &objp->rq_bsize)) |
| 203 | | | return FALSE; |
| 204 | | | if (!xdr_bool (xdrs, &objp->rq_active)) |
| 205 | | | return FALSE; |
| 206 | | | if (!xdr_u_int (xdrs, &objp->rq_bhardlimit)) |
| 207 | | | return FALSE; |
| 208 | | | if (!xdr_u_int (xdrs, &objp->rq_bsoftlimit)) |
| 209 | | | return FALSE; |
| 210 | | | if (!xdr_u_int (xdrs, &objp->rq_curblocks)) |
| 211 | | | return FALSE; |
| 212 | | | if (!xdr_u_int (xdrs, &objp->rq_fhardlimit)) |
| 213 | | | return FALSE; |
| 214 | | | if (!xdr_u_int (xdrs, &objp->rq_fsoftlimit)) |
| 215 | | | return FALSE; |
| 216 | | | if (!xdr_u_int (xdrs, &objp->rq_curfiles)) |
| 217 | | | return FALSE; |
| 218 | | | if (!xdr_u_int (xdrs, &objp->rq_btimeleft)) |
| 219 | | | return FALSE; |
| 220 | | | if (!xdr_u_int (xdrs, &objp->rq_ftimeleft)) |
| 221 | | | return FALSE; |
| 222 | | | } else { |
| 223 | | | objp->rq_bsize = IXDR_GET_LONG(buf);
x /usr/include/rpc/xdr.h |
| |
263 | #define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
256 | #define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
254 | #define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++)) |
| |
x /usr/include/netinet/in.h |
| |
391 | # define ntohl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 224 | | | objp->rq_active = IXDR_GET_BOOL(buf);
x /usr/include/rpc/xdr.h |
| |
269 | #define IXDR_GET_BOOL(buf) ((bool_t)IXDR_GET_LONG(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
263 | #define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
256 | #define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
254 | #define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++)) |
| |
x /usr/include/netinet/in.h |
| |
391 | # define ntohl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 225 | | | objp->rq_bhardlimit = IXDR_GET_U_LONG(buf);
x /usr/include/rpc/xdr.h |
| |
265 | #define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
263 | #define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
256 | #define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
254 | #define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++)) |
| |
x /usr/include/netinet/in.h |
| |
391 | # define ntohl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 226 | | | objp->rq_bsoftlimit = IXDR_GET_U_LONG(buf);
x /usr/include/rpc/xdr.h |
| |
265 | #define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
263 | #define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
256 | #define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
254 | #define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++)) |
| |
x /usr/include/netinet/in.h |
| |
391 | # define ntohl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 227 | | | objp->rq_curblocks = IXDR_GET_U_LONG(buf);
x /usr/include/rpc/xdr.h |
| |
265 | #define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
263 | #define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
256 | #define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
254 | #define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++)) |
| |
x /usr/include/netinet/in.h |
| |
391 | # define ntohl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 228 | | | objp->rq_fhardlimit = IXDR_GET_U_LONG(buf);
x /usr/include/rpc/xdr.h |
| |
265 | #define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
263 | #define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
256 | #define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
254 | #define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++)) |
| |
x /usr/include/netinet/in.h |
| |
391 | # define ntohl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 229 | | | objp->rq_fsoftlimit = IXDR_GET_U_LONG(buf);
x /usr/include/rpc/xdr.h |
| |
265 | #define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
263 | #define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
256 | #define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
254 | #define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++)) |
| |
x /usr/include/netinet/in.h |
| |
391 | # define ntohl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 230 | | | objp->rq_curfiles = IXDR_GET_U_LONG(buf);
x /usr/include/rpc/xdr.h |
| |
265 | #define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
263 | #define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
256 | #define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
254 | #define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++)) |
| |
x /usr/include/netinet/in.h |
| |
391 | # define ntohl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 231 | | | objp->rq_btimeleft = IXDR_GET_U_LONG(buf);
x /usr/include/rpc/xdr.h |
| |
265 | #define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
263 | #define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
256 | #define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
254 | #define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++)) |
| |
x /usr/include/netinet/in.h |
| |
391 | # define ntohl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 232 | | | objp->rq_ftimeleft = IXDR_GET_U_LONG(buf);
x /usr/include/rpc/xdr.h |
| |
265 | #define IXDR_GET_U_LONG(buf) ((u_long)IXDR_GET_LONG(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
263 | #define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
256 | #define IXDR_GET_U_INT32(buf) ((uint32_t)IXDR_GET_INT32(buf)) |
| |
x /usr/include/rpc/xdr.h |
| |
254 | #define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++)) |
| |
x /usr/include/netinet/in.h |
| |
391 | # define ntohl(x) __bswap_32 (x) |
| |
x /usr/include/bits/byteswap.h |
| |
69 | # define __bswap_32(x) \ |
70 | (__extension__ \ |
71 | ({ register unsigned int __v, __x = (x); \ |
72 | if (__builtin_constant_p (__x)) \ |
73 | __v = __bswap_constant_32 (__x); \ |
74 | else \ |
75 | __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ |
76 | __v; })) |
| |
x /usr/include/bits/byteswap.h |
| |
56 | #define __bswap_constant_32(x) \ |
57 | ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ |
58 | (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) |
| |
|
| 233 | | | } |
| 234 | | | return TRUE; |
| 235 | | | } |
| 236 | | | |
| 237 | | | if (!xdr_int (xdrs, &objp->rq_bsize)) |
| 238 | | | return FALSE; |
| 239 | | | if (!xdr_bool (xdrs, &objp->rq_active)) |
| 240 | | | return FALSE; |
| 241 | | | if (!xdr_u_int (xdrs, &objp->rq_bhardlimit)) |
| 242 | | | return FALSE; |
| 243 | | | if (!xdr_u_int (xdrs, &objp->rq_bsoftlimit)) |
| 244 | | | return FALSE; |
| 245 | | | if (!xdr_u_int (xdrs, &objp->rq_curblocks)) |
| 246 | | | return FALSE; |
| 247 | | | if (!xdr_u_int (xdrs, &objp->rq_fhardlimit)) |
| 248 | | | return FALSE; |
| 249 | | | if (!xdr_u_int (xdrs, &objp->rq_fsoftlimit)) |
| 250 | | | return FALSE; |
| 251 | | | if (!xdr_u_int (xdrs, &objp->rq_curfiles)) |
| 252 | | | return FALSE; |
| 253 | | | if (!xdr_u_int (xdrs, &objp->rq_btimeleft)) |
| 254 | | | return FALSE; |
| 255 | | | if (!xdr_u_int (xdrs, &objp->rq_ftimeleft)) |
| 256 | | | return FALSE; |
| 257 | | | return TRUE; |
| 258 | | | } |
| |