/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pointers/ |
H A D | tst.VoidCast.d | 49 newp = (int *) p; 51 printf("array[0]: %d, newp: %d\n", array[0], *newp); 56 /234 != *newp/
|
/illumos-gate/usr/src/lib/libbc/libc/gen/sys5/ |
H A D | sleep.c | 36 struct itimerval *newp = &new; local 43 timerclear(&newp->it_interval); 44 timerclear(&newp->it_value); 45 if (setitimer(ITIMER_REAL, newp, &old) < 0) 47 newp->it_value.tv_sec = n; 51 if (timercmp(&old.it_value, &newp->it_value, >)) { 52 old.it_value.tv_sec -= newp->it_value.tv_sec; 55 left_over.tv_sec = newp->it_value.tv_sec 62 newp->it_value = old.it_value; 72 (void) setitimer(ITIMER_REAL, newp, (struc [all...] |
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | fs_shares.c | 85 fs_sharelist_t *newp; local 99 newp = create_sharelist_entry(sharetab_entry, errp); 100 if (newp == NULL) { 111 headp = newp; 112 tailp = newp; 114 tailp->next = newp; 115 tailp = newp; 285 fs_sharelist_t *newp; local 287 newp = (fs_sharelist_t *)calloc((size_t)1, 290 if (newp [all...] |
H A D | fs_mounts.c | 162 fs_mntlist_t *newp; local 189 newp = create_mntlist_entry(mnttab_entry); 191 if (newp == NULL) { 202 headp = newp; 203 tailp = newp; 205 tailp->next = newp; 206 tailp = newp; 273 fs_mntlist_t *newp; local 295 newp = create_mntlist_entry(mnttab_entry); 297 if (newp 332 fs_mntlist_t *newp; local 534 fs_mntlist_t *newp; local 594 fs_mntlist_t *newp; local [all...] |
H A D | fs_mount_defaults.c | 97 fs_mntdefaults_t *newp; local 126 newp = create_mntdefaults_entry(vfstab_entry, errp); 127 if (newp == NULL) { 139 headp = newp; 140 tailp = newp; 142 tailp->next = newp; 143 tailp = newp; 161 fs_mntdefaults_t *newp; local 176 newp = create_mntdefaults_entry(vfstab_entry, errp); 178 if (newp 211 fs_add_mount_default(fs_mntdefaults_t *newp, int *errp) argument 484 fs_mntdefaults_t *newp; local [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_list.h | 73 #define LS_INS_BEFORE(oldp, newp) \ 74 ls_ins_before((ls_elt_t *)(oldp), (ls_elt_t *)(newp)) 76 #define LS_INS_AFTER(oldp, newp) \ 77 ls_ins_after((ls_elt_t *)(oldp), (ls_elt_t *)(newp)) 85 #define LS_PUSH(stackp, newp) \ 86 ls_ins_after((ls_elt_t *)(stackp), (ls_elt_t *)(newp))
|
/illumos-gate/usr/src/cmd/syseventd/modules/datalink_mod/ |
H A D | datalink_mod.c | 118 struct event_list *newp, **elpp; local 132 if ((newp = malloc(sizeof (struct event_list))) == NULL) 135 newp->ev = nvl; 136 newp->next = NULL; 146 *elpp = newp;
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_salloc.c | 155 struct __data *elp, *lastp, *newp; local 168 newp = (struct __data *)((u_int8_t *)ptr - sizeof(size_t)); 169 free_size = newp->len; 201 newp->len += elp->len + sizeof(size_t); 204 SH_LIST_INSERT_AFTER(lastp, newp, links, __data); 206 SH_LIST_INSERT_HEAD(hp, newp, links, __data); 212 lastp->len + sizeof(size_t) == (u_int8_t *)newp) { 213 lastp->len += newp->len + sizeof(size_t); 221 SH_LIST_REMOVE(newp, links, __data); 227 SH_LIST_INSERT_HEAD(hp, newp, link [all...] |
/illumos-gate/usr/src/lib/efcode/engine/ |
H A D | init.c | 67 void *newp; local 69 if ((newp = safe_malloc(n, f, l)) == NULL) { 76 memcpy(newp, p, n); 79 return (newp);
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | pmap.c | 94 struct pmaplist *newp; local 97 newp = (struct pmaplist *)bkmem_alloc(sizeof (struct pmaplist)); 99 if (newp == NULL) 102 newp->pml_map.pm_prog = prog; 103 newp->pml_map.pm_vers = vers; 104 newp->pml_map.pm_prot = (rpcprot_t)IPPROTO_UDP; 105 newp->pml_map.pm_port = port; 107 map_tail->pml_next = newp; 108 newp->pml_next = NULL; 109 map_tail = newp; [all...] |
/illumos-gate/usr/src/cmd/zdump/ |
H A D | zdump.c | 468 delta(newp, oldp) 469 struct tm *newp; 475 if (newp->tm_year < oldp->tm_year) 476 return (-delta(oldp, newp)); 478 for (tmy = oldp->tm_year; tmy < newp->tm_year; ++tmy) 480 result += newp->tm_yday - oldp->tm_yday; 482 result += newp->tm_hour - oldp->tm_hour; 484 result += newp->tm_min - oldp->tm_min; 486 result += newp->tm_sec - oldp->tm_sec;
|
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | hist.c | 288 register char *newp=replace; local 293 while(*++newp != '='); /* skip to '=' */ 302 *newp++ = 0; 303 if((sp=sh_substitute(string,replace,newp))==0) 305 *(newp-1) = '=';
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | fnmatch.c | 92 char *newp; local 179 switch (rangematch(pattern, sc, flags, &newp, 184 pattern = newp; 220 rangematch(const char *pattern, wchar_t test, int flags, char **newp, argument 291 *newp = (char *)pattern;
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | env.c | 65 char **newp; local 154 newp = startd_alloc(sizeof (*glob_envp) * 156 (void) memcpy(newp, glob_envp, 160 glob_envp = newp;
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_idmap.c | 1359 nfsidmap_t *newp; local 1431 newp = kmem_cache_alloc(nfsidmap_cache, KM_SLEEP); 1432 newp->id_len = u8s->utf8string_len; 1433 newp->id_val = kmem_alloc(u8s->utf8string_len, KM_SLEEP); 1434 bcopy(u8s->utf8string_val, newp->id_val, u8s->utf8string_len); 1435 newp->id_no = id; 1436 newp->id_time = gethrestime_sec(); 1437 insque(newp, hq); 1526 nfsidmap_t *newp; local 1585 newp [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib_ep.c | 1209 rds_session_t *newp, *oldp; local 1234 newp = kmem_zalloc(sizeof (rds_session_t), KM_SLEEP); 1236 newp->session_remip = remip; 1237 newp->session_myip = localip; 1238 newp->session_type = type; 1239 newp->session_state = RDS_SESSION_STATE_CREATED; 1241 "SP(%p) State RDS_SESSION_STATE_CREATED", newp); 1242 rw_init(&newp->session_lock, NULL, RW_DRIVER, NULL); 1243 rw_init(&newp->session_local_portmap_lock, NULL, RW_DRIVER, NULL); 1244 rw_init(&newp [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | physmem.c | 161 struct physmem_proc_hash *newp = NULL; local 194 if (newp != NULL) 195 kmem_free(newp, sizeof (*newp)); 201 if (newp != NULL) { 202 newp->pph_proc = curproc; 203 newp->pph_next = pph[index]; 204 newp->pph_hash = php; 206 pph[index] = newp; 213 newp [all...] |
/illumos-gate/usr/src/uts/common/fs/mntfs/ |
H A D | mntvnops.c | 434 /* Insert the new database element newp after the existing element prevp. */ 436 mntfs_insert_after(mntelem_t *newp, mntelem_t *prevp) argument 438 newp->mnte_prev = prevp; 439 newp->mnte_next = prevp->mnte_next; 440 prevp->mnte_next = newp; 441 if (newp->mnte_next != NULL) 442 newp->mnte_next->mnte_prev = newp; 515 mntelem_t *newp; local 703 newp [all...] |
/illumos-gate/usr/src/uts/common/io/lvm/raid/ |
H A D | raid_replay.c | 189 rpl_insert(raid_rplylst_t **listp, raid_rplylst_t *newp) argument 194 if (tmp->rpl_id > newp->rpl_id) { 198 newp->rpl_next = tmp; 199 *prevp = newp; 236 raid_rplylst_t *newp, *oldp; local 247 newp = (raid_rplylst_t *)kmem_zalloc(sizeof (raid_rplylst_t), 249 ASSERT(newp != NULL); 250 bcopy((caddr_t)pwhp, (caddr_t)&newp->rpl_pwhdr1, 252 bzero((caddr_t)&newp->rpl_pwhdr2, sizeof (raid_pwhdr_t)); 254 newp [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4v/etm/ |
H A D | etm.c | 1503 etm_iosvc_q_ele_t *newp; /* ptr to new msg q ele */ local 1510 newp = fmd_hdl_zalloc(hdl, sizeof (*newp), FMD_SLEEP); 1511 (void) memcpy(newp, msgp, sizeof (*newp)); 1512 newp->msg_nextp = NULL; 1515 iosvc->msg_q_head = newp; 1517 iosvc->msg_q_tail->msg_nextp = newp; 1520 iosvc->msg_q_tail = newp; 1571 etm_iosvc_q_ele_t *newp; /* iosv local 1996 etm_resp_q_ele_t *newp; /* ptr to new resp q ele */ local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | plugins.c | 581 void **newp = NULL; local 584 newp = realloc (p, ((count + 1) * sizeof (*p))); /* +1 for NULL */ 585 if (newp == NULL) { 588 p = newp; 640 void (**newp)() = NULL; 643 newp = realloc (p, ((count + 1) * sizeof (*p))); /* +1 for NULL */ 644 if (newp == NULL) { 647 p = newp;
|
/illumos-gate/usr/src/lib/libidmap/common/ |
H A D | directory_error.c | 337 char *newp; local 347 n = strtol(p, &newp, 10); 348 p = newp;
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioList.cc | 92 AudioListEntry* newp; local 100 newp = new AudioListEntry(e2); 101 newp->link(this);
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | unparse.c | 56 char *newp = MALLOC(new_size); local 58 bcopy(oldp, newp, old_size < new_size ? old_size : new_size); 61 return (newp);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | dbtab.c | 219 struct db_list *p, *newp; local 232 if ((newp = calloc(1, sizeof (*newp))) == NULL) { 240 if ((newp->path = malloc(strlen(fhpath) + 2 + strlen(fsidstr))) 248 (void) sprintf(newp->path, "%s.%s", fhpath, fsidstr); 252 if ((newp->db = dbm_open(newp->path, create_flag | O_RDWR, 0666)) 257 newp->path, strerror(*errorp)); 268 data = dbm_fetch(newp->db, key); 272 (void) dbm_store(newp [all...] |