/freebsd/tests/sys/fs/fusefs/ |
H A D | mockfs.cc | 138 out0->body.entry.nodeid = 0; in ReturnNegativeCache() 141 out0->body.entry.entry_valid = entry_valid->tv_sec; in ReturnNegativeCache() 142 out0->body.entry.entry_valid_nsec = entry_valid->tv_nsec; in ReturnNegativeCache() 178 printf(" mask=%#x", in.body.access.mask); in debug_request() 182 in.body.bmap.block, in.body.bmap.blocksize); in debug_request() 187 in.body.copy_file_range.off_in, in debug_request() 188 in.body.copy_file_range.nodeid_out, in debug_request() 189 in.body.copy_file_range.off_out, in debug_request() 190 in.body.copy_file_range.len); in debug_request() 194 in.body.copy_file_range.fh_in, in debug_request() [all …]
|
H A D | setattr.cc | 91 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F() 92 out.body.entry.nodeid = ino; in TEST_F() 93 out.body.entry.entry_valid = UINT64_MAX; in TEST_F() 104 out.body.attr.attr.ino = ino; // Must match nodeid in TEST_F() 105 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 106 out.body.attr.attr_valid = UINT64_MAX; in TEST_F() 135 out.body.entry.attr.mode = S_IFREG | oldmode; in TEST_F() 136 out.body.entry.nodeid = ino; in TEST_F() 144 in.body.setattr.valid == valid && in TEST_F() 145 in.body.setattr.mode == newmode); in TEST_F() [all …]
|
H A D | nfs.cc | 85 out.body.entry.attr.mode = mode; in TEST_F() 86 out.body.entry.nodeid = ino; in TEST_F() 87 out.body.entry.generation = 1; in TEST_F() 88 out.body.entry.attr_valid = UINT64_MAX; in TEST_F() 89 out.body.entry.entry_valid = 0; in TEST_F() 96 out.body.entry.attr.mode = mode; in TEST_F() 97 out.body.entry.nodeid = ino; in TEST_F() 98 out.body.entry.generation = 2; in TEST_F() 99 out.body.entry.attr_valid = UINT64_MAX; in TEST_F() 100 out.body.entry.entry_valid = 0; in TEST_F() [all …]
|
H A D | lookup.cc | 77 out.body.entry.nodeid = ino; in TEST_F() 78 out.body.entry.attr_valid = UINT64_MAX; in TEST_F() 79 out.body.entry.attr.ino = ino; // Must match nodeid in TEST_F() 80 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F() 81 out.body.entry.attr.size = 1; in TEST_F() 82 out.body.entry.attr.blocks = 2; in TEST_F() 83 out.body.entry.attr.atime = 3; in TEST_F() 84 out.body.entry.attr.mtime = 4; in TEST_F() 85 out.body.entry.attr.ctime = 5; in TEST_F() 86 out.body.entry.attr.atimensec = 6; in TEST_F() [all …]
|
H A D | getattr.cc | 51 out.body.entry.attr.mode = mode; in expect_lookup() 52 out.body.entry.nodeid = ino; in expect_lookup() 53 out.body.entry.attr.nlink = 1; in expect_lookup() 54 out.body.entry.attr_valid = attr_valid; in expect_lookup() 55 out.body.entry.attr_valid_nsec = attr_valid_nsec; in expect_lookup() 56 out.body.entry.attr.size = size; in expect_lookup() 57 out.body.entry.entry_valid = UINT64_MAX; in expect_lookup() 84 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F() 85 out.body.entry.nodeid = ino; in TEST_F() 86 out.body.entry.entry_valid = UINT64_MAX; in TEST_F() [all …]
|
H A D | link.cc | 46 const char *name = (const char*)in.body.bytes in expect_link() 49 in.body.link.oldnodeid == ino && in expect_link() 55 out.body.entry.nodeid = ino; in expect_link() 56 out.body.entry.attr.mode = mode; in expect_link() 57 out.body.entry.attr.nlink = nlink; in expect_link() 58 out.body.entry.attr_valid = UINT64_MAX; in expect_link() 59 out.body.entry.entry_valid = UINT64_MAX; in expect_link() 80 const char *name = (const char*)in.body.bytes in expect_link() 83 in.body.link.oldnodeid == ino && in expect_link() 89 out.body.entry.nodeid = ino; in expect_link() [all …]
|
H A D | create.cc | 50 const char *name = (const char*)in.body.bytes + in expect_create() 53 in.body.create.mode == mode && in expect_create() 54 in.body.create.umask == mask && in expect_create() 75 const char *name = (const char*)in.body.bytes + in expect_create() 78 in.body.create.mode == mode && in expect_create() 99 const char *name = (const char*)in.body.bytes + in expect_create() 102 in.body.create.mode == mode && in expect_create() 129 out.body.create.entry.attr.mode = mode; in TEST_F() 130 out.body.create.entry.nodeid = ino; in TEST_F() 131 out.body.create.entry.entry_valid = UINT64_MAX; in TEST_F() [all …]
|
H A D | mkdir.cc | 64 const char *name = (const char*)in.body.bytes + in TEST_F() 67 in.body.mkdir.mode == (S_IFDIR | mode) && in TEST_F() 99 const char *name = (const char*)in.body.bytes + in TEST_F() 102 in.body.mkdir.mode == (S_IFDIR | mode) && in TEST_F() 108 out.body.create.entry.attr.mode = S_IFDIR | mode; in TEST_F() 109 out.body.create.entry.nodeid = ino; in TEST_F() 110 out.body.create.entry.entry_valid = UINT64_MAX; in TEST_F() 111 out.body.create.entry.attr_valid = UINT64_MAX; in TEST_F() 137 const char *name = (const char*)in.body.bytes + in TEST_F() 140 in.body.mkdir.mode == (S_IFDIR | mode) && in TEST_F() [all …]
|
H A D | copy_file_range.cc | 72 out.body.open.fh = fh; in expect_open() 73 out.body.open.open_flags = flags; in expect_open() 82 const char *buf = (const char*)in.body.bytes + in expect_write() 87 in.body.write.offset == offset && in expect_write() 88 in.body.write.size == isize && in expect_write() 94 out.body.write.size = osize; in expect_write() 173 in.body.copy_file_range.fh_in == fh1 && in TEST_F() 174 (off_t)in.body.copy_file_range.off_in == start1 && in TEST_F() 175 in.body.copy_file_range.nodeid_out == ino2 && in TEST_F() 176 in.body.copy_file_range.fh_out == fh2 && in TEST_F() [all …]
|
H A D | utils.cc | 203 in.body.access.mask == access_mode); in expect_access() 233 in.body.fallocate.offset == offset && in expect_fallocate() 234 in.body.fallocate.length == length && in expect_fallocate() 235 in.body.fallocate.mode == mode); in expect_fallocate() 262 in.body.forget.nlookup == nlookup); in expect_forget() 282 out.body.attr.attr.ino = ino; // Must match nodeid in expect_getattr() 283 out.body.attr.attr.mode = S_IFREG | 0644; in expect_getattr() 284 out.body.attr.attr.size = size; in expect_getattr() 285 out.body.attr.attr_valid = UINT64_MAX; in expect_getattr() 293 const char *a = (const char*)in.body in expect_getxattr() [all...] |
H A D | last_local_modify.cc | 234 out.body.entry.nodeid = ino; in TEST_P() 235 out.body.entry.attr.size = oldsize; in TEST_P() 236 out.body.entry.nodeid = ino; in TEST_P() 237 out.body.entry.attr_valid_nsec = NAP_NS / 2; in TEST_P() 238 out.body.entry.attr.ino = ino; in TEST_P() 239 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_P() 258 mutator_size = in.body.write.size; in TEST_P() 261 mutator_size = in.body.copy_file_range.len; in TEST_P() 278 out0->body.entry.attr.mode = S_IFREG | 0644; in TEST_P() 279 out0->body.entry.nodeid = ino; in TEST_P() [all …]
|
H A D | locks.cc | 72 in.body.setlk.fh == FH && in expect_setlk() 73 in.body.setlk.owner == (uint32_t)pid && in expect_setlk() 74 in.body.setlk.lk.start == start && in expect_setlk() 75 in.body.setlk.lk.end == end && in expect_setlk() 76 in.body.setlk.lk.type == type && in expect_setlk() 77 in.body.setlk.lk.pid == (uint64_t)pid); in expect_setlk() 89 in.body.setlkw.fh == FH && in expect_setlkw() 90 in.body.setlkw.owner == (uint32_t)pid && in expect_setlkw() 91 in.body.setlkw.lk.start == start && in expect_setlkw() 92 in.body.setlkw.lk.end == end && in expect_setlkw() [all …]
|
H A D | forget.cc | 75 out.body.entry.attr.mode = mode; in TEST_F() 76 out.body.entry.nodeid = ino; in TEST_F() 77 out.body.entry.attr.nlink = 1; in TEST_F() 78 out.body.entry.attr_valid = UINT64_MAX; in TEST_F() 113 out.body.entry.attr.mode = S_IFDIR | 0755; in TEST_F() 114 out.body.entry.nodeid = dir_ino; in TEST_F() 115 out.body.entry.attr.nlink = 2; in TEST_F() 116 out.body.entry.attr_valid = UINT64_MAX; in TEST_F() 117 out.body.entry.entry_valid = UINT64_MAX; in TEST_F() 130 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F() [all …]
|
H A D | rename.cc | 112 const char *src = (const char*)in.body.bytes + in TEST_F() 116 in.body.rename.newdir == dst_dir_ino && in TEST_F() 147 const char *src = (const char*)in.body.bytes + in TEST_F() 151 in.body.rename.newdir == dst_dir_ino && in TEST_F() 200 const char *src = (const char*)in.body.bytes + in TEST_F() 204 in.body.rename.newdir == dst_dir_ino && in TEST_F() 233 out.body.entry.nodeid = dst_dir_ino; in TEST_F() 234 out.body.entry.entry_valid = UINT64_MAX; in TEST_F() 235 out.body.entry.attr_valid = UINT64_MAX; in TEST_F() 236 out.body.entry.attr.mode = S_IFDIR | 0755; in TEST_F() [all …]
|
H A D | bmap.cc | 59 in.body.bmap.block == lbn && in expect_bmap() 60 in.body.bmap.blocksize == blocksize); in expect_bmap() 65 out.body.bmap.block = pbn; in expect_bmap() 213 in.body.read.offset == 0 && in TEST_P() 214 ( in.body.read.size == filesize || in TEST_P() 215 in.body.read.size == filesize / 2)); in TEST_P() 219 size_t osize = in.body.read.size; in TEST_P() 221 assert(osize < sizeof(out.body.bytes)); in TEST_P() 223 bzero(out.body.bytes, osize); in TEST_P() 235 out.body.attr.attr_valid = 0; in TEST_P() [all …]
|
/freebsd/usr.bin/bintrans/ |
H A D | qp.c | 53 decode_quoted_printable(const char *body, FILE *fpo) in decode_quoted_printable() argument 55 while (*body != '\0') { in decode_quoted_printable() 56 switch (*body) { in decode_quoted_printable() 58 if (strlen(body) < 2) { in decode_quoted_printable() 59 fputc(*body, fpo); in decode_quoted_printable() 63 if (body[1] == '\r' && body[2] == '\n') { in decode_quoted_printable() 64 body += 2; in decode_quoted_printable() 67 if (body[1] == '\n') { in decode_quoted_printable() 68 body++; in decode_quoted_printable() 71 if (strchr("0123456789ABCDEFabcdef", body[1]) == NULL) { in decode_quoted_printable() [all …]
|
/freebsd/contrib/bmake/unit-tests/ |
H A D | directive-for-escape.exp | 2 For: loop body with chars = !"#$%&'()*+,-./0-9:;<=>?@A-Z[\]_^a-z{|}~: 8 For: loop body with chars = !"\\#$%&'()*+,-./0-9:;<=>?@A-Z[\]_^a-z{|}~: 14 For: loop body with i = $: 17 For: loop body with i = ${V}: 20 For: loop body with i = ${V:=-with-modifier}: 23 For: loop body with i = $(V): 26 For: loop body with i = $(V:=-with-modifier): 30 For: loop body with i = $: 33 For: loop body with i = ${V}: 36 For: loop body with i = ${V:=-with-modifier}: [all …]
|
/freebsd/sys/dev/hyperv/utilities/ |
H A D | hv_kvp.c | 230 (char *)umsg->body.kvp_ip_val.ip_addr, in hv_kvp_convert_utf8_ipinfo_to_utf16() 231 strlen((char *)umsg->body.kvp_ip_val.ip_addr), in hv_kvp_convert_utf8_ipinfo_to_utf16() 236 (char *)umsg->body.kvp_ip_val.sub_net, in hv_kvp_convert_utf8_ipinfo_to_utf16() 237 strlen((char *)umsg->body.kvp_ip_val.sub_net), in hv_kvp_convert_utf8_ipinfo_to_utf16() 242 (char *)umsg->body.kvp_ip_val.gate_way, in hv_kvp_convert_utf8_ipinfo_to_utf16() 243 strlen((char *)umsg->body.kvp_ip_val.gate_way), in hv_kvp_convert_utf8_ipinfo_to_utf16() 248 (char *)umsg->body.kvp_ip_val.dns_addr, in hv_kvp_convert_utf8_ipinfo_to_utf16() 249 strlen((char *)umsg->body.kvp_ip_val.dns_addr), in hv_kvp_convert_utf8_ipinfo_to_utf16() 254 (char *)umsg->body.kvp_ip_val.adapter_id, in hv_kvp_convert_utf8_ipinfo_to_utf16() 255 strlen((char *)umsg->body.kvp_ip_val.adapter_id), in hv_kvp_convert_utf8_ipinfo_to_utf16() [all …]
|
/freebsd/contrib/wpa/src/pae/ |
H A D | ieee802_1x_kay.c | 85 static void set_mka_param_body_len(void *body, unsigned int len) in set_mka_param_body_len() argument 87 struct ieee802_1x_mka_hdr *hdr = body; in set_mka_param_body_len() 93 static unsigned int get_mka_param_body_len(const void *body) in get_mka_param_body_len() argument 95 const struct ieee802_1x_mka_hdr *hdr = body; in get_mka_param_body_len() 100 static u8 get_mka_param_body_type(const void *body) in get_mka_param_body_type() argument 102 const struct ieee802_1x_mka_hdr *hdr = body; in get_mka_param_body_type() 139 ieee802_1x_mka_dump_basic_body(struct ieee802_1x_mka_basic_body *body) in ieee802_1x_mka_dump_basic_body() argument 143 if (!body) in ieee802_1x_mka_dump_basic_body() 147 body_len = get_mka_param_body_len(body); in ieee802_1x_mka_dump_basic_body() 149 wpa_printf(MSG_DEBUG, "\tMKA Version Identifier: %d", body->version); in ieee802_1x_mka_dump_basic_body() [all …]
|
/freebsd/contrib/bmake/ |
H A D | for.c | 38 * # the body 41 * When a .for line is parsed, the following lines are copied to the body of 43 * phase, the body is not yet evaluated. This also applies to any nested 48 * body is scanned for expressions, and those that match the 50 * that, the body is treated like a file from an .include directive. 67 Buffer body; /* Unexpanded body of the loop */ member 98 Buf_Init(&f->body); in ForLoop_New() 112 Buf_Done(&f->body); in ForLoop_Free() 291 Buf_AddStr(&accumFor->body, line); in For_Accum() 292 Buf_AddByte(&accumFor->body, '\n'); in For_Accum() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | mk_rep.c | 43 EncAPRepPart body; in krb5_mk_rep() local 52 memset (&body, 0, sizeof(body)); in krb5_mk_rep() 54 body.ctime = auth_context->authenticator->ctime; in krb5_mk_rep() 55 body.cusec = auth_context->authenticator->cusec; in krb5_mk_rep() 62 free_EncAPRepPart(&body); in krb5_mk_rep() 67 &body.subkey); in krb5_mk_rep() 69 free_EncAPRepPart(&body); in krb5_mk_rep() 75 body.subkey = NULL; in krb5_mk_rep() 81 ALLOC(body.seq_number, 1); in krb5_mk_rep() 82 if (body.seq_number == NULL) { in krb5_mk_rep() [all …]
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_mbox_prop.h | 54 (tag_)->tag_hdr.val_buf_size = sizeof((tag_)->body); \ 55 (tag_)->tag_hdr.val_len = sizeof((tag_)->body.req); \ 87 } body; member 103 } body; member 121 } body; member 144 } body; member 167 } body; member 183 } body; member 208 } body; member 224 } body; member [all …]
|
H A D | bcm2835_mbox.c | 453 msg.tag_hdr.val_buf_size = sizeof(msg.body); in bcm2835_mbox_set_power_state() 454 msg.tag_hdr.val_len = sizeof(msg.body.req); in bcm2835_mbox_set_power_state() 455 msg.body.req.device_id = device_id; in bcm2835_mbox_set_power_state() 456 msg.body.req.state = (on ? BCM2835_MBOX_POWER_ON : 0) | in bcm2835_mbox_set_power_state() 475 msg.tag_hdr.val_buf_size = sizeof(msg.body); in bcm2835_mbox_notify_xhci_reset() 476 msg.tag_hdr.val_len = sizeof(msg.body.req); in bcm2835_mbox_notify_xhci_reset() 477 msg.body.req.pci_device_addr = pci_dev_addr; in bcm2835_mbox_notify_xhci_reset() 495 msg.tag_hdr.val_buf_size = sizeof(msg.body); in bcm2835_mbox_get_clock_rate() 496 msg.tag_hdr.val_len = sizeof(msg.body.req); in bcm2835_mbox_get_clock_rate() 497 msg.body.req.clock_id = clock_id; in bcm2835_mbox_get_clock_rate() [all …]
|
/freebsd/contrib/libfido2/src/ |
H A D | tpm.c | 44 uint16_t size; /* sizeof(body) */ in PACKED_TYPE() 45 uint8_t body[32]; in PACKED_TYPE() 51 uint16_t size; /* sizeof(body) */ 52 uint8_t body[20]; 58 uint16_t size; /* sizeof(alg) + sizeof(body) */ 60 uint8_t body[32]; 88 uint16_t size; /* sizeof(body) */ 89 uint8_t body[256]; 95 uint16_t size; /* sizeof(body) */ 96 uint8_t body[32]; [all …]
|
H A D | io.c | 26 } body; in PACKED_TYPE() 61 fp->body.init.cmd = CTAP_FRAME_INIT | cmd; in tx_empty() 78 if (d->tx_len - CTAP_INIT_HEADER_LEN > sizeof(fp->body.init.data)) in tx_preamble() 84 fp->body.init.cmd = CTAP_FRAME_INIT | cmd; in tx_preamble() 85 fp->body.init.bcnth = (count >> 8) & 0xff; in tx_preamble() 86 fp->body.init.bcntl = count & 0xff; in tx_preamble() 88 memcpy(&fp->body.init.data, buf, count); in tx_preamble() 105 if (d->tx_len - CTAP_CONT_HEADER_LEN > sizeof(fp->body.cont.data)) in tx_frame() 111 fp->body.cont.seq = seq; in tx_frame() 113 memcpy(&fp->body.cont.data, buf, count); in tx_frame() [all …]
|