/freebsd-12-stable/usr.sbin/ppp/ |
H A D | tty.c | 587 int sz = physical_MaxDeviceSize(); local 589 iov[*niov].iov_base = d = realloc(d, sz); 591 log_Printf(LogALERT, "Failed to allocate memory: %d\n", sz); 594 iov[*niov].iov_len = sz;
|
/freebsd-12-stable/contrib/mandoc/ |
H A D | mdoc_term.c | 448 size_t sz; local 463 sz = term_strlen(p, meta->date); 464 p->tcol->rmargin = p->maxrmargin > sz ? 465 (p->maxrmargin + term_len(p, 1) - sz) / 2 : 0; 473 sz = term_strlen(p, meta->os); 474 p->tcol->rmargin = p->maxrmargin > sz ? p->maxrmargin - sz : 0;
|
H A D | mdoc_validate.c | 403 for (i = 0; i < (int)v->sz; i++) 693 if (0 == argv->sz) { 707 if (0 == argv->sz) { 745 n->norm->Bl.ncols = argv->sz; 829 if (0 == argv->sz) { 1699 i = argv->sz; 1701 argv->sz++; 1703 argv->sz, sizeof(char *)); 1705 nh->norm->Bl.ncols = argv->sz;
|
/freebsd-12-stable/contrib/sqlite3/ |
H A D | shell.c | 4067 static sqlite3_int64 apndReadMark(sqlite3_int64 sz, sqlite3_file *pFile){ argument 4073 if( APND_MARK_SIZE!=(sz & 0x1ff) ) return -1; 4074 rc = pFile->pMethods->xRead(pFile, a, APND_MARK_SIZE, sz-APND_MARK_SIZE); 4082 if( iMark > (sz - APND_MARK_SIZE - 512) ) return -1; 4090 ** Return true iff it is such. Parameter sz is the file's size. 4092 static int apndIsAppendvfsDatabase(sqlite3_int64 sz, sqlite3_file *pFile){ argument 4095 sqlite3_int64 iMark = apndReadMark(sz, pFile); 4104 && (sz & 0x1ff) == APND_MARK_SIZE 4105 && sz>=512+APND_MARK_SIZE 4115 ** Return true iff so. Parameter sz i 4117 apndIsOrdinaryDatabaseFile(sqlite3_int64 sz, sqlite3_file *pFile) argument 4144 sqlite3_int64 sz = 0; local 6938 int sz = pCDS->szCompressed; local 7421 i64 sz = 0; /* Uncompressed size */ local 8159 uLongf sz; local 11464 sqlite3_int64 sz; local 21158 sqlite3_int64 n, sz; local 21170 int n, sz; local 21194 sqlite3_int64 sz = integerValue(cmdline_option_value(argc,argv,++i)); local 21198 sqlite3_int64 sz = integerValue(cmdline_option_value(argc,argv,++i)); local [all...] |
/freebsd-12-stable/sys/dev/drm2/radeon/ |
H A D | radeon_display.c | 1172 int sz; local 1182 sz = ARRAY_SIZE(radeon_tmds_pll_enum_list); 1186 radeon_tmds_pll_enum_list, sz); 1196 sz = ARRAY_SIZE(radeon_tv_std_enum_list); 1200 radeon_tv_std_enum_list, sz); 1202 sz = ARRAY_SIZE(radeon_underscan_enum_list); 1206 radeon_underscan_enum_list, sz);
|
/freebsd-12-stable/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp.h | 857 #define KMP_PAD(type, sz) \ 858 (sizeof(type) + (sz - ((sizeof(type) - 1) % (sz)) - 1)) 956 extern void *__kmpc_alloc(int gtid, size_t sz, omp_allocator_handle_t al); 3203 #define KMP_INTERNAL_MALLOC(sz) malloc(sz) 3205 #define KMP_INTERNAL_REALLOC(p, sz) realloc((p), (sz)) 3206 #define KMP_INTERNAL_CALLOC(n, sz) calloc((n), (sz)) [all...] |
/freebsd-12-stable/contrib/ofed/libibverbs/ |
H A D | verbs.h | 82 #define vext_field_avail(type, fld, sz) (offsetof(type, fld) < (sz)) 1560 size_t sz; /* Must be immediately before struct ibv_context */ member in struct:verbs_context 1572 (!__vctx || (__vctx->sz < sizeof(*__vctx) - offsetof(struct verbs_context, op)) || \ 1577 if (vctx && (vctx->sz >= sizeof(*vctx) - offsetof(struct verbs_context, op))) \
|
/freebsd-12-stable/sys/dev/virtio/console/ |
H A D | virtio_console.c | 1227 struct winsize sz; local 1234 bzero(&sz, sizeof(struct winsize)); 1235 sz.ws_col = cols; 1236 sz.ws_row = rows; 1238 tty_set_winsize(tp, &sz);
|
/freebsd-12-stable/sys/dev/sound/pci/ |
H A D | via8233.c | 777 uint32_t sz, delta; local 785 sz = ch->blksz * ch->blkcnt; 790 ptr %= sz; 793 delta = (sz + ptr - ch->prevptr) % sz;
|
H A D | emuxkireg.h | 49 #define EMU_MKSUBREG(sz, idx, reg) (((sz) << 24) | ((idx) << 16) | (reg))
|
/freebsd-12-stable/contrib/sendmail/src/ |
H A D | parseaddr.c | 2221 ** sz -- size of buf. 2251 cataddr(pvp, evp, buf, sz, spacesub, external) 2255 register int sz; 2269 if (sz <= 0) 2281 sz -= 2; 2282 while (*pvp != NULL && sz > 0) 2290 if (--sz <= 0) 2297 if (--sz <= 0) 2312 if (sz <= 0) 2332 if (sz < [all...] |
/freebsd-12-stable/contrib/ntp/sntp/libevent/ |
H A D | event.c | 3378 static void *(*mm_malloc_fn_)(size_t sz) = NULL; 3379 static void *(*mm_realloc_fn_)(void *p, size_t sz) = NULL; 3383 event_mm_malloc_(size_t sz) argument 3385 if (sz == 0) 3389 return mm_malloc_fn_(sz); 3391 return malloc(sz); 3401 size_t sz = count * size; local 3405 p = mm_malloc_fn_(sz); 3407 return memset(p, 0, sz); 3452 event_mm_realloc_(void *ptr, size_t sz) argument 3470 event_set_mem_functions(void *(*malloc_fn)(size_t sz), void *(*realloc_fn)(void *ptr, size_t sz), void (*free_fn)(void *ptr)) argument [all...] |
/freebsd-12-stable/contrib/libevent/ |
H A D | event.c | 3428 static void *(*mm_malloc_fn_)(size_t sz) = NULL; 3429 static void *(*mm_realloc_fn_)(void *p, size_t sz) = NULL; 3433 event_mm_malloc_(size_t sz) argument 3435 if (sz == 0) 3439 return mm_malloc_fn_(sz); 3441 return malloc(sz); 3451 size_t sz = count * size; local 3455 p = mm_malloc_fn_(sz); 3457 return memset(p, 0, sz); 3502 event_mm_realloc_(void *ptr, size_t sz) argument 3520 event_set_mem_functions(void *(*malloc_fn)(size_t sz), void *(*realloc_fn)(void *ptr, size_t sz), void (*free_fn)(void *ptr)) argument [all...] |
/freebsd-12-stable/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 485 #define __sanitizer_syscall_pre_statfs64(path, sz, buf) \ 486 __sanitizer_syscall_pre_impl_statfs64((long)(path), (long)(sz), (long)(buf)) 487 #define __sanitizer_syscall_post_statfs64(res, path, sz, buf) \ 488 __sanitizer_syscall_post_impl_statfs64(res, (long)(path), (long)(sz), \ 494 #define __sanitizer_syscall_pre_fstatfs64(fd, sz, buf) \ 495 __sanitizer_syscall_pre_impl_fstatfs64((long)(fd), (long)(sz), (long)(buf)) 496 #define __sanitizer_syscall_post_fstatfs64(res, fd, sz, buf) \ 497 __sanitizer_syscall_post_impl_fstatfs64(res, (long)(fd), (long)(sz), \ 1842 #define __sanitizer_syscall_pre_rt_sigaction(signum, act, oldact, sz) \ 1844 (long)oldact, (long)sz) [all...] |
/freebsd-12-stable/contrib/wpa/src/crypto/ |
H A D | tls_wolfssl.c | 133 static int wolfssl_receive_cb(WOLFSSL *ssl, char *buf, int sz, void *ctx) argument 135 size_t get = sz; 155 static int wolfssl_send_cb(WOLFSSL *ssl, char *buf, int sz, void *ctx) argument 163 wpa_printf(MSG_DEBUG, "SSL: adding %d bytes", sz); 165 tmp = wpabuf_alloc_copy(buf, sz); 172 return sz;
|
/freebsd-12-stable/contrib/gcclibs/libmudflap/ |
H A D | mf-hooks2.c | 316 DECLARE(void *, malloc, size_t sz); 339 DECLARE(void *, malloc, size_t sz); 341 size_t sz = strnlen (s, n); local 343 MF_VALIDATE_EXTENT(s, sz, __MF_CHECK_READ, "strndup region"); /* nb: strNdup */ 710 WRAPPER2(int, setbuffer, FILE* stream, char *buf, size_t sz) argument 712 return __mfwrap_setvbuf (stream, buf, buf ? _IOFBF : _IONBF, sz);
|
/freebsd-12-stable/contrib/ldns/ |
H A D | dnssec.c | 723 size_t sz; /* size needed for type bitmap rdf */ local 748 sz = 0; 751 sz += windows[i] / 8 + 3; 754 if (sz > 0) { 757 dptr = data = LDNS_CALLOC(uint8_t, sz); 785 rdf = ldns_rdf_new(LDNS_RDF_TYPE_BITMAP, sz, data);
|
/freebsd-12-stable/sys/dev/oce/ |
H A D | oce_sysctl.c | 1516 int rc = 0, sz = 0; local 1520 sz = sizeof(struct mbx_get_nic_stats_v0); 1522 sz = sizeof(struct mbx_get_nic_stats_v1); 1524 sz = sizeof(struct mbx_get_nic_stats_v2); 1526 sz = sizeof(struct mbx_get_pport_stats); 1528 rc = oce_dma_alloc(sc, sz, &sc->stats_mem, 0);
|
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Demangle/ |
H A D | ItaniumDemangle.cpp | 316 void *allocateNodeArray(size_t sz) { argument 317 return Alloc.allocate(sizeof(Node *) * sz);
|
/freebsd-12-stable/contrib/lua/src/ |
H A D | liolib.c | 682 lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE); local 683 int res = setvbuf(f, NULL, mode[op], (size_t)sz);
|
/freebsd-12-stable/contrib/unbound/dnstap/ |
H A D | dnstap.c | 68 dt_pack(const Dnstap__Dnstap *d, void **buf, size_t *sz) argument 81 *sz = dnstap__dnstap__pack_to_buffer(d, (ProtobufCBuffer *) &sbuf);
|
/freebsd-12-stable/contrib/gcclibs/libcpp/ |
H A D | pch.c | 155 hashmem (const void *p_p, size_t sz) argument 162 for (i = 0; i < sz; i++)
|
/freebsd-12-stable/sys/x86/iommu/ |
H A D | intel_utils.c | 363 dmar_flush_transl_to_ram(struct dmar_unit *unit, void *dst, size_t sz) argument 372 pmap_force_invalidate_cache_range((uintptr_t)dst, (uintptr_t)dst + sz);
|
/freebsd-12-stable/tools/sched/ |
H A D | schedgraph.py | 1497 (start, sz) = hidden 1498 if (start <= nstart or start+sz <= nstart): 1499 size += sz 1504 (newy, sz) = startsize[idx] 1508 size += sz 1539 (start, sz) = hidden 1540 size += sz 1542 (stop, sz) = startsize[idx+1]
|
/freebsd-12-stable/sys/dev/cas/ |
H A D | if_cas.c | 157 static u_int cas_descsize(u_int sz); 162 static u_int cas_rxcompsize(u_int sz); 898 cas_descsize(u_int sz) argument 901 switch (sz) { 921 printf("%s: invalid descriptor ring size %d\n", __func__, sz); 927 cas_rxcompsize(u_int sz) argument 930 switch (sz) { 950 printf("%s: invalid dcompletion ring size %d\n", __func__, sz);
|