Home
last modified time | relevance | path

Searched refs:nbuf (Results 1 – 25 of 36) sorted by relevance

12

/external/syslinux/core/fs/pxe/
Dcore.c102 struct netbuf *nbuf; in core_udp_recv() local
106 err = netconn_recv(priv->conn, &nbuf); in core_udp_recv()
110 if (!nbuf) in core_udp_recv()
113 *src_ip = netbuf_fromaddr(nbuf)->addr; in core_udp_recv()
114 *src_port = netbuf_fromport(nbuf); in core_udp_recv()
116 netbuf_first(nbuf); /* XXX needed? */ in core_udp_recv()
117 nbuf_len = netbuf_len(nbuf); in core_udp_recv()
119 netbuf_copy(nbuf, buf, nbuf_len); in core_udp_recv()
122 netbuf_delete(nbuf); in core_udp_recv()
138 struct netbuf *nbuf; in core_udp_send() local
[all …]
Dftp_readdir.c49 int nbuf = 0; in ftp_readdir() local
50 char *buf = bufs[nbuf]; in ftp_readdir()
113 name = bufs[nbuf ^ 1]; in ftp_readdir()
116 nbuf ^= 1; in ftp_readdir()
117 p = buf = bufs[nbuf]; in ftp_readdir()
/external/openssh/openbsd-compat/
Dpwcache.c55 static char nbuf[15]; /* 32 bits == 10 digits */ in user_from_uid() local
70 (void)snprintf(nbuf, sizeof(nbuf), "%u", uid); in user_from_uid()
75 cp->name = strdup(pw ? pw->pw_name : nbuf); in user_from_uid()
90 static char nbuf[15]; /* 32 bits == 10 digits */ in group_from_gid() local
105 (void)snprintf(nbuf, sizeof(nbuf), "%u", gid); in group_from_gid()
110 cp->name = strdup(gr ? gr->gr_name : nbuf); in group_from_gid()
/external/libunwind/src/arm/
DGex_tables.c286 int nbuf = 0; in arm_exidx_extract() local
306 nbuf = -UNW_ESTOPUNWIND; in arm_exidx_extract()
312 buf[nbuf++] = data >> 16; in arm_exidx_extract()
313 buf[nbuf++] = data >> 8; in arm_exidx_extract()
314 buf[nbuf++] = data; in arm_exidx_extract()
337 buf[nbuf++] = data >> 16; in arm_exidx_extract()
338 buf[nbuf++] = data >> 8; in arm_exidx_extract()
339 buf[nbuf++] = data; in arm_exidx_extract()
352 buf[nbuf++] = data >> 16; in arm_exidx_extract()
353 buf[nbuf++] = data >> 8; in arm_exidx_extract()
[all …]
/external/wpa_supplicant_8/src/utils/
Dwpabuf.c70 unsigned char *nbuf; in wpabuf_resize() local
72 nbuf = os_realloc(buf->buf, buf->used + add_len); in wpabuf_resize()
73 if (nbuf == NULL) in wpabuf_resize()
75 os_memset(nbuf + buf->used, 0, add_len); in wpabuf_resize()
76 buf->buf = nbuf; in wpabuf_resize()
79 nbuf = os_realloc(trace, sizeof(struct wpabuf_trace) + in wpabuf_resize()
82 if (nbuf == NULL) in wpabuf_resize()
84 trace = (struct wpabuf_trace *) nbuf; in wpabuf_resize()
86 os_memset(nbuf + sizeof(struct wpabuf_trace) + in wpabuf_resize()
90 nbuf = os_realloc(buf, sizeof(struct wpabuf) + in wpabuf_resize()
[all …]
/external/syslinux/com32/lib/syslinux/
Dpxe_get_cached.c47 void *bbuf, *nbuf; in pxe_get_cached_info() local
74 nbuf = malloc(gci->BufferSize); in pxe_get_cached_info()
75 if (!nbuf) { in pxe_get_cached_info()
80 memcpy(nbuf, bbuf, gci->BufferSize); in pxe_get_cached_info()
82 *buf = nbuf; in pxe_get_cached_info()
/external/libedit/src/
Dfgetln.c67 char *nbuf = realloc(buf, nbufsiz); in fgetln() local
69 if (nbuf == NULL) { in fgetln()
76 buf = nbuf; in fgetln()
/external/ltp/testcases/network/tcp_cmds/sendfile/
Dtestsf_s.c43 char nbuf[PATH_MAX]; in main() local
131 number = &nbuf[0]; in main()
133 nbuf[count] = *lp; in main()
137 nbuf[count] = '\0'; in main()
/external/valgrind/coregrind/m_aspacemgr/
Daspacemgr-common.c363 Bool ML_(am_resolve_filename) ( Int fd, /*OUT*/HChar* buf, Int nbuf ) in ML_()
368 for (i = 0; i < nbuf; i++) buf[i] = 0; in ML_()
370 if (ML_(am_readlink)(tmp, buf, nbuf) > 0 && buf[0] == '/') in ML_()
378 if (nbuf > 0) { in ML_()
379 VG_(strncpy)( buf, tmp, nbuf < sizeof(tmp) ? nbuf : sizeof(tmp) ); in ML_()
380 buf[nbuf-1] = 0; in ML_()
389 for (i = 0; i < nbuf; i++) buf[i] = 0; in ML_()
391 if (ML_(am_readlink)(tmp, buf, nbuf) > 0 && buf[0] == '/') in ML_()
Dpriv_aspacemgr.h126 Bool ML_(am_resolve_filename) ( Int fd, /*OUT*/HChar* buf, Int nbuf );
/external/iproute2/lib/
Dll_map.c160 static char nbuf[IFNAMSIZ]; in ll_index_to_name() local
162 return ll_idx_n2a(idx, nbuf); in ll_index_to_name()
/external/valgrind/auxprogs/
Dvalgrind-listener.c132 static void copyout ( char* buf, int nbuf ) in copyout() argument
135 for (i = 0; i < nbuf; i++) { in copyout()
Dvalgrind-di-server.c947 static void copyout ( char* buf, int nbuf )
950 for (i = 0; i < nbuf; i++) {
/external/mksh/src/
Dshf.c344 unsigned char *nbuf; in shf_emptybuf() local
355 nbuf = aresize2(shf->buf, 2, shf->wbsize, shf->areap); in shf_emptybuf()
356 shf->rp = nbuf + (shf->rp - shf->buf); in shf_emptybuf()
357 shf->wp = nbuf + (shf->wp - shf->buf); in shf_emptybuf()
361 shf->buf = nbuf; in shf_emptybuf()
Dedit.c4120 char *p, *nbuf; in vi_cmd() local
4140 nbuf = alloc(nlen + 1 + olen, AEDIT); in vi_cmd()
4141 memcpy(nbuf, ap->val.s, nlen); in vi_cmd()
4142 nbuf[nlen++] = cmd[1]; in vi_cmd()
4144 memcpy(nbuf + nlen, macro.p, olen); in vi_cmd()
4148 nbuf[nlen++] = '\0'; in vi_cmd()
4149 nbuf[nlen++] = '\0'; in vi_cmd()
4151 macro.p = macro.buf = (unsigned char *)nbuf; in vi_cmd()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_ttls.c1043 char *nbuf; in eap_ttls_process_phase2() local
1044 nbuf = os_malloc(parse.user_name_len * 4 + 1); in eap_ttls_process_phase2()
1045 if (nbuf) { in eap_ttls_process_phase2()
1046 printf_encode(nbuf, parse.user_name_len * 4 + 1, in eap_ttls_process_phase2()
1049 eap_log_msg(sm, "TTLS-User-Name '%s'", nbuf); in eap_ttls_process_phase2()
1050 os_free(nbuf); in eap_ttls_process_phase2()
Deap_server_peap.c1091 struct wpabuf *nbuf = in eap_peap_process_phase2() local
1094 if (nbuf == NULL) { in eap_peap_process_phase2()
1100 nhdr = wpabuf_put(nbuf, sizeof(*nhdr)); in eap_peap_process_phase2()
1105 wpabuf_put_buf(nbuf, in_decrypted); in eap_peap_process_phase2()
1108 in_decrypted = nbuf; in eap_peap_process_phase2()
/external/wpa_supplicant_8/src/eap_peer/
Deap_fast_pac.c495 char *nbuf = os_realloc(*buf, *buf_len + need); in eap_fast_write() local
496 if (nbuf == NULL) { in eap_fast_write()
501 *pos = nbuf + (*pos - *buf); in eap_fast_write()
502 *buf = nbuf; in eap_fast_write()
/external/tcpdump/
Dsmbutil.c696 char nbuf[255]; in smb_fdata1() local
703 maxbuf, nbuf); in smb_fdata1()
710 ND_PRINT((ndo, "%-15.15s NameType=0x%02X (%s)", nbuf, name_type, in smb_fdata1()
/external/wpa_supplicant_8/src/ap/
Dsta_info.c1082 u8 *trans_id, *nbuf; in ap_sa_query_timer() local
1092 nbuf = os_realloc_array(sta->sa_query_trans_id, in ap_sa_query_timer()
1095 if (nbuf == NULL) in ap_sa_query_timer()
1101 trans_id = nbuf + sta->sa_query_count * WLAN_SA_QUERY_TR_ID_LEN; in ap_sa_query_timer()
1102 sta->sa_query_trans_id = nbuf; in ap_sa_query_timer()
Dwpa_auth_ft.c707 u8 *nbuf; in wpa_sm_write_assoc_resp_ies() local
713 nbuf = os_realloc(subelem, subelem_len + igtk_len); in wpa_sm_write_assoc_resp_ies()
714 if (nbuf == NULL) { in wpa_sm_write_assoc_resp_ies()
719 subelem = nbuf; in wpa_sm_write_assoc_resp_ies()
/external/wpa_supplicant_8/wpa_supplicant/
Dsme.c1681 u8 *trans_id, *nbuf; in sme_sa_query_timer() local
1687 nbuf = os_realloc_array(wpa_s->sme.sa_query_trans_id, in sme_sa_query_timer()
1690 if (nbuf == NULL) { in sme_sa_query_timer()
1698 trans_id = nbuf + wpa_s->sme.sa_query_count * WLAN_SA_QUERY_TR_ID_LEN; in sme_sa_query_timer()
1699 wpa_s->sme.sa_query_trans_id = nbuf; in sme_sa_query_timer()
/external/dhcpcd-6.8.2/
Dif-linux.c324 char *buf = NULL, *nbuf; in get_netlink() local
349 nbuf = realloc(buf, buflen); in get_netlink()
350 if (nbuf == NULL) in get_netlink()
352 buf = nbuf; in get_netlink()
/external/valgrind/VEX/priv/
Dhost_x86_defs.h721 UChar* buf, Int nbuf, const X86Instr* i,
Dhost_amd64_defs.h791 UChar* buf, Int nbuf,

12