Home
last modified time | relevance | path

Searched refs:newch (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/cmd/keyserv/
H A Dkeyserv_cache.c461 struct cachekey_header *newch; in remap_cache_file_ch() local
543 if ((newch = (void *)mmap(oldaddr, newsize, in remap_cache_file_ch()
550 newch->length = newsize; in remap_cache_file_ch()
552 if (cache_remap_addresses_ch(newch) == 0) { in remap_cache_file_ch()
554 newch->keylen, newch->algtype); in remap_cache_file_ch()
555 newch->length = oldsize; in remap_cache_file_ch()
556 close(newch->fd); in remap_cache_file_ch()
557 munmap((caddr_t)newch, newsize); in remap_cache_file_ch()
563 cd = MOVE_ADDR(&(newch->array[0]), currecs*newch->reclength); in remap_cache_file_ch()
564 for (i = currecs; i < MAPRECS(newch); i++) { in remap_cache_file_ch()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_subr.c827 struct chhead *ch, *newch; in clget4() local
842 newch = NULL; in clget4()
871 if (newch == NULL) { in clget4()
873 newch = kmem_alloc(sizeof (*newch), KM_SLEEP); in clget4()
874 newch->ch_timesused = 0; in clget4()
875 newch->ch_prog = ci->cl_prog; in clget4()
876 newch->ch_vers = ci->cl_vers; in clget4()
877 newch->ch_dev = svp->sv_knconf->knc_rdev; in clget4()
878 newch->ch_protofmly = kmem_alloc( in clget4()
881 (void) strcpy(newch->ch_protofmly, in clget4()
[all …]
H A Dnfs_subr.c312 struct chhead *ch, *newch; in clget_impl() local
327 newch = NULL; in clget_impl()
356 if (newch == NULL) { in clget_impl()
358 newch = kmem_alloc(sizeof (*newch), KM_SLEEP); in clget_impl()
359 newch->ch_timesused = 0; in clget_impl()
360 newch->ch_prog = ci->cl_prog; in clget_impl()
361 newch->ch_vers = ci->cl_vers; in clget_impl()
362 newch->ch_dev = svp->sv_knconf->knc_rdev; in clget_impl()
363 newch->ch_protofmly = kmem_alloc( in clget_impl()
366 (void) strcpy(newch->ch_protofmly, in clget_impl()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi.c5164 char *newch = NULL; in iscsi_get_name_from_iqn() local
5168 for (oldch = &name[0], newch = &tmp[0]; *oldch != '\0'; in iscsi_get_name_from_iqn()
5169 oldch++, newch++) { in iscsi_get_name_from_iqn()
5172 *newch++ = '%'; in iscsi_get_name_from_iqn()
5173 *newch++ = '3'; in iscsi_get_name_from_iqn()
5174 *newch = 'A'; in iscsi_get_name_from_iqn()
5177 *newch++ = '%'; in iscsi_get_name_from_iqn()
5178 *newch++ = '2'; in iscsi_get_name_from_iqn()
5179 *newch = '0'; in iscsi_get_name_from_iqn()
5182 *newch++ = '%'; in iscsi_get_name_from_iqn()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Droff.c4083 size_t oldch, newch; in roff_setstrn() local
4114 newch = stringsz + (1 < append ? 2u : 1u); in roff_setstrn()
4117 n->val.p = mandoc_malloc(newch); in roff_setstrn()
4122 n->val.p = mandoc_realloc(n->val.p, oldch + newch); in roff_setstrn()