| /freebsd-13.1/lib/libopenbsd/ |
| H A D | imsg-buffer.c | 141 ibuf_close(struct msgbuf *msgbuf, struct ibuf *buf) in ibuf_close() argument 147 ibuf_write(struct msgbuf *msgbuf) in ibuf_write() argument 190 msgbuf_init(struct msgbuf *msgbuf) in msgbuf_init() argument 193 msgbuf->fd = -1; in msgbuf_init() 198 msgbuf_drain(struct msgbuf *msgbuf, size_t n) in msgbuf_drain() argument 216 msgbuf_clear(struct msgbuf *msgbuf) in msgbuf_clear() argument 225 msgbuf_write(struct msgbuf *msgbuf) in msgbuf_write() argument 293 ibuf_enqueue(struct msgbuf *msgbuf, struct ibuf *buf) in ibuf_enqueue() argument 296 msgbuf->queued++; in ibuf_enqueue() 300 ibuf_dequeue(struct msgbuf *msgbuf, struct ibuf *buf) in ibuf_dequeue() argument [all …]
|
| H A D | imsg.h | 40 struct msgbuf { struct 60 struct msgbuf w; argument 90 void ibuf_close(struct msgbuf *, struct ibuf *); 91 int ibuf_write(struct msgbuf *); 93 void msgbuf_init(struct msgbuf *); 94 void msgbuf_clear(struct msgbuf *); 95 int msgbuf_write(struct msgbuf *); 96 void msgbuf_drain(struct msgbuf *, size_t);
|
| /freebsd-13.1/sys/dev/ixgbe/ |
| H A D | ixgbe_vf.c | 348 u32 msgbuf[3]; in ixgbe_set_rar_vf() local 356 ret_val = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, 3); in ixgbe_set_rar_vf() 428 u32 msgbuf[2]; in ixgbevf_update_xcast_mode() local 446 err = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, 2); in ixgbevf_update_xcast_mode() 465 u32 msgbuf[2]; in ixgbe_get_link_state_vf() local 472 err = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, 2); in ixgbe_get_link_state_vf() 497 u32 msgbuf[2]; in ixgbe_set_vfta_vf() local 506 ret_val = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, 2); in ixgbe_set_vfta_vf() 558 memset(msgbuf, 0, sizeof(msgbuf)); in ixgbevf_set_uc_addr_vf() 707 u32 msgbuf[2]; in ixgbevf_rlpml_set_vf() local [all …]
|
| /freebsd-13.1/sys/dev/e1000/ |
| H A D | e1000_vf.c | 264 u32 ctrl, msgbuf[3]; in e1000_reset_hw_vf() local 265 u8 *addr = (u8 *)(&msgbuf[1]); in e1000_reset_hw_vf() 283 msgbuf[0] = E1000_VF_RESET; in e1000_reset_hw_vf() 328 u32 msgbuf[3]; in e1000_rar_set_vf() local 332 memset(msgbuf, 0, 12); in e1000_rar_set_vf() 449 u32 msgbuf[2]; in e1000_vfta_set_vf() local 451 msgbuf[0] = E1000_VF_SET_VLAN; in e1000_vfta_set_vf() 452 msgbuf[1] = vid; in e1000_vfta_set_vf() 466 u32 msgbuf[2]; in e1000_rlpml_set_vf() local 468 msgbuf[0] = E1000_VF_SET_LPE; in e1000_rlpml_set_vf() [all …]
|
| /freebsd-13.1/sys/sys/ |
| H A D | msgbuf.h | 41 struct msgbuf { struct 69 extern struct msgbuf *msgbufp; argument 73 void msgbuf_addchar(struct msgbuf *mbp, int c); 75 void msgbuf_clear(struct msgbuf *mbp); 76 void msgbuf_copy(struct msgbuf *src, struct msgbuf *dst); 77 int msgbuf_getbytes(struct msgbuf *mbp, char *buf, int buflen); 78 int msgbuf_getchar(struct msgbuf *mbp); 79 int msgbuf_getcount(struct msgbuf *mbp); 80 void msgbuf_init(struct msgbuf *mbp, void *ptr, int size); 83 void msgbuf_reinit(struct msgbuf *mbp, void *ptr, int size); [all …]
|
| /freebsd-13.1/sys/kern/ |
| H A D | subr_msgbuf.c | 51 static u_int msgbuf_cksum(struct msgbuf *mbp); 66 msgbuf_init(struct msgbuf *mbp, void *ptr, int size) in msgbuf_init() 86 msgbuf_reinit(struct msgbuf *mbp, void *ptr, int size) in msgbuf_reinit() 119 msgbuf_clear(struct msgbuf *mbp) in msgbuf_clear() 133 msgbuf_getcount(struct msgbuf *mbp) in msgbuf_getcount() 166 msgbuf_addchar(struct msgbuf *mbp, int c) in msgbuf_addchar() 283 msgbuf_getchar(struct msgbuf *mbp) in msgbuf_getchar() 391 msgbuf_cksum(struct msgbuf *mbp) in msgbuf_cksum() 405 msgbuf_copy(struct msgbuf *src, struct msgbuf *dst) in msgbuf_copy() 418 msgbuf_duplicate(struct msgbuf *src, struct msgbuf *dst, char *dst_msgptr) in msgbuf_duplicate() [all …]
|
| /freebsd-13.1/crypto/openssh/ |
| H A D | log.c | 343 char msgbuf[MSGBUFSIZ]; in do_log() local 390 vsnprintf(msgbuf, sizeof(msgbuf), fmtbuf, args); in do_log() 392 vsnprintf(msgbuf, sizeof(msgbuf), fmt, args); in do_log() 395 snprintf(fmtbuf, sizeof(fmtbuf), "%s: %s", msgbuf, suffix); in do_log() 396 strlcpy(msgbuf, fmtbuf, sizeof(msgbuf)); in do_log() 398 strnvis(fmtbuf, msgbuf, sizeof(fmtbuf), in do_log() 407 snprintf(msgbuf, sizeof msgbuf, "%s%s%.*s\r\n", in do_log() 410 (int)sizeof msgbuf - 3, fmtbuf); in do_log() 411 (void)write(log_stderr_fd, msgbuf, strlen(msgbuf)); in do_log()
|
| /freebsd-13.1/usr.sbin/fdread/ |
| H A D | fdutil.c | 51 char msgbuf[100]; in printstatus() local 65 sprintf(msgbuf, "timeout"); in printstatus() 67 sprintf(msgbuf, "unexcpted interrupt code %#x", in printstatus() 70 strcpy(msgbuf, "unexpected error code in ST1/ST2"); in printstatus() 73 strcpy(msgbuf, "end of cylinder (wrong format)"); in printstatus() 76 strcpy(msgbuf, "CRC error in data field"); in printstatus() 78 strcpy(msgbuf, "CRC error in ID field"); in printstatus() 81 strcpy(msgbuf, "no address mark in data field"); in printstatus() 83 strcpy(msgbuf, "no address mark in ID field"); in printstatus() 87 strcpy(msgbuf, "no data (sector not found)"); in printstatus() [all …]
|
| /freebsd-13.1/lib/libc/stdio/ |
| H A D | perror.c | 53 char msgbuf[NL_TEXTMAX]; in perror() local 66 strerror_r(errno, msgbuf, sizeof(msgbuf)); in perror() 67 v->iov_base = msgbuf; in perror()
|
| /freebsd-13.1/sys/dev/aic7xxx/aicasm/ |
| H A D | aicasm_macro_scan.l | 66 static char msgbuf[255]; variable 148 snprintf(msgbuf, sizeof(msgbuf), "Invalid character " 150 stop(msgbuf, EX_DATAERR);
|
| H A D | aicasm_scan.l | 68 static char msgbuf[255]; variable 324 snprintf(msgbuf, sizeof(msgbuf), "Invalid character " 327 stop(msgbuf, EX_DATAERR); 439 snprintf(msgbuf, sizeof(msgbuf), "Invalid character " 441 stop(msgbuf, EX_DATAERR);
|
| /freebsd-13.1/libexec/comsat/ |
| H A D | comsat.c | 87 char msgbuf[256]; in main() local 96 (void) recv(0, msgbuf, sizeof(msgbuf) - 1, 0); in main() 103 cc = recv(0, msgbuf, sizeof(msgbuf) - 1, 0); in main() 110 msgbuf[cc] = '\0'; in main() 111 mailfor(msgbuf); in main()
|
| /freebsd-13.1/contrib/openpam/lib/libpam/ |
| H A D | pam_vprompt.c | 63 char msgbuf[PAM_MAX_MSG_SIZE]; in pam_vprompt() local 80 vsnprintf(msgbuf, PAM_MAX_MSG_SIZE, fmt, ap); in pam_vprompt() 82 msg.msg = msgbuf; in pam_vprompt()
|
| /freebsd-13.1/usr.sbin/autofs/ |
| H A D | log.c | 90 static char msgbuf[MSGBUF_LEN]; in log_common() local 95 ret = vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap); in log_common() 102 ret = strnvis(msgbuf_strvised, sizeof(msgbuf_strvised), msgbuf, VIS_NL); in log_common()
|
| /freebsd-13.1/usr.sbin/ctld/ |
| H A D | log.c | 90 static char msgbuf[MSGBUF_LEN]; in log_common() local 95 ret = vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap); in log_common() 102 ret = strnvis(msgbuf_strvised, sizeof(msgbuf_strvised), msgbuf, VIS_NL); in log_common()
|
| /freebsd-13.1/usr.sbin/iscsid/ |
| H A D | log.c | 90 static char msgbuf[MSGBUF_LEN]; in log_common() local 95 ret = vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap); in log_common() 102 ret = strnvis(msgbuf_strvised, sizeof(msgbuf_strvised), msgbuf, VIS_NL); in log_common()
|
| /freebsd-13.1/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | util.c | 237 static char msgbuf[BUFSIZ]; in elfterminate() local 241 vsnprintf(msgbuf, sizeof (msgbuf), fmt, ap); in elfterminate() 244 terminate("%s: %s: %s\n", file, msgbuf, elf_errmsg(-1)); in elfterminate()
|
| /freebsd-13.1/contrib/libpcap/rpcapd/ |
| H A D | log.c | 103 char msgbuf[1024]; in rpcapd_vlog_systemlog() 160 vsprintf(msgbuf, message, ap); in rpcapd_vlog_systemlog() 162 strings[0] = msgbuf; in rpcapd_vlog_systemlog()
|
| /freebsd-13.1/sys/contrib/zlib/test/ |
| H A D | minigzip.c | 85 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);
|
| /freebsd-13.1/sys/contrib/zlib/ |
| H A D | gzlib.c | 42 wchar_t *msgbuf; local 49 (LPVOID)&msgbuf, 55 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') { 57 msgbuf[chars] = 0; 62 msgbuf[chars] = 0; 65 wcstombs(buf, msgbuf, chars + 1); 66 LocalFree(msgbuf);
|
| /freebsd-13.1/sys/contrib/zstd/zlibWrapper/examples/ |
| H A D | minigzip.c | 90 wchar_t *msgbuf; local 97 (LPVOID)&msgbuf, 103 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') { 105 msgbuf[chars] = 0; 110 msgbuf[chars] = 0; 113 wcstombs(buf, msgbuf, chars + 1); 114 LocalFree(msgbuf);
|
| /freebsd-13.1/sys/contrib/zstd/zlibWrapper/ |
| H A D | gzlib.c | 41 wchar_t *msgbuf; local 48 (LPVOID)&msgbuf, 54 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') { 56 msgbuf[chars] = 0; 61 msgbuf[chars] = 0; 64 wcstombs(buf, msgbuf, chars + 1); 65 LocalFree(msgbuf);
|
| /freebsd-13.1/contrib/ntp/include/ |
| H A D | adjtime.h | 45 struct msgbuf msgp;
|
| /freebsd-13.1/contrib/tnftp/src/ |
| H A D | ftp.c | 551 char msgbuf[100]; in abortxfer() local 560 strlcpy(msgbuf, "\nreceive", sizeof(msgbuf)); in abortxfer() 563 strlcpy(msgbuf, "\nsend", sizeof(msgbuf)); in abortxfer() 568 len = strlcat(msgbuf, " aborted. Waiting for remote to finish abort.\n", in abortxfer() 569 sizeof(msgbuf)); in abortxfer() 570 write(fileno(ttyout), msgbuf, len); in abortxfer() 2038 char msgbuf[100]; in abort_squared() local 2043 len = strlcpy(msgbuf, "\nremote abort aborted; closing connection.\n", in abort_squared() 2044 sizeof(msgbuf)); in abort_squared() 2045 write(fileno(ttyout), msgbuf, len); in abort_squared()
|
| /freebsd-13.1/contrib/wpa/src/eap_server/ |
| H A D | eap_server_peap.c | 236 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() 495 struct wpabuf *encr_req, msgbuf; in eap_peap_build_phase2_term() local 511 wpabuf_set(&msgbuf, hdr, req_len); in eap_peap_build_phase2_term() 512 encr_req = eap_server_tls_encrypt(sm, &data->ssl, &msgbuf); in eap_peap_build_phase2_term()
|