/freebsd/libexec/bootpd/ |
H A D | hash.c | 73 unsigned totalsize; in hash_Init() local 76 totalsize = sizeof(hash_tbl) in hash_Init() 78 hashtblptr = (hash_tbl *) malloc(totalsize); in hash_Init() 80 bzero((char *) hashtblptr, totalsize); in hash_Init()
|
H A D | readfile.c | 1580 unsigned addrcount, totalsize; in get_addresses() local 1598 totalsize = sizeof(struct in_addr_list) in get_addresses() 1600 result = (struct in_addr_list *) smalloc(totalsize); in get_addresses()
|
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lstring.c | 100 size_t totalsize; /* total size of TString object */ in createstrobj() local 101 totalsize = sizeof(TString) + ((l + 1) * sizeof(char)); in createstrobj() 102 ts = &luaC_newobj(L, tag, totalsize, list, 0)->ts; in createstrobj()
|
/freebsd/contrib/lua/src/ |
H A D | lstring.c | 146 size_t totalsize; /* total size of TString object */ in createstrobj() local 147 totalsize = sizelstring(l); in createstrobj() 148 o = luaC_newobj(L, tag, totalsize); in createstrobj()
|
H A D | lstrlib.c | 1553 static KOption getdetails (Header *h, size_t totalsize, argument 1568 *ntoalign = (align - (int)(totalsize & (align - 1))) & (align - 1); 1618 size_t totalsize = 0; /* accumulate total size of result */ local 1624 KOption opt = getdetails(&h, totalsize, &fmt, &size, &ntoalign); 1625 totalsize += ntoalign + size; 1693 totalsize += len; 1702 totalsize += len + 1; 1719 size_t totalsize = 0; /* accumulate total size of result */ local 1723 KOption opt = getdetails(&h, totalsize, &fmt, &size, &ntoalign); 1727 luaL_argcheck(L, totalsize <= MAXSIZE - size, 1, [all …]
|
/freebsd/libexec/getty/ |
H A D | subr.c | 483 size_t subex, totalsize; in edithost() local 492 totalsize = match[subex].rm_eo - match[subex].rm_so + 1; in edithost() 493 strlcpy(editedhost, HN + match[subex].rm_so, totalsize > in edithost() 494 sizeof(editedhost) ? sizeof(editedhost) : totalsize); in edithost()
|
/freebsd/usr.bin/dtc/ |
H A D | dtb.cc | 264 out.write_data(totalsize); in write() 297 return input.consume_binary(totalsize) && in read_dtb()
|
H A D | dtb.hh | 276 uint32_t totalsize; member
|
H A D | fdt.cc | 1777 head.totalsize = sizeof(head) + strings_writer.size() + in write() 1779 while (head.totalsize < minimum_blob_size) in write() 1781 head.totalsize++; in write()
|
/freebsd/sys/contrib/libfdt/ |
H A D | fdt.h | 59 fdt32_t totalsize; /* total size of DT block */ member
|
H A D | libfdt.h | 218 #define fdt_totalsize(fdt) (fdt_get_header(fdt, totalsize)) 235 fdt_set_hdr_(totalsize);
|
/freebsd/usr.sbin/syslogd/ |
H A D | syslogd.h | 193 size_t totalsize; member
|
H A D | syslogd.c | 1715 il->totalsize = 0; in iovlist_init() 1730 il->totalsize += size; in iovlist_append() 1741 while (il->totalsize > size) { in iovlist_truncate() 1742 diff = il->totalsize - size; in iovlist_truncate() 1747 il->totalsize -= last->iov_len; in iovlist_truncate() 1751 il->totalsize -= diff; in iovlist_truncate() 1818 if (lsent == (ssize_t)il->totalsize && !send_to_all) in fprintlog_write() 1821 dprintf("lsent/totalsize: %zd/%zu\n", lsent, il->totalsize); in fprintlog_write() 1822 if (lsent != (ssize_t)il->totalsize) { in fprintlog_write()
|
/freebsd/contrib/libfido2/src/ |
H A D | largeblob.c | 585 size_t chunklen, maxchunklen, totalsize; in largeblob_set_array() local 615 totalsize = cbor.len + sizeof(dgst) - 16; /* the first 16 bytes only */ in largeblob_set_array() 627 chunklen, offset, totalsize, ms)) != FIDO_OK || in largeblob_set_array() 634 totalsize, ms)) != FIDO_OK || in largeblob_set_array()
|
/freebsd/usr.bin/truss/ |
H A D | syscalls.c | 973 size_t offset, size, totalsize; in get_string() local 984 totalsize = size; in get_string() 985 buf = malloc(totalsize); in get_string() 1000 if (totalsize < MAXSIZE && max == 0) { in get_string() 1001 size = MAXSIZE - totalsize; in get_string() 1004 nbuf = realloc(buf, totalsize + size); in get_string() 1006 buf[totalsize - 1] = '\0'; in get_string() 1010 totalsize += size; in get_string() 1012 buf[totalsize - 1] = '\0'; in get_string()
|
/freebsd/tests/sys/kern/ |
H A D | unix_seqpacket_test.c | 155 const size_t totalsize = (sndbufsize + rcvbufsize) * 2; in test_eagain() local 157 const int numpkts = totalsize / pktsize; in test_eagain()
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | write.cc | 528 ssize_t totalsize = size0 + size1; in TEST_F() local 533 expect_write(ino, 0, totalsize, size0, EXPECTED0); in TEST_F()
|