/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | fs_mounts.c | 160 fs_mntlist_t *newp; in fs_get_filtered_mount_list() local 187 newp = create_mntlist_entry(mnttab_entry); in fs_get_filtered_mount_list() 189 if (newp == NULL) { in fs_get_filtered_mount_list() 200 headp = newp; in fs_get_filtered_mount_list() 201 tailp = newp; in fs_get_filtered_mount_list() 203 tailp->next = newp; in fs_get_filtered_mount_list() 204 tailp = newp; in fs_get_filtered_mount_list() 271 fs_mntlist_t *newp; in fs_get_mounts_by_mntopt() local 293 newp = create_mntlist_entry(mnttab_entry); in fs_get_mounts_by_mntopt() 295 if (newp == NULL) { in fs_get_mounts_by_mntopt() [all …]
|
H A D | fs_shares.c | 83 fs_sharelist_t *newp; in fs_get_share_list() local 97 newp = create_sharelist_entry(sharetab_entry, errp); in fs_get_share_list() 98 if (newp == NULL) { in fs_get_share_list() 109 headp = newp; in fs_get_share_list() 110 tailp = newp; in fs_get_share_list() 112 tailp->next = newp; in fs_get_share_list() 113 tailp = newp; in fs_get_share_list() 283 fs_sharelist_t *newp; in create_sharelist_entry() local 285 newp = (fs_sharelist_t *)calloc((size_t)1, in create_sharelist_entry() 288 if (newp == NULL) { in create_sharelist_entry() [all …]
|
H A D | fs_mount_defaults.c | 95 fs_mntdefaults_t *newp; in fs_get_filtered_mount_defaults() local 124 newp = create_mntdefaults_entry(vfstab_entry, errp); in fs_get_filtered_mount_defaults() 125 if (newp == NULL) { in fs_get_filtered_mount_defaults() 137 headp = newp; in fs_get_filtered_mount_defaults() 138 tailp = newp; in fs_get_filtered_mount_defaults() 140 tailp->next = newp; in fs_get_filtered_mount_defaults() 141 tailp = newp; in fs_get_filtered_mount_defaults() 159 fs_mntdefaults_t *newp; in fs_get_mount_defaults() local 174 newp = create_mntdefaults_entry(vfstab_entry, errp); in fs_get_mount_defaults() 176 if (newp == NULL) { in fs_get_mount_defaults() [all …]
|
/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, links, __data); [all …]
|
/illumos-gate/usr/src/cmd/syseventd/modules/datalink_mod/ |
H A D | datalink_mod.c | 118 struct event_list *newp, **elpp; in datalink_deliver_event() local 132 if ((newp = malloc(sizeof (struct event_list))) == NULL) in datalink_deliver_event() 135 newp->ev = nvl; in datalink_deliver_event() 136 newp->next = NULL; in datalink_deliver_event() 146 *elpp = newp; in datalink_deliver_event()
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | pmap.c | 92 struct pmaplist *newp; in bpmap_addport() local 95 newp = (struct pmaplist *)bkmem_alloc(sizeof (struct pmaplist)); in bpmap_addport() 97 if (newp == NULL) in bpmap_addport() 100 newp->pml_map.pm_prog = prog; in bpmap_addport() 101 newp->pml_map.pm_vers = vers; in bpmap_addport() 102 newp->pml_map.pm_prot = (rpcprot_t)IPPROTO_UDP; in bpmap_addport() 103 newp->pml_map.pm_port = port; in bpmap_addport() 105 map_tail->pml_next = newp; in bpmap_addport() 106 newp->pml_next = NULL; in bpmap_addport() 107 map_tail = newp; in bpmap_addport()
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/pointers/ |
H A D | tst.VoidCast.d | 47 newp = (int *) p; 49 printf("array[0]: %d, newp: %d\n", array[0], *newp); 54 /234 != *newp/
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/zdump/ |
H A D | zdump.c | 473 delta(newp, oldp) in delta() argument 474 struct tm *newp; in delta() 480 if (newp->tm_year < oldp->tm_year) 481 return (-delta(oldp, newp)); 483 for (tmy = oldp->tm_year; tmy < newp->tm_year; ++tmy) 485 result += newp->tm_yday - oldp->tm_yday; 487 result += newp->tm_hour - oldp->tm_hour; 489 result += newp->tm_min - oldp->tm_min; 491 result += newp->tm_sec - oldp->tm_sec;
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | fnmatch.c | 91 char *newp; in fnmatch1() local 170 switch (rangematch(pattern, sc, flags, &newp, in fnmatch1() 175 pattern = newp; in fnmatch1() 234 rangematch(const char *pattern, wchar_t test, int flags, char **newp, in rangematch() argument 305 *newp = (char *)pattern; in rangematch()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_idmap.c | 1365 nfsidmap_t *newp; in nfs_idmap_cache_s2i_insert() local 1437 newp = kmem_cache_alloc(nfsidmap_cache, KM_SLEEP); in nfs_idmap_cache_s2i_insert() 1438 newp->id_len = u8s->utf8string_len; in nfs_idmap_cache_s2i_insert() 1439 newp->id_val = kmem_alloc(u8s->utf8string_len, KM_SLEEP); in nfs_idmap_cache_s2i_insert() 1440 bcopy(u8s->utf8string_val, newp->id_val, u8s->utf8string_len); in nfs_idmap_cache_s2i_insert() 1441 newp->id_no = id; in nfs_idmap_cache_s2i_insert() 1442 newp->id_time = gethrestime_sec(); in nfs_idmap_cache_s2i_insert() 1443 insque(newp, hq); in nfs_idmap_cache_s2i_insert() 1538 nfsidmap_t *newp; in nfs_idmap_cache_i2s_insert() local 1597 newp = kmem_cache_alloc(nfsidmap_cache, KM_SLEEP); in nfs_idmap_cache_i2s_insert() [all …]
|
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | env.c | 99 char **newp; in init_env() local 102 newp = startd_alloc(sizeof (*glob_envp) * glob_env_n); in init_env() 103 (void) memcpy(newp, glob_envp, in init_env() 107 glob_envp = newp; in init_env()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | hist.c | 293 register char *newp=replace; in hist_subst() local 298 while(*++newp != '='); /* skip to '=' */ in hist_subst() 307 *newp++ = 0; in hist_subst() 308 if((sp=sh_substitute(string,replace,newp))==0) in hist_subst() 310 *(newp-1) = '='; in hist_subst()
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | dbtab.c | 217 struct db_list *p, *newp; in db_get_db() local 230 if ((newp = calloc(1, sizeof (*newp))) == NULL) { in db_get_db() 238 if ((newp->path = malloc(strlen(fhpath) + 2 + strlen(fsidstr))) in db_get_db() 246 (void) sprintf(newp->path, "%s.%s", fhpath, fsidstr); in db_get_db() 250 if ((newp->db = dbm_open(newp->path, create_flag | O_RDWR, 0666)) in db_get_db() 255 newp->path, strerror(*errorp)); in db_get_db() 266 data = dbm_fetch(newp->db, key); in db_get_db() 270 (void) dbm_store(newp->db, key, data, DBM_INSERT); in db_get_db() 273 (void) memcpy(&newp->fsid, fsid, sizeof (*fsid)); in db_get_db() 274 newp->next = db_fs_list; in db_get_db() [all …]
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_mapping.c | 174 ns_hash_t *idx, *newp; in __s_api_add_map2hash() local 187 newp = (ns_hash_t *)malloc(sizeof (ns_hash_t)); in __s_api_add_map2hash() 188 if (newp == NULL) in __s_api_add_map2hash() 190 newp->h_type = type; in __s_api_add_map2hash() 191 newp->h_map = map; in __s_api_add_map2hash() 192 newp->h_next = idx; in __s_api_add_map2hash() 193 config->hashTbl[hash] = newp; in __s_api_add_map2hash() 194 newp->h_llnext = config->llHead; in __s_api_add_map2hash() 195 config->llHead = newp; in __s_api_add_map2hash()
|
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | libsharecore.c | 1366 xfs_sharelist_t *newp; in get_share_list() local 1381 newp = alloc_sharelist(); in get_share_list() 1382 if (newp == NULL) { in get_share_list() 1393 headp = newp; in get_share_list() 1394 tailp = newp; in get_share_list() 1396 tailp->next = newp; in get_share_list() 1397 tailp = newp; in get_share_list() 1400 newp->path = strdup(sharetab_entry->sh_path); in get_share_list() 1401 newp->resource = strdup(sharetab_entry->sh_res); in get_share_list() 1402 newp->fstype = strdup(sharetab_entry->sh_fstype); in get_share_list() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/apix/ |
H A D | apix_utils.c | 648 apix_dup_vectors(apix_vector_t *oldp, apix_vector_t *newp, int count) in apix_dup_vectors() argument 652 processorid_t oldcpu = oldp->v_cpuid, newcpu = newp->v_cpuid; in apix_dup_vectors() 653 uchar_t oldvec = oldp->v_vector, newvec = newp->v_vector; in apix_dup_vectors() 1466 apix_vector_t *newp, *oldp; in apix_rebind() local 1484 newp = apix_alloc_vector_oncpu(newcpu, NULL, 0, vecp->v_type); in apix_rebind() 1487 newp = apix_alloc_nvectors_oncpu(newcpu, NULL, 0, count, in apix_rebind() 1490 if (newp == NULL) { in apix_rebind() 1496 newvec = newp->v_vector; in apix_rebind() 1497 apix_dup_vectors(vecp, newp, count); in apix_rebind() 1511 for (avp = newp->v_autovect; avp != NULL; in apix_rebind() [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/audio/utilities/ |
H A D | AudioList.cc | 90 AudioListEntry* newp; in split() local 98 newp = new AudioListEntry(e2); in split() 99 newp->link(this); in split()
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | cache.c | 74 static int match_disk(disk_t *oldp, disk_t *newp); 755 match_disk(disk_t *oldp, disk_t *newp) in match_disk() argument 758 if (newp->devid != NULL && in match_disk() 759 devid_compare(oldp->devid, newp->devid) == 0) { in match_disk() 765 if (newp->devid == NULL) { in match_disk() 767 if (match_aliases(oldp, newp)) { in match_disk()
|
/illumos-gate/usr/src/lib/libidmap/common/ |
H A D | directory_error.c | 337 char *newp; in directory_error_expand() local 347 n = strtol(p, &newp, 10); in directory_error_expand() 348 p = newp; in directory_error_expand()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_parse.c | 290 char* newp; in profile_parse_file() local 297 newp = p + strlen (p) + 1; in profile_parse_file() 304 p = newp; in profile_parse_file()
|