Home
last modified time | relevance | path

Searched refs:msgbuf (Results 1 – 25 of 42) sorted by relevance

12

/external/ltp/testcases/kernel/fs/dmapi/
Dtoken.c116 char msgbuf[MSG_DATALEN]; in main() local
120 memcpy(msgbuf, MSG_DATA, MSG_DATALEN); in main()
121 rc = dm_create_userevent(sid, MSG_DATALEN, msgbuf, &token); in main()
153 char msgbuf[MSG_DATALEN]; in main() local
157 memcpy(msgbuf, MSG_DATA, MSG_DATALEN); in main()
158 rc = dm_create_userevent(sid, MSG_DATALEN, msgbuf, &token); in main()
216 char msgbuf[MSG_DATALEN]; in main() local
220 memcpy(msgbuf, MSG_DATA, MSG_DATALEN); in main()
221 rc = dm_create_userevent(sid, MSG_DATALEN, msgbuf, &token); in main()
253 char msgbuf[MSG_DATALEN]; in main() local
[all …]
/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_shutdown.c71 char msgbuf[100]; in main() local
146 error = recv(acpt_sk[0], msgbuf, 100, 0); in main()
154 test_recv(clnt_sk[0], msgbuf, 100, 0); in main()
157 error = recv(clnt_sk[0], msgbuf, 100, 0); in main()
169 error = recv(clnt_sk[1], msgbuf, 100, 0); in main()
181 test_recv(acpt_sk[1], msgbuf, 100, 0); in main()
187 error = recv(clnt_sk[1], msgbuf, 100, 0); in main()
198 error = recv(acpt_sk[2], msgbuf, 100, 0); in main()
203 error = recv(clnt_sk[2], msgbuf, 100, 0); in main()
Dtest_tcp_style.c70 char msgbuf[100]; in main() local
211 test_recv(accept_sk[i], msgbuf, 100, 0); in main()
221 test_recv(clt_sk[i], msgbuf, 100, 0); in main()
235 error = recv(listen_sk, msgbuf, 100, 0); in main()
255 error = recv(accept_sk[0], msgbuf, 100, 0); in main()
265 test_recv(clt_sk[0], msgbuf, 100, 0); in main()
286 error = recv(clt_sk[0], msgbuf, 100, 0); in main()
298 error = recv(clt_sk[1], msgbuf, 100, 0); in main()
307 test_recv(accept_sk[1], msgbuf, 100, 0); in main()
313 error = recv(clt_sk[1], msgbuf, 100, 0); in main()
[all …]
/external/ltp/testcases/kernel/ipc/ipc_stress/
Dmessage_queue_test_01.c111 struct msgbuf *buf; in main()
150 (struct msgbuf *)calloc((size_t) (sizeof(struct msgbuf) + BUF_SIZE), in main()
187 struct msgbuf *buf; in child()
204 (struct msgbuf *)calloc((size_t) (sizeof(struct msgbuf) + BUF_SIZE), in child()
Dmessage_queue_test_02_snd.c117 struct msgbuf *buf; /* Message buffer */ in main()
134 buf = (struct msgbuf *)calloc(bytes + sizeof(struct msgbuf), in main()
145 buf = (struct msgbuf *)calloc(size + sizeof(struct msgbuf), in main()
Dmessage_queue_test_02_rcv.c112 struct msgbuf *message; /* Message buffer */ in main()
126 (struct msgbuf *)calloc((size_t) (sizeof(struct msgbuf) + BUF_SIZE), in main()
/external/ltp/testcases/network/stress/ns-tools/
Dns-udpserver.c143 char *msgbuf; /* Pointer to the message */ in respond_to_client() local
159 msgbuf = malloc(msgbuf_size + 1); in respond_to_client()
160 if (msgbuf == NULL) { in respond_to_client()
168 if ((msglen = recvfrom(sock_fd, msgbuf, msgbuf_size, 0, in respond_to_client()
172 msgbuf[msglen] = '\0'; in respond_to_client()
175 fprintf(stderr, "Message is %s\n", msgbuf); in respond_to_client()
178 if (sendto(sock_fd, msgbuf, msglen, 0, in respond_to_client()
182 free(msgbuf); in respond_to_client()
Dns-mcast_receiver.c370 char *msgbuf; /* Pointer to the message */ in receive_mcast() local
386 msgbuf = malloc(msgbuf_size + 1); in receive_mcast()
387 if (msgbuf == NULL) { in receive_mcast()
408 msglen = recvfrom(sd, msgbuf, msgbuf_size, MSG_DONTWAIT, in receive_mcast()
/external/openssh/
Dlog.c387 char msgbuf[MSGBUFSIZ]; in do_log() local
433 vsnprintf(msgbuf, sizeof(msgbuf), fmtbuf, args); in do_log()
435 vsnprintf(msgbuf, sizeof(msgbuf), fmt, args); in do_log()
437 strnvis(fmtbuf, msgbuf, sizeof(fmtbuf), in do_log()
446 snprintf(msgbuf, sizeof msgbuf, "%s\r\n", fmtbuf); in do_log()
447 (void)write(log_stderr_fd, msgbuf, strlen(msgbuf)); in do_log()
/external/curl/lib/
Dstrerror.c811 char msgbuf[sizeof(conn->syserr_buf)]; in Curl_sspi_strerror() local
1100 wcstombs(msgbuf, wbuf, sizeof(msgbuf)-1); in Curl_sspi_strerror()
1108 msgbuf, sizeof(msgbuf)-1, NULL)) { in Curl_sspi_strerror()
1113 msgbuf[sizeof(msgbuf)-1] = '\0'; in Curl_sspi_strerror()
1115 if((p = strrchr(msgbuf, '\n')) != NULL && (p - msgbuf) >= 2) in Curl_sspi_strerror()
1117 if((p = strrchr(msgbuf, '\r')) != NULL && (p - msgbuf) >= 1) in Curl_sspi_strerror()
1119 msg = msgbuf; in Curl_sspi_strerror()
/external/linux-kselftest/tools/testing/selftests/ipc/
Dmsgque.c173 struct msg1 msgbuf; in fill_msgque() local
175 msgbuf.mtype = MSG_TYPE; in fill_msgque()
176 memcpy(msgbuf.mtext, TEST_STRING, sizeof(TEST_STRING)); in fill_msgque()
177 if (msgsnd(msgque->msq_id, &msgbuf.mtype, sizeof(TEST_STRING), in fill_msgque()
183 msgbuf.mtype = ANOTHER_MSG_TYPE; in fill_msgque()
184 memcpy(msgbuf.mtext, ANOTHER_TEST_STRING, sizeof(ANOTHER_TEST_STRING)); in fill_msgque()
185 if (msgsnd(msgque->msq_id, &msgbuf.mtype, sizeof(ANOTHER_TEST_STRING), in fill_msgque()
/external/curl/tests/server/
Dfake_ntlm.c127 char *msgbuf; in main() local
269 msgbuf = printable(buf, 0); in main()
270 if(msgbuf) { in main()
271 logmsg("invalid input: '%s'\n", msgbuf); in main()
272 free(msgbuf); in main()
/external/ltp/testcases/kernel/syscalls/ipc/msgrcv/
Dmsgrcv08.c51 struct msgbuf { struct
58 struct msgbuf msbs; in msr() argument
59 struct msgbuf msbr; in msr()
/external/pdfium/third_party/zlib_v128/
Dgzlib.c38 wchar_t *msgbuf; in gz_strwinerror() local
45 (LPVOID)&msgbuf, in gz_strwinerror()
51 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') { in gz_strwinerror()
53 msgbuf[chars] = 0; in gz_strwinerror()
58 msgbuf[chars] = 0; in gz_strwinerror()
61 wcstombs(buf, msgbuf, chars + 1); in gz_strwinerror()
62 LocalFree(msgbuf); in gz_strwinerror()
/external/zlib/src/
Dgzlib.c38 wchar_t *msgbuf; local
45 (LPVOID)&msgbuf,
51 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') {
53 msgbuf[chars] = 0;
58 msgbuf[chars] = 0;
61 wcstombs(buf, msgbuf, chars + 1);
62 LocalFree(msgbuf);
/external/zlib/src/test/
Dminigzip.c85 wchar_t *msgbuf; local
92 (LPVOID)&msgbuf,
98 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') {
100 msgbuf[chars] = 0;
105 msgbuf[chars] = 0;
108 wcstombs(buf, msgbuf, chars + 1);
109 LocalFree(msgbuf);
/external/webrtc/webrtc/base/
Dlogging.cc152 char msgbuf[256]; in LogMessage() local
160 msgbuf, sizeof(msgbuf) / sizeof(msgbuf[0]), NULL)) { in LogMessage()
162 isspace(static_cast<unsigned char>(msgbuf[len-1]))) { in LogMessage()
163 msgbuf[--len] = 0; in LogMessage()
165 tmp << " " << msgbuf; in LogMessage()
/external/svox/pico/lib/
Dpicodbg.c102 static char msgbuf[MAX_MESSAGE_LEN + 1]; variable
331 len = vsprintf(msgbuf, format, argptr); in picodbg_varargs()
334 return msgbuf; in picodbg_varargs()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_peap.c236 struct wpabuf *buf, *encr_req, msgbuf; in eap_peap_build_phase2_req() local
259 wpabuf_set(&msgbuf, req, req_len); in eap_peap_build_phase2_req()
260 encr_req = eap_server_tls_encrypt(sm, &data->ssl, &msgbuf); in eap_peap_build_phase2_req()
272 struct wpabuf *buf1, *buf, *encr_req, msgbuf; in eap_peap_build_phase2_soh() local
297 wpabuf_set(&msgbuf, req, req_len); in eap_peap_build_phase2_soh()
299 encr_req = eap_server_tls_encrypt(sm, &data->ssl, &msgbuf); in eap_peap_build_phase2_soh()
477 struct wpabuf *encr_req, msgbuf; in eap_peap_build_phase2_term() local
493 wpabuf_set(&msgbuf, hdr, req_len); in eap_peap_build_phase2_term()
494 encr_req = eap_server_tls_encrypt(sm, &data->ssl, &msgbuf); in eap_peap_build_phase2_term()
/external/strace/mpers-mx32/
Dmsgbuf_t.c37 typedef struct msgbuf msgbuf_t;
/external/strace/mpers-m32/
Dmsgbuf_t.c37 typedef struct msgbuf msgbuf_t;
/external/strace/
Dprint_msgbuf.c38 typedef struct msgbuf msgbuf_t;
/external/kernel-headers/original/uapi/linux/
Dipc.h58 struct msgbuf __user *msgp;
Dmsg.h36 struct msgbuf { struct
/external/libchrome/base/
Dlogging.cc837 char msgbuf[kErrorMessageBufferSize]; in SystemErrorCodeToString() local
839 DWORD len = FormatMessageA(flags, nullptr, error_code, 0, msgbuf, in SystemErrorCodeToString()
840 arraysize(msgbuf), nullptr); in SystemErrorCodeToString()
843 return base::CollapseWhitespaceASCII(msgbuf, true) + in SystemErrorCodeToString()

12