| /trueos/secure/usr.bin/bdes/ |
| HD | bdes.c | 172 DES_cblock msgbuf; /* I/O buffer */ in main() local 209 cvtkey(msgbuf, optarg); in main() 245 cvtkey(msgbuf, p); in main() 248 makekey(&msgbuf); in main() 496 DES_cblock msgbuf; /* I/O buffer */ in ecbenc() local 498 for (bn = 0; (n = READ(msgbuf, 8)) == 8; bn++) { in ecbenc() 502 DES_XFORM(&msgbuf); in ecbenc() 503 WRITE(&msgbuf, 8); in ecbenc() 510 MEMZERO(&msgbuf[n], 8 - n); in ecbenc() 511 msgbuf[7] = n; in ecbenc() [all …]
|
| /trueos/sys/dev/e1000/ |
| HD | 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 …]
|
| /trueos/sys/dev/ixgbe/ |
| HD | ixgbe_vf.c | 180 u32 msgbuf[IXGBE_VF_PERMADDR_MSG_LEN]; in ixgbe_reset_hw_vf() local 181 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbe_reset_hw_vf() 211 msgbuf[0] = IXGBE_VF_RESET; in ixgbe_reset_hw_vf() 212 mbx->ops.write_posted(hw, msgbuf, 1, 0); in ixgbe_reset_hw_vf() 221 ret_val = mbx->ops.read_posted(hw, msgbuf, in ixgbe_reset_hw_vf() 226 if (msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK) && in ixgbe_reset_hw_vf() 227 msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_NACK)) in ixgbe_reset_hw_vf() 231 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; in ixgbe_reset_hw_vf() 345 u32 msgbuf[3]; in ixgbe_set_rar_vf() local 346 u8 *msg_addr = (u8 *)(&msgbuf[1]); in ixgbe_set_rar_vf() [all …]
|
| /trueos/sys/sys/ |
| HD | msgbuf.h | 39 struct msgbuf { struct 64 extern struct msgbuf *msgbufp; argument 68 void msgbuf_addchar(struct msgbuf *mbp, int c); 69 void msgbuf_addstr(struct msgbuf *mbp, int pri, char *str, int filter_cr); 70 void msgbuf_clear(struct msgbuf *mbp); 71 void msgbuf_copy(struct msgbuf *src, struct msgbuf *dst); 72 int msgbuf_getbytes(struct msgbuf *mbp, char *buf, int buflen); 73 int msgbuf_getchar(struct msgbuf *mbp); 74 int msgbuf_getcount(struct msgbuf *mbp); 75 void msgbuf_init(struct msgbuf *mbp, void *ptr, int size); [all …]
|
| HD | cons.h | 96 extern struct msgbuf consmsgbuf; /* Message buffer for constty. */
|
| /trueos/sys/kern/ |
| HD | subr_msgbuf.c | 49 static u_int msgbuf_cksum(struct msgbuf *mbp); 65 msgbuf_init(struct msgbuf *mbp, void *ptr, int size) in msgbuf_init() 85 msgbuf_reinit(struct msgbuf *mbp, void *ptr, int size) in msgbuf_reinit() 118 msgbuf_clear(struct msgbuf *mbp) in msgbuf_clear() 131 msgbuf_getcount(struct msgbuf *mbp) in msgbuf_getcount() 149 msgbuf_do_addchar(struct msgbuf * const mbp, u_int * const seq, const int c) in msgbuf_do_addchar() 165 msgbuf_addchar(struct msgbuf *mbp, int c) in msgbuf_addchar() 183 msgbuf_addstr(struct msgbuf *mbp, int pri, char *str, int filter_cr) in msgbuf_addstr() 293 msgbuf_getchar(struct msgbuf *mbp) in msgbuf_getchar() 321 msgbuf_getbytes(struct msgbuf *mbp, char *buf, int buflen) in msgbuf_getbytes() [all …]
|
| HD | subr_prf.c | 977 static struct msgbuf *oldp = NULL; in msgbufinit() 981 msgbufp = (struct msgbuf *)(cp + size); in msgbufinit() 1025 SYSCTL_PROC(_kern, OID_AUTO, msgbuf, 1052 DB_SHOW_COMMAND(msgbuf, db_show_msgbuf) in DB_SHOW_COMMAND() argument
|
| /trueos/usr.sbin/fdread/ |
| HD | 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 …]
|
| /trueos/crypto/openssh/ |
| HD | log.c | 388 char msgbuf[MSGBUFSIZ]; in do_log() local 434 vsnprintf(msgbuf, sizeof(msgbuf), fmtbuf, args); in do_log() 436 vsnprintf(msgbuf, sizeof(msgbuf), fmt, args); in do_log() 438 strnvis(fmtbuf, msgbuf, sizeof(fmtbuf), in do_log() 447 snprintf(msgbuf, sizeof msgbuf, "%s\r\n", fmtbuf); in do_log() 448 (void)write(log_stderr_fd, msgbuf, strlen(msgbuf)); in do_log()
|
| /trueos/lib/libc/stdio/ |
| HD | perror.c | 51 char msgbuf[NL_TEXTMAX]; in perror() local 64 strerror_r(errno, msgbuf, sizeof(msgbuf)); in perror() 65 v->iov_base = msgbuf; in perror()
|
| /trueos/libexec/comsat/ |
| HD | comsat.c | 85 char msgbuf[256]; in main() local 94 (void) recv(0, msgbuf, sizeof(msgbuf) - 1, 0); in main() 101 cc = recv(0, msgbuf, sizeof(msgbuf) - 1, 0); in main() 108 msgbuf[cc] = '\0'; in main() 109 mailfor(msgbuf); in main()
|
| /trueos/sys/dev/aic7xxx/aicasm/ |
| HD | aicasm_macro_scan.l | 64 static char msgbuf[255]; variable 146 snprintf(msgbuf, sizeof(msgbuf), "Invalid character " 148 stop(msgbuf, EX_DATAERR);
|
| HD | 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);
|
| /trueos/contrib/openpam/lib/libpam/ |
| HD | 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()
|
| /trueos/usr.sbin/ctld/ |
| HD | log.c | 89 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()
|
| /trueos/usr.sbin/iscsid/ |
| HD | log.c | 89 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()
|
| /trueos/usr.sbin/autofs/ |
| HD | log.c | 89 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()
|
| /trueos/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| HD | util.c | 236 static char msgbuf[BUFSIZ]; in elfterminate() local 240 vsnprintf(msgbuf, sizeof (msgbuf), fmt, ap); in elfterminate() 243 terminate("%s: %s: %s\n", file, msgbuf, elf_errmsg(-1)); in elfterminate()
|
| /trueos/lib/libz/ |
| HD | 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);
|
| /trueos/lib/libz/test/ |
| HD | 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);
|
| /trueos/contrib/tnftp/src/ |
| HD | 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()
|
| /trueos/contrib/wpa/src/eap_server/ |
| HD | eap_server_peap.c | 233 struct wpabuf *buf, *encr_req, msgbuf; in eap_peap_build_phase2_req() local 258 wpabuf_set(&msgbuf, req, req_len); in eap_peap_build_phase2_req() 259 encr_req = eap_server_tls_encrypt(sm, &data->ssl, &msgbuf); in eap_peap_build_phase2_req() 271 struct wpabuf *buf1, *buf, *encr_req, msgbuf; in eap_peap_build_phase2_soh() local 296 wpabuf_set(&msgbuf, req, req_len); in eap_peap_build_phase2_soh() 298 encr_req = eap_server_tls_encrypt(sm, &data->ssl, &msgbuf); in eap_peap_build_phase2_soh() 465 struct wpabuf *encr_req, msgbuf; in eap_peap_build_phase2_term() local 481 wpabuf_set(&msgbuf, hdr, req_len); in eap_peap_build_phase2_term() 482 encr_req = eap_server_tls_encrypt(sm, &data->ssl, &msgbuf); in eap_peap_build_phase2_term()
|
| /trueos/contrib/ntp/include/ |
| HD | adjtime.h | 45 struct msgbuf msgp;
|
| /trueos/libexec/pppoed/ |
| HD | pppoed.c | 257 char msgbuf[sizeof(struct ng_mesg) + sizeof(struct ngpppoe_sts)]; in Spawn() local 258 struct ng_mesg *rep = (struct ng_mesg *)msgbuf; in Spawn() 259 struct ngpppoe_sts *sts = (struct ngpppoe_sts *)(msgbuf + sizeof *rep); in Spawn() 376 if ((ret = NgRecvMsg(cs, rep, sizeof msgbuf, NULL)) < 0) { in Spawn()
|
| /trueos/usr.sbin/ppp/ |
| HD | ether.c | 217 char msgbuf[sizeof(struct ng_mesg) + sizeof(struct ngpppoe_sts)]; in ether_MessageIn() local 218 struct ng_mesg *rep = (struct ng_mesg *)msgbuf; in ether_MessageIn() 219 struct ngpppoe_sts *sts = (struct ngpppoe_sts *)(msgbuf + sizeof *rep); in ether_MessageIn() 244 if (NgRecvMsg(dev->cs, rep, sizeof msgbuf, NULL) <= 0) in ether_MessageIn()
|