/titanic_44/usr/src/lib/libbc/libc/gen/sys5/ |
H A D | sleep.c | 36 struct itimerval *newp = &new; in sleep() local 43 timerclear(&newp->it_interval); in sleep() 44 timerclear(&newp->it_value); in sleep() 45 if (setitimer(ITIMER_REAL, newp, &old) < 0) in sleep() 47 newp->it_value.tv_sec = n; in sleep() 51 if (timercmp(&old.it_value, &newp->it_value, >)) { in sleep() 52 old.it_value.tv_sec -= newp->it_value.tv_sec; in sleep() 55 left_over.tv_sec = newp->it_value.tv_sec in sleep() 62 newp->it_value = old.it_value; in sleep() 72 (void) setitimer(ITIMER_REAL, newp, (struct itimerval *)0); in sleep() [all …]
|
/titanic_44/usr/src/lib/libfsmgt/common/ |
H A D | fs_mounts.c | 162 fs_mntlist_t *newp; in fs_get_filtered_mount_list() local 189 newp = create_mntlist_entry(mnttab_entry); in fs_get_filtered_mount_list() 191 if (newp == NULL) { in fs_get_filtered_mount_list() 202 headp = newp; in fs_get_filtered_mount_list() 203 tailp = newp; in fs_get_filtered_mount_list() 205 tailp->next = newp; in fs_get_filtered_mount_list() 206 tailp = newp; in fs_get_filtered_mount_list() 273 fs_mntlist_t *newp; in fs_get_mounts_by_mntopt() local 295 newp = create_mntlist_entry(mnttab_entry); in fs_get_mounts_by_mntopt() 297 if (newp == NULL) { in fs_get_mounts_by_mntopt() [all …]
|
H A D | fs_shares.c | 85 fs_sharelist_t *newp; in fs_get_share_list() local 99 newp = create_sharelist_entry(sharetab_entry, errp); in fs_get_share_list() 100 if (newp == NULL) { in fs_get_share_list() 111 headp = newp; in fs_get_share_list() 112 tailp = newp; in fs_get_share_list() 114 tailp->next = newp; in fs_get_share_list() 115 tailp = newp; in fs_get_share_list() 285 fs_sharelist_t *newp; in create_sharelist_entry() local 287 newp = (fs_sharelist_t *)calloc((size_t)1, in create_sharelist_entry() 290 if (newp == NULL) { in create_sharelist_entry() [all …]
|
H A D | fs_mount_defaults.c | 97 fs_mntdefaults_t *newp; in fs_get_filtered_mount_defaults() local 126 newp = create_mntdefaults_entry(vfstab_entry, errp); in fs_get_filtered_mount_defaults() 127 if (newp == NULL) { in fs_get_filtered_mount_defaults() 139 headp = newp; in fs_get_filtered_mount_defaults() 140 tailp = newp; in fs_get_filtered_mount_defaults() 142 tailp->next = newp; in fs_get_filtered_mount_defaults() 143 tailp = newp; in fs_get_filtered_mount_defaults() 161 fs_mntdefaults_t *newp; in fs_get_mount_defaults() local 176 newp = create_mntdefaults_entry(vfstab_entry, errp); in fs_get_mount_defaults() 178 if (newp == NULL) { in fs_get_mount_defaults() [all …]
|
/titanic_44/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, links, __data); [all …]
|
/titanic_44/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_list.h | 73 #define LS_INS_BEFORE(oldp, newp) \ argument 74 ls_ins_before((ls_elt_t *)(oldp), (ls_elt_t *)(newp)) 76 #define LS_INS_AFTER(oldp, newp) \ argument 77 ls_ins_after((ls_elt_t *)(oldp), (ls_elt_t *)(newp)) 85 #define LS_PUSH(stackp, newp) \ argument 86 ls_ins_after((ls_elt_t *)(stackp), (ls_elt_t *)(newp))
|
/titanic_44/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/
|
/titanic_44/usr/src/cmd/syseventd/modules/datalink_mod/ |
H A D | datalink_mod.c | 116 struct event_list *newp, **elpp; in datalink_deliver_event() local 130 if ((newp = malloc(sizeof (struct event_list))) == NULL) in datalink_deliver_event() 133 newp->ev = nvl; in datalink_deliver_event() 134 newp->next = NULL; in datalink_deliver_event() 144 *elpp = newp; in datalink_deliver_event()
|
/titanic_44/usr/src/stand/lib/fs/nfs/ |
H A D | pmap.c | 94 struct pmaplist *newp; in bpmap_addport() local 97 newp = (struct pmaplist *)bkmem_alloc(sizeof (struct pmaplist)); in bpmap_addport() 99 if (newp == NULL) in bpmap_addport() 102 newp->pml_map.pm_prog = prog; in bpmap_addport() 103 newp->pml_map.pm_vers = vers; in bpmap_addport() 104 newp->pml_map.pm_prot = (rpcprot_t)IPPROTO_UDP; in bpmap_addport() 105 newp->pml_map.pm_port = port; in bpmap_addport() 107 map_tail->pml_next = newp; in bpmap_addport() 108 newp->pml_next = NULL; in bpmap_addport() 109 map_tail = newp; in bpmap_addport()
|
/titanic_44/usr/src/lib/efcode/engine/ |
H A D | init.c | 67 void *newp; in safe_realloc() local 69 if ((newp = safe_malloc(n, f, l)) == NULL) { in safe_realloc() 76 memcpy(newp, p, n); in safe_realloc() 79 return (newp); in safe_realloc()
|
/titanic_44/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rdsib_ep.c | 1209 rds_session_t *newp, *oldp; in rds_session_create() local 1234 newp = kmem_zalloc(sizeof (rds_session_t), KM_SLEEP); in rds_session_create() 1236 newp->session_remip = remip; in rds_session_create() 1237 newp->session_myip = localip; in rds_session_create() 1238 newp->session_type = type; in rds_session_create() 1239 newp->session_state = RDS_SESSION_STATE_CREATED; in rds_session_create() 1241 "SP(%p) State RDS_SESSION_STATE_CREATED", newp); in rds_session_create() 1242 rw_init(&newp->session_lock, NULL, RW_DRIVER, NULL); in rds_session_create() 1243 rw_init(&newp->session_local_portmap_lock, NULL, RW_DRIVER, NULL); in rds_session_create() 1244 rw_init(&newp->session_remote_portmap_lock, NULL, RW_DRIVER, NULL); in rds_session_create() [all …]
|
/titanic_44/usr/src/uts/common/fs/mntfs/ |
H A D | mntvnops.c | 436 mntfs_insert_after(mntelem_t *newp, mntelem_t *prevp) in mntfs_insert_after() argument 438 newp->mnte_prev = prevp; in mntfs_insert_after() 439 newp->mnte_next = prevp->mnte_next; in mntfs_insert_after() 440 prevp->mnte_next = newp; in mntfs_insert_after() 441 if (newp->mnte_next != NULL) in mntfs_insert_after() 442 newp->mnte_next->mnte_prev = newp; in mntfs_insert_after() 515 mntelem_t *newp; in mntfs_snapshot() local 703 newp = mntfs_copy(tempelemp); in mntfs_snapshot() 704 vfs_mono_time(&newp->mnte_birth); in mntfs_snapshot() 706 mntfs_insert_after(newp, prevp); in mntfs_snapshot() [all …]
|
/titanic_44/usr/src/lib/libc/port/locale/ |
H A D | fnmatch.c | 92 char *newp; in fnmatch1() local 179 switch (rangematch(pattern, sc, flags, &newp, in fnmatch1() 184 pattern = newp; in fnmatch1() 220 rangematch(const char *pattern, wchar_t test, int flags, char **newp, in rangematch() argument 291 *newp = (char *)pattern; in rangematch()
|
/titanic_44/usr/src/cmd/zdump/ |
H A D | zdump.c | 468 delta(newp, oldp) in delta() argument 469 struct tm *newp; in delta() 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;
|
/titanic_44/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_idmap.c | 1359 nfsidmap_t *newp; in nfs_idmap_cache_s2i_insert() local 1431 newp = kmem_cache_alloc(nfsidmap_cache, KM_SLEEP); in nfs_idmap_cache_s2i_insert() 1432 newp->id_len = u8s->utf8string_len; in nfs_idmap_cache_s2i_insert() 1433 newp->id_val = kmem_alloc(u8s->utf8string_len, KM_SLEEP); in nfs_idmap_cache_s2i_insert() 1434 bcopy(u8s->utf8string_val, newp->id_val, u8s->utf8string_len); in nfs_idmap_cache_s2i_insert() 1435 newp->id_no = id; in nfs_idmap_cache_s2i_insert() 1436 newp->id_time = gethrestime_sec(); in nfs_idmap_cache_s2i_insert() 1437 insque(newp, hq); in nfs_idmap_cache_s2i_insert() 1526 nfsidmap_t *newp; in nfs_idmap_cache_i2s_insert() local 1585 newp = kmem_cache_alloc(nfsidmap_cache, KM_SLEEP); in nfs_idmap_cache_i2s_insert() [all …]
|
/titanic_44/usr/src/lib/libshell/common/bltins/ |
H A D | hist.c | 288 register char *newp=replace; in hist_subst() local 293 while(*++newp != '='); /* skip to '=' */ in hist_subst() 302 *newp++ = 0; in hist_subst() 303 if((sp=sh_substitute(string,replace,newp))==0) in hist_subst() 305 *(newp-1) = '='; in hist_subst()
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | plugins.c | 581 void **newp = NULL; in krb5int_get_plugin_dir_data() local 584 newp = realloc (p, ((count + 1) * sizeof (*p))); /* +1 for NULL */ in krb5int_get_plugin_dir_data() 585 if (newp == NULL) { in krb5int_get_plugin_dir_data() 588 p = newp; in krb5int_get_plugin_dir_data() 640 void (**newp)() = NULL; in krb5int_get_plugin_dir_func() local 643 newp = realloc (p, ((count + 1) * sizeof (*p))); /* +1 for NULL */ in krb5int_get_plugin_dir_func() 644 if (newp == NULL) { in krb5int_get_plugin_dir_func() 647 p = newp; in krb5int_get_plugin_dir_func()
|
/titanic_44/usr/src/uts/common/io/ |
H A D | physmem.c | 161 struct physmem_proc_hash *newp = NULL; in physmem_add_hash() local 194 if (newp != NULL) in physmem_add_hash() 195 kmem_free(newp, sizeof (*newp)); in physmem_add_hash() 201 if (newp != NULL) { in physmem_add_hash() 202 newp->pph_proc = curproc; in physmem_add_hash() 203 newp->pph_next = pph[index]; in physmem_add_hash() 204 newp->pph_hash = php; in physmem_add_hash() 206 pph[index] = newp; in physmem_add_hash() 213 newp = kmem_zalloc(sizeof (struct physmem_proc_hash), KM_SLEEP); in physmem_add_hash()
|
/titanic_44/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | dbtab.c | 219 struct db_list *p, *newp; in db_get_db() local 232 if ((newp = calloc(1, sizeof (*newp))) == NULL) { in db_get_db() 240 if ((newp->path = malloc(strlen(fhpath) + 2 + strlen(fsidstr))) in db_get_db() 248 (void) sprintf(newp->path, "%s.%s", fhpath, fsidstr); in db_get_db() 252 if ((newp->db = dbm_open(newp->path, create_flag | O_RDWR, 0666)) in db_get_db() 257 newp->path, strerror(*errorp)); in db_get_db() 268 data = dbm_fetch(newp->db, key); in db_get_db() 272 (void) dbm_store(newp->db, key, data, DBM_INSERT); in db_get_db() 275 (void) memcpy(&newp->fsid, fsid, sizeof (*fsid)); in db_get_db() 276 newp->next = db_fs_list; in db_get_db() [all …]
|
/titanic_44/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 */ in etm_iosvc_msg_enq() local 1510 newp = fmd_hdl_zalloc(hdl, sizeof (*newp), FMD_SLEEP); in etm_iosvc_msg_enq() 1511 (void) memcpy(newp, msgp, sizeof (*newp)); in etm_iosvc_msg_enq() 1512 newp->msg_nextp = NULL; in etm_iosvc_msg_enq() 1515 iosvc->msg_q_head = newp; in etm_iosvc_msg_enq() 1517 iosvc->msg_q_tail->msg_nextp = newp; in etm_iosvc_msg_enq() 1520 iosvc->msg_q_tail = newp; in etm_iosvc_msg_enq() 1571 etm_iosvc_q_ele_t *newp; /* iosvc msg ele ptr */ in etm_msg_enq_head() local 1580 newp = iosvc->msg_q_head; in etm_msg_enq_head() 1581 while (newp->msg_nextp != iosvc->msg_q_tail) { in etm_msg_enq_head() [all …]
|
/titanic_44/usr/src/cmd/svc/startd/ |
H A D | env.c | 65 char **newp; in init_env() local 154 newp = startd_alloc(sizeof (*glob_envp) * in init_env() 156 (void) memcpy(newp, glob_envp, in init_env() 160 glob_envp = newp; in init_env()
|
/titanic_44/usr/src/lib/libsldap/common/ |
H A D | ns_mapping.c | 173 ns_hash_t *idx, *newp; in __s_api_add_map2hash() local 186 newp = (ns_hash_t *)malloc(sizeof (ns_hash_t)); in __s_api_add_map2hash() 187 if (newp == NULL) in __s_api_add_map2hash() 189 newp->h_type = type; in __s_api_add_map2hash() 190 newp->h_map = map; in __s_api_add_map2hash() 191 newp->h_next = idx; in __s_api_add_map2hash() 192 config->hashTbl[hash] = newp; in __s_api_add_map2hash() 193 newp->h_llnext = config->llHead; in __s_api_add_map2hash() 194 config->llHead = newp; in __s_api_add_map2hash()
|
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | unparse.c | 56 char *newp = MALLOC(new_size); in krb5int_realloc() local 58 bcopy(oldp, newp, old_size < new_size ? old_size : new_size); in krb5int_realloc() 61 return (newp); in krb5int_realloc()
|
/titanic_44/usr/src/lib/libshare/common/ |
H A D | libsharecore.c | 1365 xfs_sharelist_t *newp; in get_share_list() local 1380 newp = alloc_sharelist(); in get_share_list() 1381 if (newp == NULL) { in get_share_list() 1392 headp = newp; in get_share_list() 1393 tailp = newp; in get_share_list() 1395 tailp->next = newp; in get_share_list() 1396 tailp = newp; in get_share_list() 1399 newp->path = strdup(sharetab_entry->sh_path); in get_share_list() 1400 newp->resource = strdup(sharetab_entry->sh_res); in get_share_list() 1401 newp->fstype = strdup(sharetab_entry->sh_fstype); in get_share_list() [all …]
|
/titanic_44/usr/src/uts/i86pc/io/apix/ |
H A D | apix_utils.c | 646 apix_dup_vectors(apix_vector_t *oldp, apix_vector_t *newp, int count) in apix_dup_vectors() argument 650 processorid_t oldcpu = oldp->v_cpuid, newcpu = newp->v_cpuid; in apix_dup_vectors() 651 uchar_t oldvec = oldp->v_vector, newvec = newp->v_vector; in apix_dup_vectors() 1461 apix_vector_t *newp, *oldp; in apix_rebind() local 1479 newp = apix_alloc_vector_oncpu(newcpu, NULL, 0, vecp->v_type); in apix_rebind() 1482 newp = apix_alloc_nvectors_oncpu(newcpu, NULL, 0, count, in apix_rebind() 1485 if (newp == NULL) { in apix_rebind() 1491 newvec = newp->v_vector; in apix_rebind() 1492 apix_dup_vectors(vecp, newp, count); in apix_rebind() 1506 for (avp = newp->v_autovect; avp != NULL; in apix_rebind() [all …]
|