Lines Matching +full:loc +full:- +full:code
1 /*-
2 * Copyright (c) 2005-2008 Apple Inc.
6 * This code was developed in part by Robert N. M. Watson, Senior Principal
13 * 1. Redistributions of source code must retain the above copyright
72 #define AUDIT_HEADER_EX_SIZE(a) ((a)->ai_termid.at_type+18+sizeof(u_int32_t))
82 #define ADD_U_CHAR(loc, val) \ argument
84 *(loc) = (val); \
85 (loc) += sizeof(u_char); \
89 #define ADD_U_INT16(loc, val) \ argument
91 be16enc((loc), (val)); \
92 (loc) += sizeof(u_int16_t); \
95 #define ADD_U_INT32(loc, val) \ argument
97 be32enc((loc), (val)); \
98 (loc) += sizeof(u_int32_t); \
101 #define ADD_U_INT64(loc, val) \ argument
103 be64enc((loc), (val)); \
104 (loc) += sizeof(u_int64_t); \
107 #define ADD_MEM(loc, data, size) \ argument
109 memcpy((loc), (data), (size)); \
110 (loc) += size; \
113 #define ADD_STRING(loc, data, size) ADD_MEM(loc, data, size) argument