/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_ev.c | 74 _sfxge_ev_qctor(sfxge_t *sp, sfxge_evq_t *sep, int kmflags, uint16_t evq_size) in _sfxge_ev_qctor() argument 76 efsys_mem_t *esmp = &(sep->se_mem); in _sfxge_ev_qctor() 81 EFX_STATIC_ASSERT(sizeof (sep->__se_u1.__se_s1) <= in _sfxge_ev_qctor() 82 sizeof (sep->__se_u1.__se_pad)); in _sfxge_ev_qctor() 83 EFX_STATIC_ASSERT(sizeof (sep->__se_u2.__se_s2) <= in _sfxge_ev_qctor() 84 sizeof (sep->__se_u2.__se_pad)); in _sfxge_ev_qctor() 85 EFX_STATIC_ASSERT(sizeof (sep->__se_u3.__se_s3) <= in _sfxge_ev_qctor() 86 sizeof (sep->__se_u3.__se_pad)); in _sfxge_ev_qctor() 88 bzero(sep, sizeof (sfxge_evq_t)); in _sfxge_ev_qctor() 90 sep->se_sp = sp; in _sfxge_ev_qctor() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_target.c | 759 mdb_tgt_sespec_prune_one(mdb_tgt_t *t, mdb_sespec_t *sep) in mdb_tgt_sespec_prune_one() argument 763 for (vep = mdb_list_next(&sep->se_velist); vep; vep = nvep) { in mdb_tgt_sespec_prune_one() 781 mdb_sespec_t *sep, *nsep; in mdb_tgt_sespec_prune_all() local 783 for (sep = mdb_list_next(&t->t_active); sep != NULL; sep = nsep) { in mdb_tgt_sespec_prune_all() 784 nsep = mdb_list_next(sep); in mdb_tgt_sespec_prune_all() 785 mdb_tgt_sespec_prune_one(t, sep); in mdb_tgt_sespec_prune_all() 794 mdb_tgt_sespec_idle_one(mdb_tgt_t *t, mdb_sespec_t *sep, int reason) in mdb_tgt_sespec_idle_one() argument 796 ASSERT(sep->se_state != MDB_TGT_SPEC_IDLE); in mdb_tgt_sespec_idle_one() 798 if (sep->se_state == MDB_TGT_SPEC_ARMED) in mdb_tgt_sespec_idle_one() 799 (void) sep->se_ops->se_disarm(t, sep); in mdb_tgt_sespec_idle_one() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | buffer_list.c | 105 struct sharepnt_ent *se_tail = NULL, *sep; in buildbuffer_list() local 134 if (sep = findsharepnt(bep->be_sharepnt, in buildbuffer_list() 140 sep->se_state = lep->le_state; in buildbuffer_list() 145 sep = (struct sharepnt_ent *) in buildbuffer_list() 146 malloc(sizeof (*sep)); in buildbuffer_list() 147 if (sep == NULL) { in buildbuffer_list() 151 (void) memset(sep, 0, sizeof (*sep)); in buildbuffer_list() 153 sep->se_name = strdup(lep->le_path); in buildbuffer_list() 154 if (sep->se_name == NULL) { in buildbuffer_list() 158 sep->se_state = lep->le_state; in buildbuffer_list() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_serd.c | 166 fmd_serd_eng_discard(fmd_serd_eng_t *sgp, fmd_serd_elem_t *sep) in fmd_serd_eng_discard() argument 168 fmd_list_delete(&sgp->sg_list, sep); in fmd_serd_eng_discard() 171 fmd_event_rele(sep->se_event); in fmd_serd_eng_discard() 172 fmd_free(sep, sizeof (fmd_serd_elem_t)); in fmd_serd_eng_discard() 178 fmd_serd_elem_t *sep; in fmd_serd_eng_contains() local 180 for (sep = fmd_list_next(&sgp->sg_list); in fmd_serd_eng_contains() 181 sep != NULL; sep = fmd_list_next(sep)) { in fmd_serd_eng_contains() 182 if (fmd_event_equal(sep->se_event, ep)) in fmd_serd_eng_contains() 193 fmd_serd_elem_t *sep, *oep; in fmd_serd_eng_record() local 210 sep = fmd_alloc(sizeof (fmd_serd_elem_t), FMD_SLEEP); in fmd_serd_eng_record() [all …]
|
/illumos-gate/usr/src/cmd/lockstat/ |
H A D | sym.c | 67 syment_t *sep; in add_symbol() local 71 symbol_table = realloc(symbol_table, maxsyms * sizeof (*sep)); in add_symbol() 77 sep = &symbol_table[nsyms++]; in add_symbol() 79 sep->name = name; in add_symbol() 80 sep->addr = addr; in add_symbol() 81 sep->size = size; in add_symbol() 88 syment_t *sep = symbol_table; in remove_symbol() local 90 for (i = 0; i < nsyms; i++, sep++) in remove_symbol() 91 if (sep->addr == addr) in remove_symbol() 92 sep->addr = 0; in remove_symbol() [all …]
|
/illumos-gate/usr/src/cmd/syseventadm/ |
H A D | syseventadm.c | 521 serecord_t *sep; in list_file() local 534 sep = parse_line(line); in list_file() 535 if (sep != NULL) { in list_file() 536 if (matches_serecord(sep)) { in list_file() 537 print_serecord(stdout, sep); in list_file() 540 free_serecord(sep); in list_file() 557 serecord_t *sep; in remove_file() local 603 sep = parse_line(line); in remove_file() 604 if (sep == NULL) { in remove_file() 607 if (!matches_serecord(sep)) { in remove_file() [all …]
|
/illumos-gate/usr/src/cmd/syseventd/modules/sysevent_conf_mod/ |
H A D | sysevent_conf_mod.c | 504 syseventtab_t *sep; in parse_conf_file() local 623 if ((sep = sc_malloc(sizeof (syseventtab_t))) == NULL) in parse_conf_file() 626 sep->se_conf_file = conf_file; in parse_conf_file() 627 sep->se_lineno = lineno; in parse_conf_file() 628 sep->se_vendor = sc_strdup(vendor); in parse_conf_file() 629 sep->se_publisher = sc_strdup(publisher); in parse_conf_file() 630 sep->se_class = sc_strdup(class); in parse_conf_file() 631 sep->se_subclass = sc_strdup(subclass); in parse_conf_file() 632 sep->se_user = sc_strdup(user); in parse_conf_file() 634 sep->se_uid = pwdp->pw_uid; in parse_conf_file() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | getlist.c | 70 *sep, local 92 if (!(sep = Malloc(len))) { 97 sep = buf; 98 strcpy (sep, hardsep); 99 strcat (sep, ws); 134 if (strchr(sep, c)) { 167 if (strchr(sep, c)) { 170 list[n++] = unq_strdup(copy, sep); 185 list[n++] = unq_strdup(copy, sep); 189 Done: if (sep != buf) [all …]
|
H A D | printlist.c | 57 printlist_setup(char *prefix, char *suffix, char *sep, char *newline) in printlist_setup() argument 63 if (sep) in printlist_setup() 64 print_sep = sep; in printlist_setup() 93 register char *sep; in fdprintlist() local 96 for (sep = ""; *list; *list++, sep = print_sep) { in fdprintlist() 98 (void)fdprintf (fd, "%s%s", sep, NB(print_prefix)); in fdprintlist() 116 q_print(int fd, char *str, char *sep) in q_print() argument 119 if (strchr(sep, *str)) in q_print()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | findstack.c | 213 stacks_hash_entry(stacks_entry_t *sep) in stacks_hash_entry() argument 215 size_t depth = sep->se_depth; in stacks_hash_entry() 216 uintptr_t *stack = sep->se_stack; in stacks_hash_entry() 389 stacks_entry_t **sepp, *nsep, *sep; in stacks_thread_cb() local 417 (sep = *sepp) != NULL; in stacks_thread_cb() 418 sepp = &sep->se_next) { in stacks_thread_cb() 420 if (stacks_entry_comp_impl(sep, nsep, 0) != 0) in stacks_thread_cb() 423 nsep->se_dup = sep->se_dup; in stacks_thread_cb() 424 sep->se_dup = nsep; in stacks_thread_cb() 425 sep->se_count++; in stacks_thread_cb() [all …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | refer6.c | 17 #define ifnl (macro? sep : ' ') 36 fprintf(fo, ".]-%c", sep); in putref() 43 fprintf(fo, "..%c", sep); in putref() 68 fprintf(fo, "%s%c", tx, sep); in putref() 71 lastype, tx, sep); in putref() 90 cch, sep, tx, sep); in putref() 93 cch, tx, sep); in putref() 103 fprintf(fo, "%s%c", tx, sep); in putref() 109 cch, sep, tx, sep); in putref() 112 cch, tx, sep); in putref() [all …]
|
/illumos-gate/usr/src/ucbcmd/groups/ |
H A D | groups.c | 36 char *sep = ""; in main() local 58 (void) printf("%s%u", sep, groups[i]); in main() 59 sep = " "; in main() 62 (void) printf("%s%s", sep, gr->gr_name); in main() 63 sep = " "; in main() 76 char *sep = ""; in showgroups() local 91 (void) printf("%s%s", sep, gr->gr_name); in showgroups() 92 sep = " "; in showgroups() 99 (void) printf("%s%s", sep, gr->gr_name); in showgroups() 100 sep = " "; in showgroups()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | options.c | 230 struct service_entry *sep; in close_service() local 242 sep = &slp->sl_entry; in close_service() 248 if (sep->se_flags & SEF_CFLIST) { in close_service() 249 sep->se_flist = fep = NULL; in close_service() 251 for (fep = sep->se_flist; fep != NULL; fep = fep->fe_prev) in close_service() 270 sep->se_flist = fep = in close_service() 272 sep->se_flags |= SEF_CFLIST; in close_service() 290 sep->se_flags |= SEF_CDEV; in close_service() 294 sep->se_flist = fep = sedefp->se_flist; in close_service() 295 sep->se_flags |= SEF_CFLIST; in close_service() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_ctldir.c | 524 zfsctl_unmount_snap(zfs_snapentry_t *sep, int fflags, cred_t *cr) in zfsctl_unmount_snap() argument 526 vnode_t *svp = sep->se_root; in zfsctl_unmount_snap() 550 kmem_free(sep->se_name, strlen(sep->se_name) + 1); in zfsctl_unmount_snap() 551 kmem_free(sep, sizeof (zfs_snapentry_t)); in zfsctl_unmount_snap() 557 zfsctl_rename_snap(zfsctl_snapdir_t *sdp, zfs_snapentry_t *sep, const char *nm) in zfsctl_rename_snap() argument 566 ASSERT(sep != NULL); in zfsctl_rename_snap() 568 vfsp = vn_mountedvfs(sep->se_root); in zfsctl_rename_snap() 576 avl_remove(&sdp->sd_snaps, sep); in zfsctl_rename_snap() 577 kmem_free(sep->se_name, strlen(sep->se_name) + 1); in zfsctl_rename_snap() 578 sep->se_name = kmem_alloc(strlen(nm) + 1, KM_SLEEP); in zfsctl_rename_snap() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | pppragma.c | 33 register int sep = 0; in pppragma() local 39 sep = 1; in pppragma() 43 if (sep) in pppragma() 45 sep = 0; in pppragma() 52 if (sep) in pppragma() 55 sep = 1; in pppragma() 60 if (sep || pass) in pppragma()
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_mbox.c | 126 sbd_error_t *sep = hp->h_err; in sbdp_get_board_status() local 137 sbdp_set_err(sep, ESBD_INVAL_OPT, hp->h_opts->copts); in sbdp_get_board_status() 176 sbdp_set_err(sep, ESGT_GET_BOARD_STAT, NULL); in sbdp_get_board_status() 187 sbdp_set_err(sep, ESGT_GET_BOARD_STAT, in sbdp_get_board_status() 256 sbd_error_t *sep; in sbdp_assign_board() local 262 sep = hp->h_err; in sbdp_assign_board() 267 sbdp_set_err(sep, ESBD_INVAL_OPT, hp->h_opts->copts); in sbdp_assign_board() 286 sbdp_set_err(sep, sbdp_sc_err_translation(resp->msg_status), in sbdp_assign_board() 307 sbd_error_t *sep; in sbdp_unassign_board() local 313 sep = hp->h_err; in sbdp_unassign_board() [all …]
|
H A D | sbdp_quiesce.c | 242 sbd_error_t *sep; member 254 ASSERT(sbrp->sep != NULL); in sbdp_check_dip() 264 (void) ddi_pathname(dip, sbdp_get_err_buf(sbrp->sep)); in sbdp_check_dip() 265 sbdp_set_err(sbrp->sep, ESBD_BUSY, NULL); in sbdp_check_dip() 281 (void) ddi_pathname(dip, sbdp_get_err_buf(sbrp->sep)); in sbdp_check_dip() 288 sbdp_set_err(sbrp->sep, ESBD_BUSY, NULL); in sbdp_check_dip() 295 sbdp_check_devices(dev_info_t *dip, int *refcount, sbd_error_t *sep, in sbdp_check_devices() argument 302 sbr.sep = sep; in sbdp_check_devices() 358 (void) sprintf(sbdp_get_err_buf(&srh->sep), in sbdp_suspend_devices_() 361 sbdp_set_err(&srh->sep, ESGT_SUSPEND, NULL); in sbdp_suspend_devices_() [all …]
|
/illumos-gate/usr/src/cmd/nl/ |
H A D | nl.c | 106 char sep[EXPSIZ]; in main() local 121 sep[0] = '\t'; in main() 122 sep[1] = '\0'; in main() 273 (void) strcpy(sep, optarg); in main() 481 sep[r] = s[q]; in main() 485 sep[r] = '\0'; in main() 583 npad(width, sep); in main() 593 pnum(cnt, sep); in main() 596 npad(width, sep); in main() 604 pnum(cnt, sep); in main() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | uniq.c | 90 int reclen,oreclen= -1,count=0,cwidth=0,sep,next; in uniq() local 219 sep = 0; in uniq() 222 sep = all && *all > 0; in uniq() 227 if(outsize < n+cwidth+sep) in uniq() 231 if(!(sbufp = outp=fmtbuf(outsize=n+cwidth+sep))) in uniq() 235 outsize = n+cwidth+sep; in uniq() 236 memcpy(outp+cwidth+sep,bufp,n); in uniq() 237 if(sep) in uniq() 240 orecp = outp+cwidth+sep + (cp-bufp); in uniq() 253 int sep; in b_uniq() local [all …]
|
/illumos-gate/usr/src/boot/libsa/string/ |
H A D | strtok.c | 113 char *brkb, *brkt, *phrase, *sep, *word; in main() local 115 sep = "\\/:;=-"; in main() 120 for (word = strtok(test, sep); word; word = strtok(NULL, sep)) in main() 124 for (word = strtok_r(test, sep, &brkt); word; in main() 125 word = strtok_r(NULL, sep, &brkt)) { in main() 128 for (phrase = strtok_r(blah, sep, &brkb); phrase; in main() 129 phrase = strtok_r(NULL, sep, &brkb)) in main()
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_kvm.c | 1403 mdb_sespec_t *sep, *nsep; in kmt_defbp_event() local 1416 for (sep = mdb_list_next(&t->t_active); sep; sep = nsep) { in kmt_defbp_event() 1417 nsep = mdb_list_next(sep); in kmt_defbp_event() 1419 if (sep->se_ops == &kmt_brkpt_ops) { in kmt_defbp_event() 1420 kmt_brkpt_t *kb = sep->se_data; in kmt_defbp_event() 1426 mdb_tgt_sespec_idle_one(t, sep, in kmt_defbp_event() 1646 kmt_brkpt_ctor(mdb_tgt_t *t, mdb_sespec_t *sep, void *args) in kmt_brkpt_ctor() argument 1684 sep->se_data = kb; in kmt_brkpt_ctor() 1691 kmt_brkpt_dtor(mdb_tgt_t *t, mdb_sespec_t *sep) in kmt_brkpt_dtor() argument 1693 mdb_free(sep->se_data, sizeof (kmt_brkpt_t)); in kmt_brkpt_dtor() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/features/ |
H A D | math.sh | 210 sep= 219 code="$code${sep}$T a$p" 220 ta="$ta${sep}a$p" 221 tc="$tc${sep}0" 226 sep="," 250 sep= 253 2:ldexp*) code="$code${sep}int" ;; 254 *) code="$code${sep}$t" ;; 259 sep="," 269 sep= [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | privs.awk | 261 sep = "\t\"" 265 sep = "\\0\"\n\t\"" 268 printf sep sets[i] > cfile 269 len += length(sets[i]) + length(sep); 270 sep = "\\0" 279 sep = "\t\"" 283 sep = "\\0\"\n\t\"" 286 printf sep privs[i] > cfile 287 len += length(privs[i]) + length(sep); 288 sep = "\\0"
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-transport/ |
H A D | disk_transport.c | 310 const char *sep; in _fmd_init() local 313 for (sep = simulate; *sep != '\0'; sep++) { in _fmd_init() 314 if (isspace(*sep)) in _fmd_init() 318 if (*sep != '\0') { in _fmd_init() 319 len = sep - simulate; in _fmd_init() 327 for (; *sep != '\0'; sep++) { in _fmd_init() 328 if (!isspace(*sep)) in _fmd_init() 332 if (*sep != '\0') { in _fmd_init() 333 dmp->dm_sim_file = fmd_hdl_strdup(hdl, sep, FMD_SLEEP); in _fmd_init()
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | getauthattr.c | 65 char *sep = KV_TOKEN_DELIMIT; in str2authattr() local 85 auth->name = _strtok_escape(buffer, sep, &last); in str2authattr() 86 auth->res1 = _strtok_escape(NULL, sep, &last); in str2authattr() 87 auth->res2 = _strtok_escape(NULL, sep, &last); in str2authattr() 88 auth->short_desc = _strtok_escape(NULL, sep, &last); in str2authattr() 89 auth->long_desc = _strtok_escape(NULL, sep, &last); in str2authattr() 90 auth->attr = _strtok_escape(NULL, sep, &last); in str2authattr()
|