/illumos-gate/usr/src/lib/lib9p/common/ |
H A D | pack.c | 76 l9p_iov_io(struct l9p_message *msg, void *buffer, size_t len) in l9p_iov_io() argument 81 assert(msg != NULL); in l9p_iov_io() 86 if (msg->lm_cursor_iov >= msg->lm_niov) in l9p_iov_io() 92 size_t idx = msg->lm_cursor_iov; in l9p_iov_io() 93 size_t space = msg->lm_iov[idx].iov_len - msg->lm_cursor_offset; in l9p_iov_io() 96 if (msg->lm_mode == L9P_PACK) { in l9p_iov_io() 97 memcpy((char *)msg->lm_iov[idx].iov_base + in l9p_iov_io() 98 msg->lm_cursor_offset, (char *)buffer + done, in l9p_iov_io() 102 if (msg->lm_mode == L9P_UNPACK) { in l9p_iov_io() 104 (char *)msg->lm_iov[idx].iov_base + in l9p_iov_io() [all …]
|
/illumos-gate/usr/src/cmd/svc/milestone/ |
H A D | net-install | 111 msg="Error creating default route:\n\"$cmd\"" 112 net_record_err "$msg" $err 119 msg="Error creating \"$rootdir/etc/inet\" directory" 120 net_record_err "$msg" $err 127 msg="Error adding persistent default route:\n\"$cmd\"" 128 net_record_err "$msg" $err 160 msg="No \"address_type\" property defined in the " 161 msg=$msg"\"$NET_V4IF\" property group" 162 net_record_err "$msg" 0 170 msg="Bad value, \"$prop\", defined for the \"address_type\" " [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_newmsg.c | 39 ns_msg *msg = &handle->msg; in ns_newmsg_init() local 42 msg->_msg = buffer; in ns_newmsg_init() 43 msg->_eom = buffer + bufsiz; in ns_newmsg_init() 44 msg->_sect = ns_s_qd; in ns_newmsg_init() 45 msg->_rrnum = 0; in ns_newmsg_init() 46 msg->_msg_ptr = buffer + NS_HFIXEDSZ; in ns_newmsg_init() 47 handle->dnptrs[0] = msg->_msg; in ns_newmsg_init() 57 ns_newmsg_copy(ns_newmsg *handle, ns_msg *msg) { in ns_newmsg_copy() argument 61 ns_newmsg_id(handle, ns_msg_id(*msg)); in ns_newmsg_copy() 63 ns_newmsg_flag(handle, flag, ns_msg_getflag(*msg, flag)); in ns_newmsg_copy() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_headers.h | 48 #define FATAL(msg, fcode) \ argument 50 syslog(LOG_ERR, "ERROR: %s", (msg)); \ 52 __nisdb_get_tsd()->fatalmsg = msg; \ 55 #define FATAL3(msg, fcode, retval) \ argument 57 syslog(LOG_ERR, "ERROR: %s", (msg)); \ 59 __nisdb_get_tsd()->fatalmsg = msg; \ 64 #define LOCKVAL(lockcall, msg, lockcode) \ argument 69 __nisdb_get_tsd()->fatalmsg = msg; \ 74 #define LOCKVAL(lockcall, msg, lockcode) \ argument 79 __nisdb_get_tsd()->fatalmsg = msg; \ [all …]
|
/illumos-gate/usr/src/cmd/devmgmt/cmds/ |
H A D | putdgrp.c | 107 static char msg[256]; /* Space for text of message */ variable 239 (void) snprintf(msg, sizeof(msg), E_NODGRP, dgroup); in main() 240 stdmsg(MM_NRECOV, lbl, MM_ERROR, msg); in main() 250 (void) snprintf(msg, sizeof(msg), E_NODGRPTAB, _dgrptabpath()); in main() 251 stdmsg(MM_NRECOV, lbl, MM_ERROR, msg); in main() 266 (void) snprintf(msg, sizeof(msg), E_NOMKTAB, p); in main() 268 (void) snprintf(msg, sizeof(msg), E_NODGRPTAB, p); in main() 269 stdmsg(MM_NRECOV, lbl, MM_ERROR, msg); in main() 278 (void) snprintf(msg, sizeof(msg), E_INTERNAL, errno); in main() 279 stdmsg(MM_NRECOV, lbl, MM_ERROR, msg); in main() [all …]
|
H A D | putdev.c | 115 static char msg[256]; /* Space for text of message */ variable 290 else (void) snprintf(p=msg, sizeof(msg), E_INVALIAS, alias); in main() 301 (void) snprintf(msg, sizeof(msg), E_ALIASIS, alias); in main() 302 stdmsg(MM_NRECOV, lbl, MM_ERROR, msg); in main() 315 (void) snprintf(msg, sizeof(msg), E_NOMKDTAB, p); in main() 317 (void) snprintf(msg, sizeof(msg), E_NODEVTAB, p); in main() 318 stdmsg(MM_NRECOV, lbl, MM_ERROR, msg); in main() 347 (void) sprintf(msg, E_INTERNAL, errno); in main() 348 stdmsg(MM_NRECOV, lbl, MM_ERROR, msg); in main() 390 (void) snprintf(msg, sizeof(msg), E_NODEV, device); in main() [all …]
|
H A D | devfree.c | 108 static char msg[MM_MXTXTLN+1]; variable 201 (void) snprintf(msg, sizeof (msg), M_INVKEY, *argp); in main() 202 stdmsg(MM_NRECOV, lbl, MM_ERROR, msg); in main() 217 (void) snprintf(msg, sizeof(msg), M_RSVTAB, rsvtab); in main() 221 (void) snprintf(msg, sizeof (msg), M_ERROR, errno); in main() 225 stdmsg(MM_NRECOV, lbl, sev, msg); in main() 242 (void) snprintf(msg, sizeof(msg), M_DEVTAB, devtab); in main() 246 (void) snprintf(msg, sizeof (msg), M_ERROR, errno); in main() 250 stdmsg(MM_NRECOV, lbl, sev, msg); in main() 257 (void) snprintf(msg, sizeof(msg), M_INVKEY, *argp); in main() [all …]
|
/illumos-gate/usr/src/uts/common/io/comstar/port/pppt/ |
H A D | pppt_msg.c | 47 static void pppt_msg_tgt_deregister(stmf_ic_msg_t *msg); 49 static void pppt_msg_session_destroy(stmf_ic_msg_t *msg); 51 static void pppt_msg_scsi_cmd(stmf_ic_msg_t *msg); 53 static void pppt_msg_data_xfer_done(stmf_ic_msg_t *msg); 55 static void pppt_msg_handle_status(stmf_ic_msg_t *msg); 58 pppt_msg_rx(stmf_ic_msg_t *msg) in pppt_msg_rx() argument 60 switch (msg->icm_msg_type) { in pppt_msg_rx() 62 pppt_msg_tgt_register(msg); in pppt_msg_rx() 65 pppt_msg_tgt_deregister(msg); in pppt_msg_rx() 68 pppt_msg_tx_status(msg, STMF_NOT_SUPPORTED); in pppt_msg_rx() [all …]
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPReg.c | 86 struct reg_msg *msg; member 97 struct reg_msg *msg; member 143 struct reg_msg *msg; in SLPReg() local 166 pcScopeList, pcAttrs, fresh, &msg)) != SLP_OK) { in SLPReg() 172 if ((err = reg_common(hSLP, msg, pvUser, callback)) == SLP_OK && in SLPReg() 192 SLPBoolean fresh, struct reg_msg **msg) { in packSrvReg() argument 204 *msg = NULL; in packSrvReg() 205 if (!(*msg = calloc(1, sizeof (**msg)))) { in packSrvReg() 238 if (!((*msg)->msgiov = calloc(4, sizeof (*((*msg)->msgiov))))) { in packSrvReg() 243 (*msg)->msgiov_len = 4; in packSrvReg() [all …]
|
H A D | SLPFindSrvTypes.c | 136 slp_msg_t *msg = &(hp->msg); in slp_packSrvTypeRqst() local 147 if (!(msg->iov = calloc(6, sizeof (*(msg->iov))))) { in slp_packSrvTypeRqst() 151 msg->iovlen = 6; in slp_packSrvTypeRqst() 166 if (!(msg->msg = calloc(1, msgLen))) { in slp_packSrvTypeRqst() 167 free(msg->iov); in slp_packSrvTypeRqst() 173 msg->prlistlen.iov_base = msg->msg; in slp_packSrvTypeRqst() 174 msg->prlistlen.iov_len = 2; in slp_packSrvTypeRqst() 175 msg->iov[1].iov_base = msg->msg; in slp_packSrvTypeRqst() 176 msg->iov[1].iov_len = 2; in slp_packSrvTypeRqst() 178 msg->scopeslen.iov_base = msg->msg + 2; in slp_packSrvTypeRqst() [all …]
|
H A D | SLPFindSrvs.c | 330 slp_msg_t *msg = &(hp->msg); in slp_packSrvRqst() local 351 if (!(msg->iov = calloc(7, sizeof (*(msg->iov))))) { in slp_packSrvRqst() 355 msg->iovlen = 7; in slp_packSrvRqst() 364 if (!(msg->msg = calloc(1, msgLen))) { in slp_packSrvRqst() 365 free(msg->iov); in slp_packSrvRqst() 371 msg->prlistlen.iov_base = msg->msg; in slp_packSrvRqst() 372 msg->prlistlen.iov_len = 2; in slp_packSrvRqst() 373 msg->iov[1].iov_base = msg->msg; in slp_packSrvRqst() 374 msg->iov[1].iov_len = 2; in slp_packSrvRqst() 376 msg->scopeslen.iov_base = msg->msg + 2; in slp_packSrvRqst() [all …]
|
H A D | SLPFindAttrs.c | 301 slp_msg_t *msg = &(hp->msg); in slp_packAttrRqst() local 322 if (!(msg->iov = calloc(7, sizeof (*(msg->iov))))) { in slp_packAttrRqst() 326 msg->iovlen = 7; in slp_packAttrRqst() 335 if (!(msg->msg = calloc(1, msgLen))) { in slp_packAttrRqst() 336 free(msg->iov); in slp_packAttrRqst() 342 msg->prlistlen.iov_base = msg->msg; in slp_packAttrRqst() 343 msg->prlistlen.iov_len = 2; in slp_packAttrRqst() 344 msg->iov[1].iov_base = msg->msg; in slp_packAttrRqst() 345 msg->iov[1].iov_len = 2; in slp_packAttrRqst() 347 msg->scopeslen.iov_base = msg->msg + 2; in slp_packAttrRqst() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | x_call.c | 142 xc_insert(void *queue, xc_msg_t *msg) in xc_insert() argument 150 ASSERT(msg->xc_command != XC_MSG_FREE || in xc_insert() 151 cpu[msg->xc_master] == NULL || /* possible only during init */ in xc_insert() 152 queue == &cpu[msg->xc_master]->cpu_m.xc_free); in xc_insert() 156 msg->xc_next = old_head; in xc_insert() 157 } while (atomic_cas_ptr(queue, old_head, msg) != old_head); in xc_insert() 189 xc_msg_t *msg = xc_extract(&mcpup->xc_msgbox); in xc_get() local 190 mcpup->xc_curmsg = msg; in xc_get() 191 return (msg); in xc_get() 202 xc_msg_t *msg; in xc_init_cpu() local [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_client_debug.c | 788 nfs4_free_msg(nfs4_debug_msg_t *msg) in nfs4_free_msg() argument 792 if (msg->msg_type == RM_EVENT) in nfs4_free_msg() 793 free_event(&msg->rmsg_u.msg_event); in nfs4_free_msg() 795 free_fact(&msg->rmsg_u.msg_fact); in nfs4_free_msg() 797 if (msg->msg_srv) { in nfs4_free_msg() 798 len = strlen(msg->msg_srv) + 1; in nfs4_free_msg() 799 kmem_free(msg->msg_srv, len); in nfs4_free_msg() 802 if (msg->msg_mntpt) { in nfs4_free_msg() 803 len = strlen(msg->msg_mntpt) + 1; in nfs4_free_msg() 804 kmem_free(msg->msg_mntpt, len); in nfs4_free_msg() [all …]
|
/illumos-gate/usr/src/cmd/bhyve/test/tests/mevent/ |
H A D | testlib.h | 34 #define VERBOSE(msg) \ argument 38 (void) printf msg; \ 45 #define FAIL(msg) \ argument 48 (void) printf msg; \ 53 #define FAIL_ERRNO(msg) FAIL((msg ": %s", strerror(errno))) argument 61 #define ASSERT_CMP(msg, got, cmp, exp, nfmt) \ argument 64 (void) printf msg; \ 70 #define ASSERT_CHAR_EQ(msg, got, exp) ASSERT_CMP(msg, got, ==, exp, "%c") argument 71 #define ASSERT_INT_EQ(msg, got, exp) ASSERT_CMP(msg, got, ==, exp, "%d") argument 72 #define ASSERT_INT_NEQ(msg, got, exp) ASSERT_CMP(msg, got, !=, exp, "%d") argument [all …]
|
/illumos-gate/usr/src/lib/pam_modules/sample/ |
H A D | sample_utils.c | 46 __free_msg(num_msg, msg) in __free_msg() argument 48 struct pam_message *msg; 53 if (msg) { 54 m = msg; 56 if (m->msg) 57 free(m->msg); 59 free(msg); 99 struct pam_message *msg; variable 106 msg = (struct pam_message *)calloc(num_msg, 108 if (msg == NULL) { [all …]
|
/illumos-gate/usr/src/cmd/genmsg/ |
H A D | util.c | 71 char *msg; member 105 add_msg(int setid, int msgid, char *msg, char *file, int line, int no_write) in add_msg() argument 110 if (lookup_msgid(si, msgid, msg, file, line)) { in add_msg() 113 add_msgid(si, msgid, msg, file, line, no_write); in add_msg() 116 add_setid(setid, msgid, msg, file, line, no_write); in add_msg() 173 char msg[NL_TEXTMAX+32]; /* 32 is some other stuff. */ in write_msgfile() local 200 makeup_msg(&(mi->msg)); in write_msgfile() 202 (void) snprintf(msg, sizeof (msg), "%d\t%s%s%s\n", in write_msgfile() 203 mi->id, pquote, mi->msg, pquote); in write_msgfile() 219 print_prefix(fp, "$ ", FALSE, msg); in write_msgfile() [all …]
|
/illumos-gate/usr/src/cmd/hal/hald-runner/ |
H A D | main.c | 40 parse_udi (run_request *r, DBusMessage *msg, DBusMessageIter *iter) in parse_udi() argument 60 parse_environment(run_request *r, DBusMessage *msg, DBusMessageIter *iter) in parse_environment() argument 90 handle_run(DBusConnection *con, DBusMessage *msg) in handle_run() argument 98 g_assert(dbus_message_iter_init(msg, &iter)); in handle_run() 100 if (!parse_udi(r, msg, &iter)) in handle_run() 103 if (!parse_environment(r, msg, &iter)) in handle_run() 123 run_request_run(r, con, msg, NULL); in handle_run() 128 reply = dbus_message_new_error(msg, "org.freedesktop.HalRunner.Malformed", in handle_run() 135 handle_start(DBusConnection *con, DBusMessage *msg, gboolean is_singleton) in handle_start() argument 145 g_assert(dbus_message_iter_init(msg, &iter)); in handle_start() [all …]
|
/illumos-gate/usr/src/cmd/sckmd/sparc/sun4u/ |
H A D | sckmd.c | 81 static int process_sckm_req(int fd, sckm_ioctl_getreq_t *msg); 82 static int send_sckm_status(int fd, sckm_ioctl_status_t *msg); 85 static int convert_pfkey_msg(struct sadb_msg *msg); 101 sckm_ioctl_getreq_t msg; in main() local 187 (void) memset(&msg, 0, sizeof (sckm_ioctl_getreq_t)); in main() 188 msg.buf = (caddr_t)msg_buf; in main() 190 msg.buf_len = SCKMD_MAX_MSG_SIZE; in main() 193 if (ioctl(fd, SCKM_IOCTL_GETREQ, &msg) == -1) { in main() 200 if (process_sckm_req(fd, &msg) == -1) { in main() 220 process_sckm_req(int fd, sckm_ioctl_getreq_t *msg) in process_sckm_req() argument [all …]
|
/illumos-gate/usr/src/cmd/sgs/libldmake/common/ |
H A D | lock.c | 43 file_lock_error(char *msg, char *file, int err, const char *str, in file_lock_error() argument 49 (void) snprintf(msg, mlen, "Could not lock file `%s'; ", file); in file_lock_error() 50 len = strlen(msg); in file_lock_error() 51 (void) snprintf(&msg[len], (mlen - len), str, arg1, arg2); in file_lock_error() 52 (void) strcat(msg, " failed - "); in file_lock_error() 54 (void) strlcat(msg, errstr, mlen); in file_lock_error() 56 len = strlen(msg); in file_lock_error() 57 (void) sprintf(&msg[len], "errno %d", err); in file_lock_error() 96 static char msg[MAXPATHLEN]; in file_lock() local 107 file_lock_error(msg, name, errno, in file_lock() [all …]
|
/illumos-gate/usr/src/lib/libsqlite/test/ |
H A D | select1.test | 23 set v [catch {execsql {SELECT * FROM test1}} msg] 24 lappend v $msg 30 set v [catch {execsql {SELECT * FROM test1, test2}} msg] 31 lappend v $msg 34 set v [catch {execsql {SELECT * FROM test2, test1}} msg] 35 lappend v $msg 121 set v [catch {execsql {SELECT count(f1,f2) FROM test1}} msg] 122 lappend v $msg 125 set v [catch {execsql {SELECT count(f1) FROM test1}} msg] 126 lappend v $msg [all …]
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | hald_dbus.h | 34 DBusMessage *msg); 36 DBusMessage *msg); 38 DBusMessage *msg); 40 DBusMessage *msg); 42 DBusMessage *msg); 44 DBusMessage *msg); 46 DBusMessage *msg); 48 DBusMessage *msg, dbus_bool_t local_interface); 50 DBusMessage *msg, dbus_bool_t local_interface); 52 DBusMessage *msg, dbus_bool_t local_interface); [all …]
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_msg.c | 36 static uint32_t emlxs_msg_log_check(emlxs_port_t *port, emlxs_msg_t *msg); 37 static uint32_t emlxs_msg_print_check(emlxs_port_t *port, emlxs_msg_t *msg); 142 emlxs_msg_t *msg, char *buffer) in emlxs_msg_log() argument 175 (entry->msg == msg) && in emlxs_msg_log() 192 switch (entry->msg->level) { in emlxs_msg_log() 219 entry2->msg = msg2; in emlxs_msg_log() 249 entry->msg = msg; in emlxs_msg_log() 272 emlxs_msg_log_check(emlxs_port_t *port, emlxs_msg_t *msg) in emlxs_msg_log_check() argument 275 switch (msg->level) { in emlxs_msg_log_check() 277 if (msg->mask & emlxs_log_debugs) { in emlxs_msg_log_check() [all …]
|
/illumos-gate/usr/src/cmd/make/lib/makestate/ |
H A D | lock.c | 84 static char msg[MAXPATHLEN]; in file_lock() local 95 file_lock_error(msg, name, in file_lock() 97 return (msg); in file_lock() 124 file_lock_error(msg, name, in file_lock() 126 return (msg); in file_lock() 129 file_lock_error(msg, name, in file_lock() 131 return (msg); in file_lock() 151 file_lock_error(char * msg, char * file, const char * str, char * arg1, in file_lock_error() argument 156 (void) sprintf(msg, "Could not lock file `%s'; ", file); in file_lock_error() 157 len = strlen(msg); in file_lock_error() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | msgq.c | 65 msg_text_t *msg; in queue_msg_set() local 67 msg = (msg_text_t *)calloc(1, sizeof (msg_text_t)); in queue_msg_set() 69 if (!msg) { in queue_msg_set() 73 msg->id = id; in queue_msg_set() 74 msg->data = data; in queue_msg_set() 80 q->q_head = msg; in queue_msg_set() 81 q->q_tail = msg; in queue_msg_set() 84 q->q_tail->next = msg; in queue_msg_set() 85 msg->prev = q->q_tail; in queue_msg_set() 86 q->q_tail = msg; in queue_msg_set() [all …]
|