HomeSort by: relevance | last modified time | path
    Searched defs:nptr (Results 1 - 17 of 17) sorted by relevancy

  /src/lib/libc/stdlib/
reallocarr.c 61 void *nptr; local in function:__weak_alias
67 nptr = NULL;
68 memcpy(ptr, &nptr, sizeof(ptr));
85 nptr = realloc(optr, number * size);
86 if (__predict_false(nptr == NULL)) {
90 memcpy(ptr, &nptr, sizeof(ptr));
  /src/usr.bin/fmt/
buffer.h 66 wchar_t *nptr = realloc(buf->bptr, len * sizeof(*buf->ptr)); local in function:buf_grow
68 if (nptr == NULL)
71 if (nptr == buf->bptr) {
76 diff = nptr - buf->bptr;
  /src/usr.sbin/npf/npftest/libnpftest/
npf_nbuf_test.c 36 void *nptr; local in function:parse_nbuf_chain
41 nptr = nbuf_advance(&nbuf, (random() % 16) + 1, (random() % 16) + 1);
43 assert(nptr != NULL);
49 nptr = nbuf_ensure_contig(&nbuf, sizeof(uint32_t));
50 if (nptr == NULL) {
54 memcpy(&d, nptr, sizeof(uint32_t));
  /src/sbin/fsck_lfs/
setup.c 121 uint64_t nptr; /* number of block pointers per block */ local in function:calcmaxfilesize
124 nptr = (1 << bshift) / LFS_BLKPTRSIZE(fs);
125 maxblock = ULFS_NDADDR + nptr + nptr * nptr + nptr * nptr * nptr;
  /src/sys/dev/pci/cxgb/
cxgb_lro.c 269 uint32_t *nptr = (uint32_t *)(nth + 1); local in function:lro_update_session
271 if (__predict_false(ntohl(*(ptr + 1)) > ntohl(*(nptr + 1)) ||
272 !*(nptr + 2))) {
275 *(ptr + 1) = *(nptr + 1);
276 *(ptr + 2) = *(nptr + 2);
  /src/sys/dev/i2c/
pcf8574.c 138 const char *nptr = NULL, *spptr; local in function:pcf8574_attach
178 ok &= prop_dictionary_get_string(pin, "name", &nptr);
187 spptr = strstr(nptr, " ");
193 if (!strncmp(nptr, "LED ", 4)) {
197 if (!strncmp(nptr, "INDICATOR ", 10)) {
202 if (!strncmp(nptr, "ALERT ", 6)) {
pcagpio.c 178 const char *spptr, *nptr; local in function:pcagpio_attach
182 nptr = NULL;
185 &nptr);
195 spptr = strstr(nptr, " ");
200 if (!strncmp(nptr, "LED ", 4))
  /src/sbin/newfs_lfs/
make_lfs.c 278 uint64_t nptr; /* number of block pointers per block */ local in function:maxfilesize
281 nptr = (1 << bshift) / LFS_BLKPTRSIZE(fs);
282 maxblock = ULFS_NDADDR + nptr + nptr * nptr + nptr * nptr * nptr;
  /src/sys/modules/lua/
lua.c 557 void *nptr = NULL; local in function:lua_alloc
581 nptr = (void *) ((char *) nhdr + hdr_size);
584 memcpy(nptr, ptr, osize);
588 return nptr;
  /src/lib/libedit/
filecomplete.c 338 char *nptr; local in function:fn_filename_completion_function
340 nptr = el_realloc(filename, (strlen(pos) + 1) *
341 sizeof(*nptr));
342 if (nptr == NULL) {
347 filename = nptr;
351 nptr = el_realloc(dirname, (len + 1) *
352 sizeof(*nptr));
353 if (nptr == NULL) {
358 dirname = nptr;
history.c 804 char *nptr; local in function:history_load
806 nptr = h_realloc(ptr, max_size * sizeof(*ptr));
807 if (nptr == NULL) {
811 ptr = nptr;
865 char *nptr; local in function:history_save_fp
867 nptr = h_realloc(ptr, max_size * sizeof(*ptr));
868 if (nptr == NULL) {
872 ptr = nptr;
  /src/sys/kern/
exec_elf.c 926 const char *nptr; local in function:netbsd_elf_signature
939 nptr = nbuf;
945 np = (const Elf_Nhdr *)nptr;
949 nptr += sizeof(*np);
953 ndata = nptr;
957 nptr += roundup(np->n_namesz, 4);
961 ndesc = nptr;
965 nptr += roundup(np->n_descsz, 4);
subr_thmap.c 558 thmap_ptr_t nptr; local in function:root_try_put
581 nptr = THMAP_GETOFF(thmap, node);
584 gc_free(thmap, nptr, THMAP_INODE_LEN);
590 nptr, memory_order_release, memory_order_relaxed)) {
930 const thmap_ptr_t nptr = local in function:thmap_del
935 ASSERT(THMAP_GETOFF(thmap, parent) == nptr);
942 stage_mem_gc(thmap, nptr, THMAP_INODE_LEN);
  /src/sys/net/npf/
npf_inet.c 426 const void *nptr = nbuf_dataptr(nbuf); local in function:npf_cache_ip
427 const uint8_t ver = *(const uint8_t *)nptr;
  /src/sys/netinet6/
ip6_mroute.c 959 struct mf6c **nptr; local in function:del_m6fc
978 nptr = &mf6ctable[hash];
979 while ((rt = *nptr) != NULL) {
987 nptr = &rt->mf6c_next;
994 *nptr = rt->mf6c_next;
1285 struct mf6c *mfc, **nptr; local in function:expire_upcalls
1295 nptr = &mf6ctable[i];
1296 while ((mfc = *nptr) != NULL) {
1331 *nptr = mfc->mf6c_next;
1334 nptr = &mfc->mf6c_next
    [all...]
  /src/lib/libukfs/
ukfs.c 298 char *comma, *pers, *ep, *nptr; local in function:ukfs_part_probe
315 nptr = MAGICADJ_OFFSET(p,0);
317 if (*nptr == '-') {
321 val = strtouq(nptr, &ep, 10);
334 nptr = comma+1;
336 if (*nptr == '-') {
340 val = strtouq(nptr, &ep, 10);
  /src/sys/arch/sgimips/mace/
if_mec.c 951 int len, bufoff, buflen, nsegs, align, resid, pseg, nptr, slen, i; local in function:mec_start
985 nptr = 0; /* XXX gcc */
1083 nptr = nsegs - pseg;
1084 if (nptr <= MEC_NTXPTR) {
1172 nptr = 1;
1198 if (nptr == 1) {
1215 } else if (nptr == 2) {
1232 } else if (nptr == 3) {
1318 ("%s: nsegs = %d, pseg = %d, nptr = %d\n",
1319 __func__, dmamap->dm_nsegs, pseg, nptr));
    [all...]

Completed in 49 milliseconds