Home
last modified time | relevance | path

Searched refs:nmem (Results 1 – 10 of 10) sorted by relevance

/third_party/musl/src/passwd/
Dgetgrent.c18 size_t size=0, nmem=0; in getgrent() local
21 __getgrent_a(f, &gr, &line, &size, &mem, &nmem, &res); in getgrent()
28 size_t size=0, nmem=0; in getgrgid() local
29 __getgr_a(0, gid, &gr, &line, &size, &mem, &nmem, &res); in getgrgid()
36 size_t size=0, nmem=0; in getgrnam() local
37 __getgr_a(name, 0, &gr, &line, &size, &mem, &nmem, &res); in getgrnam()
Dgetgr_r.c11 size_t nmem = 0; in getgr_r() local
18 rv = __getgr_a(name, gid, gr, &line, &len, &mem, &nmem, res); in getgr_r()
19 if (*res && size < len + (nmem+1)*sizeof(char *) + 32) { in getgr_r()
26 buf += (nmem+1)*sizeof(char *); in getgr_r()
Dgetgrent_a.c11 int __getgrent_a(FILE *f, struct group *gr, char **line, size_t *size, char ***mem, size_t *nmem, s… in __getgrent_a() argument
43 for (*nmem=!!*s; *s; s++) in __getgrent_a()
44 if (*s==',') ++*nmem; in __getgrent_a()
46 *mem = calloc(sizeof(char *), *nmem+1); in __getgrent_a()
Dgetgr_a.c20 …d_t gid, struct group *gr, char **buf, size_t *size, char ***mem, size_t *nmem, struct group **res) in __getgr_a() argument
35 while (!(rv = __getgrent_a(f, gr, buf, size, mem, nmem, res)) && *res) { in __getgr_a()
113 if (groupbuf[GRMEMCNT] + 1 > *nmem) { in __getgr_a()
124 *nmem = groupbuf[GRMEMCNT] + 1; in __getgr_a()
Dfgetgrent.c9 size_t size=0, nmem=0; in fgetgrent() local
10 __getgrent_a(f, &gr, &line, &size, &mem, &nmem, &res); in fgetgrent()
Dpwf.h13 …ILE *f, struct group *gr, char **line, size_t *size, char ***mem, size_t *nmem, struct group **res…
14 …d_t gid, struct group *gr, char **buf, size_t *size, char ***mem, size_t *nmem, struct group **res…
Dgetgrouplist.c24 size_t nmem = 0; in getgrouplist() local
50 while (!(rv = __getgrent_a(f, &gr, &buf, &size, &mem, &nmem, &res)) && res) { in getgrouplist()
/third_party/lwip/src/core/
Dmem.c476 struct mem *nmem; in plug_holes() local
486 nmem = ptr_to_mem(mem->next); in plug_holes()
487 if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) { in plug_holes()
489 if (lfree == nmem) { in plug_holes()
492 mem->next = nmem->next; in plug_holes()
493 if (nmem->next != MEM_SIZE_ALIGNED) { in plug_holes()
494 ptr_to_mem(nmem->next)->prev = mem_to_ptr(mem); in plug_holes()
553 struct mem *nmem, *pmem; in mem_link_valid() local
556 nmem = ptr_to_mem(mem->next); in mem_link_valid()
560 ((nmem != ram_end) && (nmem->prev != rmem_idx))) { in mem_link_valid()
/third_party/node/src/large_pages/
Dnode_large_page.cc338 MemoryMapPointer nmem; in MoveTextRegionToLargePages() local
344 nmem.Reset(nullptr, size, in MoveTextRegionToLargePages()
346 if (nmem.mem() == MAP_FAILED) goto fail; in MoveTextRegionToLargePages()
347 memcpy(nmem.mem(), r.from, size); in MoveTextRegionToLargePages()
359 memcpy(start, nmem.mem(), size); in MoveTextRegionToLargePages()
366 memcpy(start, nmem.mem(), size); in MoveTextRegionToLargePages()
378 memcpy(tmem.mem(), nmem.mem(), size); in MoveTextRegionToLargePages()
/third_party/gstreamer/gstreamer/gst/
Dgstbuffer.c1826 GstMemory *mem, *nmem; in gst_buffer_map_range() local
1855 nmem = gst_memory_make_mapped (mem, info, flags); in gst_buffer_map_range()
1856 if (G_UNLIKELY (nmem == NULL)) in gst_buffer_map_range()
1861 if (G_UNLIKELY (length > 1 || nmem != mem)) { in gst_buffer_map_range()
1864 _replace_memory (buffer, len, idx, length, gst_memory_ref (nmem)); in gst_buffer_map_range()
1868 "temporary mapping for memory %p in buffer %p", nmem, buffer); in gst_buffer_map_range()