/freebsd-current/sys/sys/ |
H A D | msgbuf.h | 38 struct msgbuf { struct 66 extern struct msgbuf *msgbufp; 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 *mb [all...] |
H A D | cons.h | 99 extern struct msgbuf consmsgbuf; /* Message buffer for constty. */
|
H A D | kerneldump.h | 137 struct msgbuf *msgbufp;
|
/freebsd-current/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) argument 141 ibuf_enqueue(msgbuf, buf); 145 ibuf_write(struct msgbuf *msgbuf) argument 153 TAILQ_FOREACH(buf, &msgbuf->bufs, entry) { 162 if ((n = writev(msgbuf->fd, iov, i)) == -1) { 175 msgbuf_drain(msgbuf, 188 msgbuf_init(struct msgbuf *msgbuf) argument 196 msgbuf_drain(struct msgbuf *msgbuf, size_t n) argument 214 msgbuf_clear(struct msgbuf *msgbuf) argument 223 msgbuf_write(struct msgbuf *msgbuf) argument 291 ibuf_enqueue(struct msgbuf *msgbuf, struct ibuf *buf) argument 298 ibuf_dequeue(struct msgbuf *msgbuf, struct ibuf *buf) argument [all...] |
H A D | imsg.h | 38 struct msgbuf { struct 58 struct msgbuf w; 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-current/sys/dev/e1000/ |
H A D | e1000_vf.c | 263 u32 ctrl, msgbuf[3]; local 264 u8 *addr = (u8 *)(&msgbuf[1]); 282 msgbuf[0] = E1000_VF_RESET; 283 mbx->ops.write_posted(hw, msgbuf, 1, 0); 288 ret_val = mbx->ops.read_posted(hw, msgbuf, 3, 0); 290 if (msgbuf[0] == (E1000_VF_RESET | 327 u32 msgbuf[3]; local 328 u8 *msg_addr = (u8 *)(&msgbuf[1]); 331 memset(msgbuf, 0, 12); 332 msgbuf[ 403 u32 msgbuf[E1000_VFMAILBOX_SIZE]; local 448 u32 msgbuf[2]; local 465 u32 msgbuf[2]; local 482 u32 msgbuf = E1000_VF_SET_PROMISC; local [all...] |
/freebsd-current/contrib/ntp/include/ |
H A D | adjtime.h | 45 struct msgbuf msgp;
|
/freebsd-current/lib/libc/stdio/ |
H A D | perror.c | 47 char msgbuf[NL_TEXTMAX]; local 60 strerror_r(errno, msgbuf, sizeof(msgbuf)); 61 v->iov_base = msgbuf;
|
/freebsd-current/sys/dev/ixgbe/ |
H A D | ixgbe_vf.c | 178 u32 msgbuf[IXGBE_VF_PERMADDR_MSG_LEN]; local 179 u8 *addr = (u8 *)(&msgbuf[1]); 211 msgbuf[0] = IXGBE_VF_RESET; 212 mbx->ops.write_posted(hw, msgbuf, 1, 0); 221 ret_val = mbx->ops.read_posted(hw, msgbuf, 226 if (msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK) && 227 msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_NACK)) 230 if (msgbuf[0] == (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK)) 233 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; 347 u32 msgbuf[ local 384 u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; local 427 u32 msgbuf[2]; local 464 u32 msgbuf[2]; local 496 u32 msgbuf[2]; local 553 u32 msgbuf[3], msgbuf_chk; local 706 u32 msgbuf[2]; local [all...] |
/freebsd-current/sys/dev/aic7xxx/aicasm/ |
H A D | aicasm_macro_scan.l | 64 static char msgbuf[255]; 146 snprintf(msgbuf, sizeof(msgbuf), "Invalid character " 148 stop(msgbuf, EX_DATAERR);
|
/freebsd-current/sys/kern/ |
H A D | subr_msgbuf.c | 37 #include <sys/msgbuf.h> 49 static u_int msgbuf_cksum(struct msgbuf *mbp); 52 * Timestamps in msgbuf are useful when trying to diagnose when core dumps 57 &msgbuf_show_timestamp, 0, "Show timestamp in msgbuf"); 64 msgbuf_init(struct msgbuf *mbp, void *ptr, int size) 75 mtx_init(&mbp->msg_lock, "msgbuf", NULL, MTX_SPIN); 84 msgbuf_reinit(struct msgbuf *mbp, void *ptr, int size) 99 printf("msgbuf cksum mismatch (read %x, calc %x)\n", 101 printf("Old msgbuf not recovered\n"); 110 mtx_init(&mbp->msg_lock, "msgbuf", NUL [all...] |
/freebsd-current/contrib/openpam/lib/libpam/ |
H A D | pam_vprompt.c | 61 char msgbuf[PAM_MAX_MSG_SIZE]; local 78 vsnprintf(msgbuf, PAM_MAX_MSG_SIZE, fmt, ap); 80 msg.msg = msgbuf;
|
/freebsd-current/crypto/openssh/ |
H A D | log.c | 343 char msgbuf[MSGBUFSIZ]; local 390 vsnprintf(msgbuf, sizeof(msgbuf), fmtbuf, args); 392 vsnprintf(msgbuf, sizeof(msgbuf), fmt, args); 395 snprintf(fmtbuf, sizeof(fmtbuf), "%s: %s", msgbuf, suffix); 396 strlcpy(msgbuf, fmtbuf, sizeof(msgbuf)); 398 strnvis(fmtbuf, msgbuf, sizeof(fmtbuf), 407 snprintf(msgbuf, sizeo [all...] |
/freebsd-current/usr.sbin/fdread/ |
H A D | fdutil.c | 49 char msgbuf[100]; local 63 sprintf(msgbuf, "timeout"); 65 sprintf(msgbuf, "unexcpted interrupt code %#x", 68 strcpy(msgbuf, "unexpected error code in ST1/ST2"); 71 strcpy(msgbuf, "end of cylinder (wrong format)"); 74 strcpy(msgbuf, "CRC error in data field"); 76 strcpy(msgbuf, "CRC error in ID field"); 79 strcpy(msgbuf, "no address mark in data field"); 81 strcpy(msgbuf, "no address mark in ID field"); 83 strcpy(msgbuf, "wron [all...] |
/freebsd-current/libexec/comsat/ |
H A D | comsat.c | 73 char msgbuf[256]; local 82 (void) recv(0, msgbuf, sizeof(msgbuf) - 1, 0); 89 cc = recv(0, msgbuf, sizeof(msgbuf) - 1, 0); 96 msgbuf[cc] = '\0'; 97 mailfor(msgbuf);
|
/freebsd-current/contrib/libpcap/rpcapd/ |
H A D | log.c | 103 char msgbuf[1024]; 160 vsprintf(msgbuf, message, ap); 162 strings[0] = msgbuf;
|
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | util.c | 237 static char msgbuf[BUFSIZ]; local 241 vsnprintf(msgbuf, sizeof (msgbuf), fmt, ap); 244 terminate("%s: %s: %s\n", file, msgbuf, elf_errmsg(-1));
|
/freebsd-current/lib/libiscsiutil/ |
H A D | log.c | 86 static char msgbuf[MSGBUF_LEN]; local 91 ret = vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap); 98 ret = strnvis(msgbuf_strvised, sizeof(msgbuf_strvised), msgbuf, VIS_NL);
|
/freebsd-current/usr.sbin/autofs/ |
H A D | log.c | 88 static char msgbuf[MSGBUF_LEN]; local 93 ret = vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap); 100 ret = strnvis(msgbuf_strvised, sizeof(msgbuf_strvised), msgbuf, VIS_NL);
|
/freebsd-current/sys/i386/i386/ |
H A D | minidump_machdep.c | 38 #include <sys/msgbuf.h>
|
/freebsd-current/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-current/sys/contrib/zlib/ |
H A D | gzlib.c | 34 wchar_t *msgbuf; local 41 (LPVOID)&msgbuf, 47 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') { 49 msgbuf[chars] = 0; 54 msgbuf[chars] = 0; 57 wcstombs(buf, msgbuf, chars + 1); 58 LocalFree(msgbuf);
|
/freebsd-current/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-current/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-current/sbin/dmesg/ |
H A D | dmesg.c | 33 #include <sys/msgbuf.h> 66 struct msgbuf *bufp, cur; 107 if (sysctlbyname("kern.msgbuf", NULL, &buflen, NULL, 0) == -1) 108 err(1, "sysctl kern.msgbuf"); 114 if (sysctlbyname("kern.msgbuf", bp, &buflen, NULL, 0) == -1) 115 err(1, "sysctl kern.msgbuf");
|