/freebsd/lib/libopenbsd/ |
H A D | imsg-buffer.c | 33 void ibuf_enqueue(struct msgbuf *, struct ibuf *); 34 void ibuf_dequeue(struct msgbuf *, struct ibuf *); 139 ibuf_close(struct msgbuf *msgbuf, struct ibuf *buf) in ibuf_close() argument 141 ibuf_enqueue(msgbuf, buf); in ibuf_close() 145 ibuf_write(struct msgbuf *msgbuf) in ibuf_write() argument 153 TAILQ_FOREACH(buf, &msgbuf->bufs, entry) { in ibuf_write() 162 if ((n = writev(msgbuf->fd, iov, i)) == -1) { in ibuf_write() 175 msgbuf_drain(msgbuf, n); in ibuf_write() 188 msgbuf_init(struct msgbuf *msgbuf) in msgbuf_init() argument 190 msgbuf->queued = 0; in msgbuf_init() [all …]
|
H A D | imsg.h | 38 struct msgbuf { struct 58 struct msgbuf w; argument 88 void ibuf_close(struct msgbuf *, struct ibuf *); 89 int ibuf_write(struct msgbuf *); 91 void msgbuf_init(struct msgbuf *); 92 void msgbuf_clear(struct msgbuf *); 93 int msgbuf_write(struct msgbuf *); 94 void msgbuf_drain(struct msgbuf *, size_t);
|
/freebsd/sys/dev/ixgbe/ |
H A D | ixgbe_vf.c | 181 u32 msgbuf[IXGBE_VF_PERMADDR_MSG_LEN]; in ixgbe_reset_hw_vf() local 182 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbe_reset_hw_vf() 215 msgbuf[0] = IXGBE_VF_RESET; in ixgbe_reset_hw_vf() 216 ixgbe_write_mbx(hw, msgbuf, 1, 0); in ixgbe_reset_hw_vf() 225 ret_val = ixgbe_poll_mbx(hw, msgbuf, in ixgbe_reset_hw_vf() 230 if (msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_SUCCESS) && in ixgbe_reset_hw_vf() 231 msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_FAILURE)) in ixgbe_reset_hw_vf() 234 if (msgbuf[0] == (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_SUCCESS)) in ixgbe_reset_hw_vf() 237 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; in ixgbe_reset_hw_vf() 350 u32 msgbuf[3]; in ixgbe_set_rar_vf() local [all …]
|
/freebsd/sys/dev/e1000/ |
H A D | e1000_vf.c | 263 u32 ctrl, msgbuf[3]; in e1000_reset_hw_vf() local 264 u8 *addr = (u8 *)(&msgbuf[1]); in e1000_reset_hw_vf() 282 msgbuf[0] = E1000_VF_RESET; in e1000_reset_hw_vf() 283 mbx->ops.write_posted(hw, msgbuf, 1, 0); in e1000_reset_hw_vf() 288 ret_val = mbx->ops.read_posted(hw, msgbuf, 3, 0); in e1000_reset_hw_vf() 290 if (msgbuf[0] == (E1000_VF_RESET | in e1000_reset_hw_vf() 327 u32 msgbuf[3]; in e1000_rar_set_vf() local 328 u8 *msg_addr = (u8 *)(&msgbuf[1]); in e1000_rar_set_vf() 331 memset(msgbuf, 0, 12); in e1000_rar_set_vf() 332 msgbuf[0] = E1000_VF_SET_MAC_ADDR; in e1000_rar_set_vf() [all …]
|
/freebsd/sys/sys/ |
H A D | msgbuf.h | 38 struct msgbuf { struct 66 extern struct msgbuf *msgbufp; argument 70 void msgbuf_addchar(struct msgbuf *mbp, int c); 71 void msgbuf_addstr(struct msgbuf *mbp, int pri, const char *str, int filter_cr); 72 void msgbuf_clear(struct msgbuf *mbp); 73 void msgbuf_copy(struct msgbuf *src, struct msgbuf *dst); 74 int msgbuf_getbytes(struct msgbuf *mbp, char *buf, int buflen); 75 int msgbuf_getchar(struct msgbuf *mbp); 76 int msgbuf_getcount(struct msgbuf *mbp); 77 void msgbuf_init(struct msgbuf *mbp, void *ptr, int size); [all …]
|
/freebsd/sys/kern/ |
H A D | subr_msgbuf.c | 49 static u_int msgbuf_cksum(struct msgbuf *mbp); 64 msgbuf_init(struct msgbuf *mbp, void *ptr, int size) in msgbuf_init() 84 msgbuf_reinit(struct msgbuf *mbp, void *ptr, int size) in msgbuf_reinit() 117 msgbuf_clear(struct msgbuf *mbp) in msgbuf_clear() 131 msgbuf_getcount(struct msgbuf *mbp) in msgbuf_getcount() 148 msgbuf_do_addchar(struct msgbuf * const mbp, const int c) in msgbuf_do_addchar() 164 msgbuf_addchar(struct msgbuf *mbp, int c) in msgbuf_addchar() 184 msgbuf_addstr(struct msgbuf *mbp, int pri, const char *str, int filter_cr) in msgbuf_addstr() 289 msgbuf_getchar(struct msgbuf *mbp) in msgbuf_getchar() 317 msgbuf_getbytes(struct msgbuf *mbp, char *buf, int buflen) in msgbuf_getbytes() [all …]
|
/freebsd/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, sizeo in do_log() [all...] |
/freebsd/usr.sbin/fdread/ |
H A D | fdutil.c | 49 char msgbuf[100]; in printstatus() local 63 sprintf(msgbuf, "timeout"); in printstatus() 65 sprintf(msgbuf, "unexcpted interrupt code %#x", in printstatus() 68 strcpy(msgbuf, "unexpected error code in ST1/ST2"); in printstatus() 71 strcpy(msgbuf, "end of cylinder (wrong format)"); in printstatus() 74 strcpy(msgbuf, "CRC error in data field"); in printstatus() 76 strcpy(msgbuf, "CRC error in ID field"); in printstatus() 79 strcpy(msgbuf, "no address mark in data field"); in printstatus() 81 strcpy(msgbuf, "no address mark in ID field"); in printstatus() 83 strcpy(msgbuf, "wrong cylinder (format mismatch)"); in printstatus() [all …]
|
/freebsd/lib/libc/stdio/ |
H A D | perror.c | 47 char msgbuf[NL_TEXTMAX]; in perror() local 60 strerror_r(errno, msgbuf, sizeof(msgbuf)); in perror() 61 v->iov_base = msgbuf; in perror()
|
/freebsd/sys/dev/aic7xxx/aicasm/ |
H A D | aicasm_macro_scan.l | 64 static char msgbuf[255]; variable 146 snprintf(msgbuf, sizeof(msgbuf), "Invalid character " 148 stop(msgbuf, EX_DATAERR);
|
H A D | aicasm_scan.l | 66 static char msgbuf[255]; variable 322 snprintf(msgbuf, sizeof(msgbuf), "Invalid character " 325 stop(msgbuf, EX_DATAERR); 437 snprintf(msgbuf, sizeof(msgbuf), "Invalid character " 439 stop(msgbuf, EX_DATAERR);
|
/freebsd/libexec/comsat/ |
H A D | comsat.c | 73 char msgbuf[256]; in main() local 82 (void) recv(0, msgbuf, sizeof(msgbuf) - 1, 0); in main() 89 cc = recv(0, msgbuf, sizeof(msgbuf) - 1, 0); in main() 96 msgbuf[cc] = '\0'; in main() 97 mailfor(msgbuf); in main()
|
/freebsd/contrib/openpam/lib/libpam/ |
H A D | pam_vprompt.c | 61 char msgbuf[PAM_MAX_MSG_SIZE]; in pam_vprompt() local 78 vsnprintf(msgbuf, PAM_MAX_MSG_SIZE, fmt, ap); in pam_vprompt() 80 msg.msg = msgbuf; in pam_vprompt()
|
/freebsd/lib/libiscsiutil/ |
H A D | log.c | 86 static char msgbuf[MSGBUF_LEN]; in log_common() local 91 ret = vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap); in log_common() 98 ret = strnvis(msgbuf_strvised, sizeof(msgbuf_strvised), msgbuf, VIS_NL); in log_common()
|
/freebsd/usr.sbin/autofs/ |
H A D | log.c | 88 static char msgbuf[MSGBUF_LEN]; in log_common() local 93 ret = vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap); in log_common() 100 ret = strnvis(msgbuf_strvised, sizeof(msgbuf_strvised), msgbuf, VIS_NL); in log_common()
|
/freebsd/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/sys/contrib/zlib/ |
H A D | gzlib.c | 34 wchar_t *msgbuf; in gz_strwinerror() local 41 (LPVOID)&msgbuf, in gz_strwinerror() 47 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') { in gz_strwinerror() 49 msgbuf[chars] = 0; in gz_strwinerror() 54 msgbuf[chars] = 0; in gz_strwinerror() 57 wcstombs(buf, msgbuf, chars + 1); in gz_strwinerror() 58 LocalFree(msgbuf); in gz_strwinerror()
|
/freebsd/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/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/contrib/libpcap/rpcapd/ |
H A D | log.c | 101 char msgbuf[1024]; in rpcapd_vlog_systemlog() 158 vsprintf(msgbuf, message, ap); in rpcapd_vlog_systemlog() 160 strings[0] = msgbuf; in rpcapd_vlog_systemlog()
|
/freebsd/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/crypto/openssl/test/ |
H A D | rsa_test.c | 400 unsigned char msgbuf[64]; in test_EVP_rsa_legacy_key() local 487 memset(msgbuf, 0xef, 64); in test_EVP_rsa_legacy_key() 502 && TEST_true(EVP_DigestSign(ctx, sigbuf, &buflen, msgbuf, msglen))); in test_EVP_rsa_legacy_key()
|
/freebsd/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/contrib/ntp/include/ |
H A D | adjtime.h | 45 struct msgbuf msgp;
|
/freebsd/contrib/wpa/src/eap_server/ |
H A D | eap_server_peap.c | 240 struct wpabuf *buf, *encr_req, msgbuf; in eap_peap_build_phase2_req() local 263 wpabuf_set(&msgbuf, req, req_len); in eap_peap_build_phase2_req() 264 encr_req = eap_server_tls_encrypt(sm, &data->ssl, &msgbuf); in eap_peap_build_phase2_req() 276 struct wpabuf *buf1, *buf, *encr_req, msgbuf; in eap_peap_build_phase2_soh() local 301 wpabuf_set(&msgbuf, req, req_len); in eap_peap_build_phase2_soh() 303 encr_req = eap_server_tls_encrypt(sm, &data->ssl, &msgbuf); in eap_peap_build_phase2_soh() 499 struct wpabuf *encr_req, msgbuf; in eap_peap_build_phase2_term() local 515 wpabuf_set(&msgbuf, hdr, req_len); in eap_peap_build_phase2_term() 516 encr_req = eap_server_tls_encrypt(sm, &data->ssl, &msgbuf); in eap_peap_build_phase2_term()
|