/illumos-gate/usr/src/uts/common/os/ |
H A D | pid.c | 693 struct upcount *new; in upcount_inc() local 696 new = NULL; in upcount_inc() 703 if (new) { in upcount_inc() 707 kmem_free(new, sizeof (*new)); in upcount_inc() 719 if (new == NULL) { in upcount_inc() 720 new = (struct upcount *)kmem_alloc(sizeof (*new), KM_NOSLEEP); in upcount_inc() 721 if (new == NULL) { in upcount_inc() 723 new = (struct upcount *)kmem_alloc(sizeof (*new), in upcount_inc() 737 new->up_uid = uid; in upcount_inc() 739 new->up_count = 1; in upcount_inc() [all …]
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2map/ |
H A D | bucket.c | 104 bucket_t *new, *child; in add_parent() local 112 new = new_bucket(version, weak); in add_parent() 114 new->b_weak = weak; in add_parent() 120 (void) add_to_hashmap(version, new); in add_parent() 121 start_new_list(new); in add_parent() 134 (void) add_to_hashmap(version, new); in add_parent() 135 child->b_parent = new; in add_parent() 147 bucket_t *new, *child; in add_uncle() local 156 new = new_bucket(version, weak); in add_uncle() 164 start_new_list(new); in add_uncle() [all …]
|
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/ |
H A D | revnetgroup.c | 209 groupentrylist new; in newentry() local 211 new = MALLOC(groupentrynode); in newentry() 213 STRCPY(new->name, name); in newentry() 215 new->groups = MALLOC(stringnode); in newentry() 216 new->groups->str = group; in newentry() 217 new->groups->next = NULL; in newentry() 219 new->next = NULL; in newentry() 220 return (new); in newentry()
|
/illumos-gate/usr/src/common/atomic/i386/ |
H A D | atomic.S | 81 incb %al / return new value 93 incw %ax / return new value 106 incl %eax / return new value 135 movl %ecx, %edx / return new value 178 decb %al / return new value 190 decw %ax / return new value 203 decl %eax / return new value 413 orb %al, %cl / %cl = new value 428 orw %ax, %cx / %cx = new value 489 andb %al, %cl / %cl = new value [all …]
|
/illumos-gate/usr/src/cmd/stat/common/ |
H A D | statcommon.h | 252 uint64_t kstat_delta(kstat_t *old, kstat_t *new, char *name); 255 uint64_t hrtime_delta(hrtime_t old, hrtime_t new); 271 uint64_t cpu_ticks_delta(kstat_t *old, kstat_t *new); 288 typedef void (*snapshot_cb)(void *old, void *new, void *data); 299 struct snapshot *new, snapshot_cb cb, void *data); 305 void snapshot_report_changes(struct snapshot *old, struct snapshot *new); 308 int snapshot_has_changed(struct snapshot *old, struct snapshot *new);
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/ |
H A D | zpool_import_rename_001_pos.ksh | 69 [[ -d /${pools[i]}-new ]] && \ 70 log_must rm -rf /${pools[i]}-new 130 $target ${pools[i]}-new 134 log_must ismounted ${pools[i]}-new/$TESTFS 149 [[ -d /${pools[i]}-new ]] && \ 150 log_must rm -rf /${pools[i]}-new 152 target=${pools[i]}-new
|
/illumos-gate/usr/src/cmd/logins/ |
H A D | logins.c | 291 new->membername = strdup(p); in addmember() 292 new->next = membershead; in addmember() 293 membershead = new; in addmember() 454 new->shell = "/sbin/sh"; in adddisp() 461 new->secgrplist = NULL; in adddisp() 462 new->passwdinfo = NULL; in adddisp() 463 new->groupname = NULL; in adddisp() 466 new->nextlogin = current; in adddisp() 467 prev->nextlogin = new; in adddisp() 484 new->nextuid = current; in adddisp() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/cmd/baddof/ |
H A D | baddof.c | 61 int new, rv; in corrupt() local 101 new = open("/devices/pseudo/dtrace@0:dtrace", O_RDWR); in corrupt() 103 if (new == -1) in corrupt() 106 if (new != fd) { in corrupt() 107 dup2(new, fd); in corrupt() 108 close(new); in corrupt()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_type_val.c | 129 struct smatch_state *old, *add, *new; in add_type_val() local 135 new = merge_estates(old, add); in add_type_val() 137 new = add; in add_type_val() 143 struct smatch_state *old, *add, *new; in add_fake_type_val() local 153 new = merge_estates(old, add); in add_fake_type_val() 155 new = add; in add_fake_type_val() 157 new->name = alloc_string("ignore"); in add_fake_type_val() 166 struct smatch_state *old, *add, *new; in add_global_type_val() local 172 new = merge_estates(old, add); in add_global_type_val() 174 new = add; in add_global_type_val() [all …]
|
H A D | smatch_constraints.c | 54 struct constraint *tmp, *new; in add_constraint() local 66 new->op = op; in add_constraint() 67 new->id = constraint; in add_constraint() 72 new = __alloc_constraint(0); in add_constraint() 73 new->op = op; in add_constraint() 74 new->id = constraint; in add_constraint() 75 INSERT_CURRENT(new, tmp); in add_constraint() 79 new = __alloc_constraint(0); in add_constraint() 80 new->op = op; in add_constraint() 81 new->id = constraint; in add_constraint() [all …]
|
H A D | flow.c | 31 struct basic_block *new) in rewrite_branch() argument 33 if (*ptr != old || new == old || !bb->ep) in rewrite_branch() 39 *ptr = new; in rewrite_branch() 40 replace_bb_in_list(&bb->children, old, new, 1); in rewrite_branch() 42 add_bb(&new->parents, bb); in rewrite_branch() 379 pseudo_t new, phi; in rewrite_load_instruction() local 385 new = first_pseudo(dominators)->def->phi_src; in rewrite_load_instruction() 387 if (new != phi->def->phi_src) in rewrite_load_instruction() 389 new->ident = new->ident ? : phi->ident; in rewrite_load_instruction() 397 convert_load_instruction(insn, new); in rewrite_load_instruction() [all …]
|
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | idmap_config.c | 959 *new = NULL; in update_string() 993 free(*new); in update_dirs() 994 *new = NULL; in update_dirs() 1002 *new = NULL; in update_dirs() 1041 free(*new); in update_trusted_domains() 1042 *new = NULL; in update_trusted_domains() 1050 *new = NULL; in update_trusted_domains() 1087 free(*new); in update_domains_in_forest() 1088 *new = NULL; in update_domains_in_forest() 1096 *new = NULL; in update_domains_in_forest() [all …]
|
/illumos-gate/usr/src/cmd/stat/vmstat/ |
H A D | vmstat.c | 55 static void dovmstats(struct snapshot *old, struct snapshot *new); 216 #define DELTA(v) (new->v - (old ? old->v : 0)) 227 struct iodev_snapshot *new = (struct iodev_snapshot *)v2; in show_disk() local 228 hrtime_t oldtime = new->is_crtime; in show_disk() 234 hr_etime = new->is_stats.wlastupdate - oldtime; in show_disk() 243 dovmstats(struct snapshot *old, struct snapshot *new) in dovmstats() argument 246 kstat_t *newsys = &new->s_sys.ss_agg_sys; in dovmstats() 248 kstat_t *newvm = &new->s_sys.ss_agg_vm; in dovmstats() 292 adjprintf(" %*ld", 3, pgtok(new->s_sys.ss_deficit)); in dovmstats() 338 adjprintf(" %*ld", 2, pgtok(new->s_sys.ss_deficit)); in dovmstats() [all …]
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | clnt_clts.c | 1511 return (new); in endpnt_get() 1545 return (new); in endpnt_get() 1556 if (new == NULL) { in endpnt_get() 1576 return (new); in endpnt_get() 1587 new->e_ref = 1; in endpnt_get() 1588 new->e_type = np; in endpnt_get() 1596 np->e_pcurr = new; in endpnt_get() 1701 return (new); in endpnt_get() 1704 ASSERT(new != NULL); in endpnt_get() 1718 new->e_ref--; in endpnt_get() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libldmake/common/ |
H A D | ld_file.c | 62 Stritem *new; in prepend_str() local 66 if (!(new = calloc(1, sizeof (Stritem)))) { in prepend_str() 76 new->str = strcpy(newstr, str); in prepend_str() 77 new->next = *list; in prepend_str() 78 *list = new; in prepend_str()
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | interface_cmp.pl | 466 my $new = $new_hash{$new_obj}; 475 if (!defined($new->{'VERSION_INFO'}{$name})) { 484 @{$new->{'VERSION_INFO'}{$name}}; 568 if (defined($new->{'VERSION_INFO'}{$iname1}) || 569 defined($new->{'VERSION_INFO'}{$iname2})) { 571 $new->{'VERSION_INFO'}{$iname1}[0] || 572 $new->{'VERSION_INFO'}{$iname2}[0]; 602 $num = scalar(@{$new->{'VERSION_NAMES'}}); 604 my $name = $new->{'VERSION_NAMES'}[$i]; 613 @{$new->{'VERSION_INFO'}{$name}};
|
/illumos-gate/usr/src/lib/nsswitch/ad/common/ |
H A D | ad_common.c | 76 adutils_ad_t *new; in nssad_cfg_reload_ad() local 85 if (adutils_add_ds(new, in nssad_cfg_reload_ad() 88 adutils_ad_free(&new); in nssad_cfg_reload_ad() 95 *ad = new; in nssad_cfg_reload_ad() 103 if (*value == *new) in update_dirs() 106 if (*value != NULL && *new != NULL && in update_dirs() 107 ad_disc_compare_ds(*value, *new) == 0) { in update_dirs() 108 free(*new); in update_dirs() 109 *new = NULL; in update_dirs() 115 *value = *new; in update_dirs() [all …]
|
/illumos-gate/usr/src/cmd/users/ |
H A D | users.c | 415 struct grpmember *new; /* Member being added */ in addmember() local 417 new = (struct grpmember *)allocblk(sizeof (struct grpmember)); in addmember() 419 new->next = membershead; in addmember() 420 membershead = new; in addmember() 535 struct display *new; /* Display item being added */ in adddisp() local 561 new = (struct display *)allocblk(sizeof (struct display)); in adddisp() 562 new->loginID = in adddisp() 566 new->freefield = in adddisp() 571 new->freefield = in adddisp() 575 new->next = current; in adddisp() [all …]
|
/illumos-gate/usr/src/cmd/make/lib/makestate/ |
H A D | ld_file.c | 62 Stritem *new; in prepend_str() local 65 if (!(new = calloc(1, sizeof (Stritem)))) { in prepend_str() 75 new->str = strcpy(newstr, str); in prepend_str() 76 new->next = *list; in prepend_str() 77 *list = new; in prepend_str()
|
/illumos-gate/usr/src/cmd/filesync/ |
H A D | base.c | 189 fp = new->f_next; in add_file_to_list() 192 pp = &new->f_next; in add_file_to_list() 199 new = fp; in add_file_to_list() 216 new = fp; in add_file_to_list() 231 new = (struct file *) malloc(sizeof (*new)); in add_file_to_list() 232 if (new == 0) in add_file_to_list() 238 new->f_flags = F_NEW; in add_file_to_list() 241 new->f_next = fp; in add_file_to_list() 242 *pp = new; in add_file_to_list() 245 last_file = new; in add_file_to_list() [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | dyn.msg | 68 a new element\n" 106 dyn:value will always create a new element for the new value,\n\ 253 \tapply to the new item that moves below it.\n\ 356 \twith the new value. If -and is specified, the new value is\n\ 364 of the section, a new one is inserted.\n" 380 \twith the new value. If -and is specified, the new value is\n\ 388 of the section, a new one is inserted.\n" 404 \twith the new value. If -and is specified, the new value is\n\ 412 of the section, a new one is inserted.\n" 422 of the section, a new one is inserted.\n" [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | server.c | 885 strcpy(new, tmpname); in recvf() 896 (void) snprintf(new, sizeof (new), "%s/%s", target, tmpname); in recvf() 926 (void) unlink(new); in recvf() 954 (void) unlink(new); in recvf() 972 (void) unlink(new); in recvf() 977 (void) unlink(new); in recvf() 989 (void) unlink(new); in recvf() 996 (void) unlink(new); in recvf() 1004 (void) unlink(new); in recvf() 1024 (void) unlink(new); in recvf() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | ldap_nisdbquery.c | 129 db_query *new; in cloneQuery() local 136 new = am(myself, sizeof (*new)); in cloneQuery() 137 if (new == 0) in cloneQuery() 147 free(new); in cloneQuery() 168 freeQuery(new); in cloneQuery() 179 return (new); in cloneQuery() 623 db_query **new; in filterQuery() local 633 new = am(myself, nq * sizeof (new[0])); in filterQuery() 639 sfree(new); in filterQuery() 660 new[nn] = q[i]; in filterQuery() [all …]
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_list.c | 34 inj_list_append(inj_list_t *mlp, void *new) in inj_list_append() argument 37 inj_list_t *q = new; /* q = new list element */ in inj_list_append() 53 inj_list_prepend(inj_list_t *mlp, void *new) in inj_list_prepend() argument 55 inj_list_t *p = new; /* p = new list element */ in inj_list_prepend()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | finger.c | 384 new = malloc(sizeof (*new)); in donames() 392 p->link = new; in donames() 393 p = new; in donames() 423 struct person *new; in donames() local 424 new = malloc(sizeof (*new)); in donames() 427 new->tty[LMAX] = 0; in donames() 431 new->pwd = p->pwd; in donames() 432 new->loggedin = 1; in donames() 433 new->original = 0; in donames() 436 p->link = new; in donames() [all …]
|