Searched defs:msgbuf (Results 1 - 25 of 74) sorted by relevance

123

/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Dsend_message.c66 char msgbuf[MSGMAX]; local
78 (void)_putmessage (msgbuf, type, ap);
82 if (msend(msgbuf) == -1) {
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dmdisconnect.c113 char *msgbuf = 0; local
121 if ((msgbuf = (char *)Malloc((unsigned)size)))
123 (void)putmessage (msgbuf, S_GOODBYE);
124 (void)msend (msgbuf);
125 Free (msgbuf);
H A Dmread.c47 ** 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 Dstreamio.c104 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...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dlog.c35 msgbuf(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function
56 if (mdb_pwalk_dcmd("b_next", "msgbuf", argc, argv,
/illumos-gate/usr/src/cmd/lp/cmd/
H A Dlpshut.c63 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/lp/lib/papi/
H A Dpapi_impl.h60 char *msgbuf; member in struct:__anon813
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Ddebug.c46 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/cmd/drd/
H A Ddrd_log.c98 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/cmd/ldmad/
H A Dldma_log.c98 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/lib/libsip/common/
H A Dsip_reass.c134 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...]
H A Dsip_itf.c426 char *msgbuf = NULL; local
439 msgbuf = (char *)malloc(msglen + 1);
440 if (msgbuf == NULL) {
444 (void) strncpy(msgbuf, msgstr, msglen);
445 msgbuf[msglen] = '\0';
446 msgstr = msgbuf;
450 if (msgbuf != NULL)
451 free(msgbuf);
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dmsg.h71 struct msgbuf { struct
/illumos-gate/usr/src/cmd/rpcsvc/
H A Dspray.c66 char msgbuf[256]; local
109 sprintf(msgbuf, "spray: cannot clnt_create %s:%s", host, type);
110 clnt_pcreateerror(msgbuf);
/illumos-gate/usr/src/cmd/bnu/
H A Dlimits.c70 char msgbuf[BUFSIZ]; /* place to build messages */ local
76 sprintf(msgbuf, "fopen of %s failed with errno=%%d\n", LIMITS);
77 DEBUG(5, msgbuf, errno);
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Ddepchk.c70 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/ib/clients/eoib/
H A Denx_log.c83 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 Deib_log.c86 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/uts/sun4/os/
H A Dcpu_states.c101 char msgbuf[ABORT_SEQ_MSGBUFSZ]; local
107 bcopy(abort_seq_msgbuf, msgbuf, abort_seq_msglen);
108 msg = msgbuf;
/illumos-gate/usr/src/cmd/allocate/
H A Dallocate.c133 char msgbuf[200]; local
224 (void) snprintf(msgbuf, sizeof (msgbuf), "%s: %s\n", name, msg);
225 (void) wdwmsg(name, msgbuf);
/illumos-gate/usr/src/tools/ctf/cvt/
H A Dutil.c222 static char msgbuf[BUFSIZ]; local
226 vsnprintf(msgbuf, sizeof (msgbuf), fmt, ap);
229 terminate("%s: %s: %s\n", file, msgbuf, elf_errmsg(-1));
/illumos-gate/usr/src/boot/lib/libz/
H A Dgzlib.c41 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);
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/
H A Dmema_test.c100 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/cmd/cmd-inet/usr.sbin/
H A Din.comsat.c137 char msgbuf[100]; local
173 (void) recv(0, msgbuf, sizeof (msgbuf) - 1, 0);
187 cc = recv(0, msgbuf, sizeof (msgbuf) - 1, 0);
197 msgbuf[cc] = 0;
199 mailfor(msgbuf);
/illumos-gate/usr/src/cmd/cron/
H A Dfuncs.c156 struct message *pmsg, msgbuf; local
159 (void) memset(&msgbuf, 0, sizeof (msgbuf));
160 pmsg = &msgbuf;

Completed in 80 milliseconds

123