/illumos-gate/usr/src/cmd/lp/lib/msgs/ |
H A D | mrecv.c | 40 mrecv (msgbuf, size) 41 char *msgbuf; 50 n = mread(lp_Md, msgbuf, size); 62 return(getmessage(msgbuf, I_GET_TYPE));
|
H A D | msend.c | 41 int msend ( char * msgbuf ) 43 int msend (msgbuf) 44 char *msgbuf; 51 if ((rval = mwrite(lp_Md, msgbuf)) < 0)
|
H A D | streamio.c | 104 int read3_2 ( MESG * md, char *msgbuf, int size ) argument 113 switch (read_fifo(md->readfd, msgbuf, size)) 132 if ((type = stoh(msgbuf + HEAD_TYPE)) < 0 || LAST_MESSAGE < type) 140 (void)memcpy (AuthCode, msgbuf + HEAD_AUTHCODE, HEAD_AUTHCODE_LEN); 148 size = stoh(msgbuf + HEAD_SIZE) - EXCESS_3_2_LEN; 149 memmove(msgbuf, msgbuf + HEAD_SIZE, size); 150 (void) htos(msgbuf + MESG_SIZE, size); 154 int write3_2 ( MESG * md, char * msgbuf, int size ) argument 160 (void) memmove(tmpbuf + HEAD_SIZE, msgbuf, siz [all...] |
H A D | mread.c | 47 ** EINVAL Bad value for md or msgbuf. 58 int mread ( MESG * md, char * msgbuf, int size ) argument 60 int mread ( md, msgbuf, size ) 62 char *msgbuf; 71 if (md == NULL || msgbuf == NULL) 87 dat.buf = msgbuf; 118 if (read3_2(md, msgbuf, size) < 0) 123 return((int)msize(msgbuf));
|
H A D | mwrite.c | 43 static int _mwrite ( MESG * md , char * msgbuf , int ); 87 int mwrite ( MESG * md, char * msgbuf ) 99 if (msgbuf == NULL) 105 size = stoh(msgbuf); 107 if (LAST_MESSAGE < stoh(msgbuf + MESG_TYPE)) 115 if (_mwrite(md, msgbuf, size) == 0) 133 (void) memcpy(p->dat->buf, msgbuf, size); 163 int _mwrite ( MESG * md, char * msgbuf , int size ) 182 dat.buf = msgbuf; 193 switch (write3_2(md, msgbuf, siz [all...] |
H A D | mdisconnect.c | 113 char *msgbuf = 0; local 121 if ((msgbuf = (char *)Malloc((unsigned)size))) 123 (void)putmessage (msgbuf, S_GOODBYE); 124 (void)msend (msgbuf); 125 Free (msgbuf);
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | debug.c | 46 char msgbuf[BUFSIZ]; local 53 (void) vsnprintf(msgbuf, sizeof (msgbuf), fmt, args); 57 (void) vsnprintf(msgbuf, sizeof (msgbuf), fmtbuf, args); 61 syslog(LOG_DEBUG, msgbuf); 63 (void) fprintf(stderr, "%s\n", msgbuf); 87 char msgbuf[BUFSIZ]; local 95 (void) vsnprintf(msgbuf, sizeof (msgbuf), fm [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | enx_log.c | 83 char msgbuf[ENX_MAX_LINE]; local 89 msglen = snprintf(msgbuf, ENX_MAX_LINE, "%llx: %s", 92 msglen = snprintf(msgbuf, ENX_MAX_LINE, "%s", msg); 118 bcopy(msgbuf, enx_debug_buf+off, msglen); /* no lock needed */ 127 char msgbuf[ENX_MAX_LINE]; local 136 msglen = vsnprintf(msgbuf, ENX_MAX_LINE, newfmt, ap); 140 eibnx_log(msgbuf); 149 char msgbuf[ENX_MAX_LINE]; local 158 msglen = vsnprintf(msgbuf, ENX_MAX_LINE, newfmt, ap); 162 eibnx_log(msgbuf); 171 char msgbuf[ENX_MAX_LINE]; local 194 char msgbuf[ENX_MAX_LINE]; local 216 char msgbuf[ENX_MAX_LINE]; local 239 char msgbuf[ENX_MAX_LINE]; local [all...] |
H A D | eib_log.c | 86 char msgbuf[EIB_MAX_LINE]; local 92 msglen = snprintf(msgbuf, EIB_MAX_LINE, "%llx: %s", 95 msglen = snprintf(msgbuf, EIB_MAX_LINE, "%s", msg); 120 bcopy(msgbuf, eib_debug_buf+off, msglen); /* no lock needed */ 129 char msgbuf[EIB_MAX_LINE]; local 138 msglen = vsnprintf(msgbuf, EIB_MAX_LINE, newfmt, ap); 142 eib_log(msgbuf); 149 char msgbuf[EIB_MAX_LINE]; local 159 (void) snprintf(msgbuf, EIB_MAX_LINE, 165 eib_log(msgbuf); 198 char msgbuf[EIB_MAX_LINE]; local 220 char msgbuf[EIB_MAX_LINE]; local 243 char msgbuf[EIB_MAX_LINE]; local 265 char msgbuf[EIB_MAX_LINE]; local 288 char msgbuf[EIB_MAX_LINE]; local [all...] |
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/ |
H A D | send_message.c | 66 char msgbuf[MSGMAX]; local 78 (void)_putmessage (msgbuf, type, ap); 82 if (msend(msgbuf) == -1) {
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | log.h | 38 int msgbuf(uintptr_t, uint_t, int, const mdb_arg_t *);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/ |
H A D | mema_test.c | 100 char msgbuf[100]; local 102 (void) sprintf(msgbuf, err_sum, total_errors); 103 mtest_message(handle, msgbuf); 111 char msgbuf[100]; local 114 (void) sprintf(msgbuf, pg_header_msg, PAGE_SIZE(handle) * pageno); 115 mtest_message(handle, msgbuf); 124 (void) sprintf(msgbuf, mem_err_msg, offset, 126 mtest_message(handle, msgbuf); 143 char msgbuf[100]; local 166 (void) sprintf(msgbuf, wr_err_ms 298 char msgbuf[100]; local 427 char msgbuf[100]; local [all...] |
/illumos-gate/usr/src/uts/common/io/e1000api/ |
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 447 u32 msgbuf[2]; local 464 u32 msgbuf[2]; local 481 u32 msgbuf = E1000_VF_SET_PROMISC; local [all...] |
/illumos-gate/usr/src/cmd/lp/cmd/ |
H A D | lpshut.c | 63 char msgbuf[MSGMAX]; local 92 (void)putmessage (msgbuf, S_SHUTDOWN, 0); 94 (void)putmessage (msgbuf, S_SHUTDOWN, 1); 96 if (msend(msgbuf) == -1) { 100 if (mrecv(msgbuf, sizeof(msgbuf)) == -1) { 105 mtype = getmessage(msgbuf, R_SHUTDOWN, &status);
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | depchk.c | 70 char msgbuf[4096]; local 131 (void) snprintf(msgbuf, sizeof (msgbuf), 138 (void) snprintf(msgbuf, sizeof (msgbuf), 147 err = (a_dck[i].depcklFunc)(msgbuf, 151 packageName, msgbuf); 163 msgbuf); 164 ptext(stderr, "\\n%s", msgbuf); 299 char msgbuf[409 local [all...] |
/illumos-gate/usr/src/uts/common/io/ixgbe/core/ |
H A D | ixgbe_vf.c | 180 u32 msgbuf[IXGBE_VF_PERMADDR_MSG_LEN]; local 181 u8 *addr = (u8 *)(&msgbuf[1]); 213 msgbuf[0] = IXGBE_VF_RESET; 214 mbx->ops.write_posted(hw, msgbuf, 1, 0); 223 ret_val = mbx->ops.read_posted(hw, msgbuf, 228 if (msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK) && 229 msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_NACK)) 233 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; 347 u32 msgbuf[3]; local 348 u8 *msg_addr = (u8 *)(&msgbuf[ 384 u32 msgbuf[IXGBE_VFMAILBOX_SIZE]; local 428 u32 msgbuf[2]; local 488 u32 msgbuf[3]; local 627 u32 msgbuf[2]; local [all...] |
/illumos-gate/usr/src/cmd/drd/ |
H A D | drd_log.c | 98 char msgbuf[DRD_MAX_MSG_LEN]; local 104 (void) vsnprintf(msgbuf, DRD_MAX_MSG_LEN, fmt, vap); 111 (void) fprintf(stderr, "%s%s%s\n", timebuf, log_prio_str[prio], msgbuf); 114 syslog(prio, msgbuf);
|
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | msgsys.c | 58 msgrcv(int msqid, struct msgbuf *msgp, int msgsz, long msgtyp, int msgflg) 65 msgsnd(int msqid, struct msgbuf *msgp, int msgsz, int msgflg) 80 struct msgbuf *msgp; 99 msgp = va_arg(ap, struct msgbuf *); 107 msgp = va_arg(ap, struct msgbuf *);
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uuxqt.c | 843 msgbuf[BUFSIZ]; local 1097 (void) snprintf(msgbuf, sizeof (msgbuf), 1103 (void) snprintf(msgbuf, sizeof (msgbuf), 1113 incmd, msgbuf, ""); 1115 uucpst(Rmtname, _Sfile, "", incmd, msgbuf); 1150 (void) strcpy(msgbuf, "exited normally"); 1156 (void) snprintf(msgbuf, sizeof (msgbuf), [all...] |
/illumos-gate/usr/src/lib/libbc/inc/include/sys/ |
H A D | msg.h | 71 struct msgbuf { struct
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | ldma_log.c | 98 char msgbuf[LDMA_MAX_MSG_LEN]; local 105 (void) vsnprintf(msgbuf, LDMA_MAX_MSG_LEN, fmt, vap); 113 log_prio_str[prio], msgbuf); 117 syslog(prio, msgbuf);
|
/illumos-gate/usr/src/cmd/listen/ |
H A D | nlps_serv.c | 94 char msgbuf[BUFSIZ]; variable 111 sprintf(msgbuf, "%s/%s", Altbasedir, LOGNAME); 112 if (!(Logfp = fopen(msgbuf, "a+"))) { 117 sprintf(msgbuf, "%s/%s", Altbasedir, PDEBUGNAME); 118 if (!(Debugfp = fopen(msgbuf, "a"))) { 505 sprintf(msgbuf,"NLPS (%s) passfd: %s", 508 nls_reply(NLSSTART, msgbuf); 509 logmessage(msgbuf); 524 sprintf(msgbuf,"%s/%s",Basedir,dbp->dbf_svc_code); 526 if ((i = doconfig(0, msgbuf, NOASSIG [all...] |
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_reass.c | 134 char *msgbuf = NULL; local 140 msgbuf = (char *)malloc(*msglen + 1); 141 if (msgbuf == NULL) 143 (void) strncpy(msgbuf, msg, *msglen); 144 msgbuf[*msglen] = '\0'; 145 msg = msgbuf; 159 if (msgbuf != NULL) 160 free(msgbuf); 198 if (msgbuf != NULL) 199 free(msgbuf); [all...] |
/illumos-gate/usr/src/cmd/fmtmsg/ |
H A D | main.c | 216 static char msgbuf[256]; /* Buf for messages */ 683 (void) snprintf(msgbuf, sizeof (msgbuf), 685 (void) fmtmsg(CLASS, labelbuf, MM_ERROR, msgbuf, 722 (void) snprintf(msgbuf, sizeof (msgbuf), 724 (void) fmtmsg(CLASS, labelbuf, MM_ERROR, msgbuf, 787 (void) snprintf(msgbuf, sizeof (msgbuf), 789 (void) fmtmsg(CLASS, labelbuf, MM_ERROR, msgbuf, 215 static char msgbuf[256]; /* Buf for messages */ variable [all...] |
/illumos-gate/usr/src/cmd/lp/model/ |
H A D | lp.tell.c | 137 msgbuf[MSGMAX], local 332 (void)putmessage ( msgbuf, S_PAPER_CHANGED, printer, trayNum, 342 (void)putmessage (msgbuf,S_SEND_FAULT,printer,key,bufPtr); 355 (void)putmessage( msgbuf,S_CLEAR_FAULT,printer,clearKey, 409 (void)putmessage(msgbuf, S_CLEAR_FAULT, printer, 414 (void)putmessage(msgbuf, S_SEND_FAULT, printer, 420 if (msend(msgbuf) == -1) 422 if (mrecv(msgbuf, sizeof(msgbuf)) == -1) 424 mtype = getmessage(msgbuf, mesgRetTyp [all...] |