Home
last modified time | relevance | path

Searched refs:newp (Results 1 – 25 of 47) sorted by relevance

12

/illumos-gate/usr/src/lib/libfsmgt/common/
H A Dfs_mounts.c200 headp = newp; in fs_get_filtered_mount_list()
201 tailp = newp; in fs_get_filtered_mount_list()
204 tailp = newp; in fs_get_filtered_mount_list()
306 headp = newp; in fs_get_mounts_by_mntopt()
307 tailp = newp; in fs_get_mounts_by_mntopt()
310 tailp = newp; in fs_get_mounts_by_mntopt()
362 headp = newp; in fs_get_mount_list()
363 tailp = newp; in fs_get_mount_list()
366 tailp = newp; in fs_get_mount_list()
586 return (newp); in create_mntlist_entry()
[all …]
H A Dfs_shares.c83 fs_sharelist_t *newp; in fs_get_share_list() local
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
288 if (newp == NULL) { in create_sharelist_entry()
297 if (newp->path == NULL) { in create_sharelist_entry()
345 newp->next = NULL; in create_sharelist_entry()
[all …]
H A Dfs_mount_defaults.c125 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()
141 tailp = newp; in fs_get_filtered_mount_defaults()
176 if (newp == NULL) { in fs_get_mount_defaults()
188 headp = newp; in fs_get_mount_defaults()
189 tailp = newp; in fs_get_mount_defaults()
192 tailp = newp; in fs_get_mount_defaults()
487 if (newp == NULL) { in create_mntdefaults_entry()
580 newp->next = NULL; in create_mntdefaults_entry()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_salloc.c155 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 Ddatalink_mod.c118 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/cmd/dtrace/test/tst/common/pointers/
H A Dtst.VoidCast.d47 newp = (int *) p;
49 printf("array[0]: %d, newp: %d\n", array[0], *newp);
54 /234 != *newp/
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dpmap.c92 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/uts/common/io/ib/clients/rds/
H A Drdsib_ep.c1209 rds_session_t *newp, *oldp; in rds_session_create() local
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()
1247 dataep = &newp->session_dataep; in rds_session_create()
1251 dataep->ep_sp = newp; in rds_session_create()
1271 ctrlep->ep_sp = newp; in rds_session_create()
1374 newp->session_lgid = lgid; in rds_session_create()
1375 newp->session_rgid = rgid; in rds_session_create()
1382 rw_exit(&newp->session_lock); in rds_session_create()
[all …]
/illumos-gate/usr/src/uts/common/fs/mntfs/
H A Dmntvnops.c438 newp->mnte_prev = prevp; in mntfs_insert_after()
440 prevp->mnte_next = newp; in mntfs_insert_after()
442 newp->mnte_next->mnte_prev = newp; in mntfs_insert_after()
515 mntelem_t *newp; in mntfs_snapshot() local
708 newp->mnte_next = NULL; in mntfs_snapshot()
709 newp->mnte_prev = NULL; in mntfs_snapshot()
711 *headpp = newp; in mntfs_snapshot()
713 elemp = newp; in mntfs_snapshot()
727 *headpp = newp; in mntfs_snapshot()
729 elemp = newp; in mntfs_snapshot()
[all …]
/illumos-gate/usr/src/cmd/zdump/
H A Dzdump.c473 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 Dfnmatch.c91 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 Dnfs4_idmap.c1365 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()
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
1598 newp->id_len = u8s->utf8string_len; in nfs_idmap_cache_i2s_insert()
1601 newp->id_no = id; in nfs_idmap_cache_i2s_insert()
1602 newp->id_time = gethrestime_sec(); in nfs_idmap_cache_i2s_insert()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Denv.c99 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/contrib/ast/src/cmd/ksh93/bltins/
H A Dhist.c293 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/lib/gss_mechs/mech_krb5/support/
H A Dplugins.c581 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/uts/common/io/
H A Dphysmem.c161 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 Ddbtab.c217 struct db_list *p, *newp; in db_get_db() local
230 if ((newp = calloc(1, sizeof (*newp))) == NULL) { in db_get_db()
250 if ((newp->db = dbm_open(newp->path, create_flag | O_RDWR, 0666)) in db_get_db()
274 newp->next = db_fs_list; in db_get_db()
275 db_fs_list = newp; in db_get_db()
279 return (newp); in db_get_db()
282 if (newp != NULL) { in db_get_db()
283 if (newp->db != NULL) { in db_get_db()
284 dbm_close(newp->db); in db_get_db()
287 free(newp->path); in db_get_db()
[all …]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_mapping.c174 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/uts/i86pc/io/apix/
H A Dapix_utils.c1466 apix_vector_t *newp, *oldp; in apix_rebind() local
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()
1518 apix_remove_av(newp, avp); in apix_rebind()
1520 apix_cleanup_vector(newp); in apix_rebind()
1535 return (newp); in apix_rebind()
1540 newp = xv_vector(newcpu, newvec + i); in apix_rebind()
1542 if (newp->v_share > 0) { in apix_rebind()
1543 APIX_SET_REBIND_INFO(oldp, newp); in apix_rebind()
[all …]
/illumos-gate/usr/src/lib/libshare/common/
H A Dlibsharecore.c1366 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()
1406 if (newp->path == NULL || newp->resource == NULL || in get_share_list()
1407 newp->fstype == NULL || newp->options == NULL || in get_share_list()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dunparse.c56 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 DAudioList.cc90 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 Dcache.c70 static int match_disk(disk_t *oldp, disk_t *newp);
750 match_disk(disk_t *oldp, disk_t *newp) in match_disk() argument
753 if (newp->devid != NULL && in match_disk()
754 devid_compare(oldp->devid, newp->devid) == 0) { in match_disk()
760 if (newp->devid == NULL) { in match_disk()
762 if (match_aliases(oldp, newp)) { in match_disk()
/illumos-gate/usr/src/lib/libidmap/common/
H A Ddirectory_error.c337 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 Dprof_parse.c290 char* newp; in profile_parse_file() local
297 newp = p + strlen (p) + 1; in profile_parse_file()
304 p = newp; in profile_parse_file()

12