/illumos-gate/usr/src/cmd/dumpadm/ |
H A D | utils.c | 114 char *q; in valid_str2int() local 117 i = (int)strtol(p, &q, 10); in valid_str2int() 119 if (errno != 0 || q == p || i < 0 || (*q != '\0' && *q != '\n')) in valid_str2int() 130 char *q; in valid_str2ull() local 133 ll = strtoll(p, &q, 10); in valid_str2ull() 135 if (errno != 0 || q == p || ll < 0LL || (*q != '\0' && *q != '\n')) in valid_str2ull()
|
/illumos-gate/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp.c | 189 q->q_ptr = WR(q)->q_ptr = (caddr_t)sps; in sppp_open() 333 ASSERT(q != NULL && q->q_ptr != NULL); in sppp_close() 452 q->q_ptr = WR(q)->q_ptr = NULL; in sppp_close() 710 ASSERT(q != NULL && q->q_ptr != NULL); in sppp_uwput() 865 ASSERT(q != NULL && q->q_ptr != NULL); in sppp_uwsrv() 991 ASSERT(q != NULL && q->q_ptr != NULL); in sppp_inner_ioctl() 1548 ASSERT(q != NULL && q->q_ptr != NULL); in sppp_send() 1666 ASSERT(q != NULL && q->q_ptr != NULL); in sppp_outpkt() 1771 ASSERT(q != NULL && q->q_ptr != NULL); in sppp_lwsrv() 2000 ASSERT(q != NULL && q->q_ptr != NULL); in sppp_recv() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | llc1.c | 349 ASSERT(q); in llc1_open() 354 if (q->q_ptr) in llc1_open() 386 WR(q)->q_ptr = q->q_ptr = (caddr_t)llc1; in llc1_open() 412 ASSERT(q); in llc1_close() 413 ASSERT(q->q_ptr); in llc1_close() 415 qprocsoff(q); in llc1_close() 419 q->q_ptr = WR(q)->q_ptr = NULL; in llc1_close() 489 flushq(q, 0); in llc1_uwput() 494 qreply(q, mp); in llc1_uwput() 1298 qreply(q, nmp); in llc1_inforeq() [all …]
|
H A D | gld.c | 1473 WR(q)->q_ptr = q->q_ptr = (caddr_t)gld; in gld_open() 1535 WR(q)->q_ptr = q->q_ptr = (caddr_t)gld; in gld_open() 1571 ASSERT(q); in gld_close() 1600 qprocsoff(q); in gld_close() 1622 q->q_ptr = WR(q)->q_ptr = NULL; in gld_close() 1740 qenable(q); in gld_wput() 1746 qenable(q); in gld_wput() 1752 qenable(q); in gld_wput() 1757 qenable(q); in gld_wput() 1776 qenable(q); in gld_wput() [all …]
|
H A D | ttcompat.c | 186 q->q_ptr = tp; in ttcompatopen() 188 qprocson(q); in ttcompatopen() 201 qprocsoff(q); in ttcompatclose() 209 q->q_ptr = NULL; in ttcompatclose() 234 putnext(q, mp); in ttcompatrput() 260 putnext(q, mp); in ttcompatwput() 314 qreply(q, mp); in ttcompatwput() 633 qreply(q, mp); in ttcompat_do_ioctl() 640 qreply(q, mp); in ttcompat_do_ioctl() 649 qreply(q, mp); in ttcompat_do_ioctl() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/clients/hid/ |
H A D | hid.c | 1038 qprocson(q); in hid_open() 1077 qprocson(q); in hid_open() 1098 qprocsoff(q); in hid_open() 1181 wq = WR(q); in hid_close() 1191 qprocsoff(q); in hid_close() 1569 queue_t *q; in hid_interrupt_pipe_callback() local 2926 queue_t *q; in hid_save_device_state() local 2998 queue_t *q; in hid_restore_device_state() local 3210 if ((q != NULL) && (q->q_next != NULL)) { in hid_flush() 3281 queue_t *q; in hid_pwrlvl0() local [all …]
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_dummy.c | 42 static int dummy_modopen(queue_t *q, dev_t *devp, int flag, 70 dummy_wput(queue_t *q, mblk_t *m) in dummy_wput() argument 72 putnext(q, m); in dummy_wput() 77 dummy_modclose(queue_t *q, int flags __unused, cred_t *credp __unused) in dummy_modclose() argument 79 qprocsoff(q); in dummy_modclose() 85 dummy_modopen(queue_t *q, dev_t *devp, int flag, int sflag, cred_t *credp) in dummy_modopen() argument 88 if (q->q_ptr != NULL) in dummy_modopen() 95 qprocson(q); in dummy_modopen()
|
H A D | spdsock.c | 210 queue_t *q, in spdsock_param_get() argument 232 queue_t *q, in spdsock_param_set() argument 554 qreply(q, mp); in spdsock_error() 566 qreply(q, mp); in spd_echo() 2105 qreply(q, mr); in spdsock_dump() 2383 qreply(q, m); in spdsock_alglist() 2540 qreply(q, m); in spdsock_dumpalgs() 3243 qreply(q, mp); in spdsock_capability_req() 3254 queue_t *q, in spdsock_info_req() argument 3571 qprocson(q); in spdsock_open() [all …]
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | xgettext.c | 471 *q++ = 0; in extract_filename_linenumber() 473 q++; in extract_filename_linenumber() 1602 q = NULL; in add_str_to_element_list() 1615 q = p; in add_str_to_element_list() 1857 q = l1; in append_list() 1863 q = q->next; in append_list() 2089 q = p->next; in output_msgid() 2095 q = q->next; in output_msgid() 2136 q = q->next; in output_msgid() 2267 if ((q->msgid != NULL) && (q->msgid->str != NULL)) { in print_element_list() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | exit.c | 471 proc_t *q; in proc_exit() local 775 q = q->p_nextorph; in proc_exit() 802 delete_ns(q->p_parent, q); in proc_exit() 804 q->p_ppid = 1; in proc_exit() 1308 proc_t *q; in proc_detach() local 1326 ASSERT(q->p_child ? 1 : q->p_child_ns == NULL); in proc_detach() 1344 proc_t *q; in freeproc() local 1422 if (q && q->p_orphan == p) in freeproc() 1424 else if (q) { in freeproc() 1425 for (q = q->p_orphan; q; q = q->p_nextorph) in freeproc() [all …]
|
H A D | strsubr.c | 1680 q = q->q_next; in getendq() 3667 (*q->q_qinfo->qi_srvp)(q); in runservice() 5214 q = q->q_next; in sqlist_insertall() 5216 q = _RD(q); in sqlist_insertall() 5292 q = _RD(q); in strblock() 5318 q = _RD(q); in strunblock() 7090 q = q->q_sqnext; in flush_syncq() 7546 q = _OTHERQ(q); in set_qend() 7594 q = q->q_nfsrv; in clr_qfull() 7611 if (q->q_mblkcnt == 0 || ((q->q_count < q->q_hiwat) && in clr_qfull() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | snmpcom.c | 183 optcom_err_ack(q, mp, TSYSERR, EBADMSG); in snmpcom_req() 208 optcom_err_ack(q, mp, TACCES, 0); in snmpcom_req() 226 if (!(*setfn)(q, req->level, req->name, in snmpcom_req() 230 if (q->q_next != NULL) in snmpcom_req() 231 putnext(q, mp); in snmpcom_req() 240 optcom_err_ack(q, mp, TSYSERR, ENOMEM); in snmpcom_req() 274 if (q->q_next != NULL) { in snmpcom_req() 275 putnext(q, mp); in snmpcom_req() 298 qreply(q, mpctl); in snmpcom_req() 302 optcom_err_ack(q, mp, TBADFLAG, 0); in snmpcom_req() [all …]
|
/illumos-gate/usr/src/uts/common/sys/1394/targets/av1394/ |
H A D | av1394_impl.h | 90 #define AV1394_ENTERQ(q) mutex_enter(&(q)->q_mutex) argument 91 #define AV1394_LEAVEQ(q) mutex_exit(&(q)->q_mutex) argument 311 void av1394_destroyq(av1394_queue_t *q); 312 void av1394_setmaxq(av1394_queue_t *q, int max); 313 int av1394_getmaxq(av1394_queue_t *q); 314 void av1394_flushq(av1394_queue_t *q); 315 int av1394_putq(av1394_queue_t *q, mblk_t *bp); 317 mblk_t *av1394_getq(av1394_queue_t *q); 318 mblk_t *av1394_peekq(av1394_queue_t *q); 319 mblk_t *av1394_peekq_locked(av1394_queue_t *q); [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/mpt_sas/ |
H A D | mpt_sas.c | 500 for (q = mp->m_waitq, wq = 0; q; q = c.cmd_linkp, wq++) in display_slotinfo() 507 for (q = mp->m_doneq, dq = 0; q; q = c.cmd_linkp, dq++) in display_slotinfo() 566 for (q = mp->m_waitq; q; q = c.cmd_linkp) { in display_slotinfo() 567 if (q == mp->m_waitq) in display_slotinfo() 583 for (q = mp->m_doneq; q; q = c.cmd_linkp) { in display_slotinfo() 584 if (q == mp->m_doneq) in display_slotinfo() 614 for (q = mp->m_waitq; q; q = c.cmd_linkp) { in display_slotinfo() 616 if (s->m_slot[i] == q) in display_slotinfo() 619 q, i); in display_slotinfo() 628 for (q = mp->m_doneq; q; q = c.cmd_linkp) { in display_slotinfo() [all …]
|
/illumos-gate/usr/src/cmd/vgrind/ |
H A D | vgrindefs.c | 110 char *p, *q; in tnchktc() local 128 q = tcname; in tnchktc() 129 while (q && *q != ':') in tnchktc() 130 q++; in tnchktc() 131 *q = 0; in tnchktc() 139 for (q=tcbuf; *q != ':'; q++) in tnchktc() 141 l = p - holdtbuf + strlen(q); in tnchktc() 145 q[BUFSIZ - (p-tbuf)] = 0; in tnchktc() 147 strcpy(p, q+1); in tnchktc()
|
/illumos-gate/usr/src/uts/common/io/usb/clients/audio/usb_ah/ |
H A D | usb_ah.c | 208 if (q->q_ptr) { in usb_ah_open() 240 qprocson(q); in usb_ah_open() 248 qprocsoff(q); in usb_ah_open() 266 qprocsoff(q); in usb_ah_open() 292 qprocsoff(q); in usb_ah_open() 302 qprocsoff(q); in usb_ah_open() 340 qprocsoff(q); in usb_ah_close() 341 q->q_ptr = NULL; in usb_ah_close() 353 putnext(q, mp); in usb_ah_wput() 414 putnext(q, mp); in usb_ah_rput() [all …]
|
/illumos-gate/usr/src/uts/common/io/ppp/sppptun/ |
H A D | sppptun.c | 463 q->q_ptr = WR(q)->q_ptr = tll; in sppptun_open() 477 qprocson(q); in sppptun_open() 478 for (q = WR(q); q->q_next != NULL; q = q->q_next) in sppptun_open() 481 if (q->q_qinfo != NULL && q->q_qinfo->qi_minfo != NULL) in sppptun_open() 520 q->q_ptr = WR(q)->q_ptr = (caddr_t)tcl; in sppptun_open() 527 qprocson(q); in sppptun_open() 661 qprocsoff(q); in sppptun_close() 662 q->q_ptr = WR(q)->q_ptr = NULL; in sppptun_close() 675 qprocsoff(q); in sppptun_close() 678 q->q_ptr = WR(q)->q_ptr = NULL; in sppptun_close() [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/tput/ |
H A D | tput.c | 249 long q[9]; local 269 q[i] = strtol(*++_argv, &end_num, 0); 274 q[i] = (long) *_argv; 277 q[i] = 0L; 280 (void) putp(tparm(p, q[0], q[1], q[2], q[3], 281 q[4], q[5], q[6], q[7], q[8]
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | trace.c | 595 char *p, *q; in de_const() local 601 if (q > p) { in de_const() 645 *q++ = *p; in to_basetype() 650 *q++ = *p; in to_basetype() 653 *q = '\0'; in to_basetype() 656 q--; in to_basetype() 658 *q-- = '\0'; in to_basetype() 698 saved = *q; in strpqcpy() 699 *q = '\0'; in strpqcpy() 701 *q = saved; in strpqcpy() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | strcspn.c | 41 const char *p, *q; in strcspn() local 43 for (q = string; *q != '\0'; ++q) { in strcspn() 44 for (p = charset; *p != '\0' && *p != *q; ++p) in strcspn() 49 return (q - string); in strcspn()
|
H A D | strspn.c | 41 const char *p, *q; in strspn() local 43 for (q = string; *q != '\0'; ++q) { in strspn() 44 for (p = charset; *p != '\0' && *p != *q; ++p) in strspn() 49 return (q - string); in strspn()
|
/illumos-gate/usr/src/common/fs/ |
H A D | bootfsops.c | 69 char *q, *s; in canonicalise() local 87 for (q = scratch; *p != '\0'; p++) { in canonicalise() 89 *q++ = '/'; in canonicalise() 92 *q++ = *p; in canonicalise() 96 *q = '\0'; in canonicalise() 110 for (oc = q; oc > out && *oc != '/'; oc--) in canonicalise() 112 q = oc; in canonicalise() 115 if (q > out) in canonicalise() 116 *q++ = '/'; in canonicalise() 117 q += snprintf(q, MAXPATHLEN - (q - out), "%s", last); in canonicalise() [all …]
|
/illumos-gate/usr/src/uts/common/io/ppp/spppasyn/ |
H A D | spppasyn.c | 416 qprocson(q); in spppasyn_open() 437 qprocsoff(q); in spppasyn_close() 455 q->q_ptr = NULL; in spppasyn_close() 675 putnext(q, mp); in spppasyn_inner_ioctl() 757 putnext(q, mp); in spppasyn_inner_mctl() 796 putnext(q, mp); in spppasyn_wput() 907 putnext(q, mp); in spppasyn_wput() 950 putnext(q, mp); in spppasyn_rput() 965 putnext(q, mp); in spppasyn_rput() 1880 state->sa_timeout_id = qtimeout(q, spppasyn_timer, q, in spppasyn_muxencode() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | envelope.c | 189 register ADDRESS *q; local 252 for (q = e->e_sendqueue; q != NULL; q = q->q_next) 330 for (q = e->e_sendqueue; q != NULL; q = q->q_next) 336 q->q_status = "5.4.7"; 338 q->q_status = "4.4.7"; 364 for (q = e->e_sendqueue; q != NULL; 365 q = q->q_next) 377 q->q_flags) || 379 q->q_flags)) 386 q->q_flags)) [all …]
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_targets.c | 559 *q++ = '('; *q++ = '&'; in format_query() 561 *q++ = '('; *q++ = '|'; in format_query() 565 *q++ = '('; in format_query() 568 *q++ = '='; in format_query() 579 *q++ = ')'; in format_query() 585 *q++ = '('; in format_query() 588 *q++ = '='; in format_query() 589 *q++ = '2'; in format_query() 590 *q++ = ')'; in format_query() 591 *q++ = ')'; in format_query() [all …]
|