/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_stub_vnops.c | 1139 struct netbuf *bufp; in nfs4_trigger_esi_create_mirrormount() local 1170 bufp = esi->esi_addr; in nfs4_trigger_esi_create_mirrormount() 1171 bufp->len = svp->sv_addr.len; in nfs4_trigger_esi_create_mirrormount() 1172 bufp->maxlen = svp->sv_addr.maxlen; in nfs4_trigger_esi_create_mirrormount() 1173 bufp->buf = kmem_zalloc(bufp->len, KM_SLEEP); in nfs4_trigger_esi_create_mirrormount() 1174 bcopy(svp->sv_addr.buf, bufp->buf, bufp->len); in nfs4_trigger_esi_create_mirrormount() 1194 struct netbuf *bufp; in nfs4_trigger_esi_create_mirrormount() local 1202 bufp = kmem_zalloc(sizeof (struct netbuf), KM_SLEEP); in nfs4_trigger_esi_create_mirrormount() 1203 bufp->len = data->syncaddr.len; in nfs4_trigger_esi_create_mirrormount() 1204 bufp->maxlen = data->syncaddr.maxlen; in nfs4_trigger_esi_create_mirrormount() [all …]
|
H A D | nfs4_subr.c | 1229 char *bufp; in nfs4_rfscall() local 1497 bufp = clnt_sperror(client, svp->sv_hostname); in nfs4_rfscall() 1499 mi->mi_vers, mi->mi_rfsnames[which], bufp); in nfs4_rfscall() 1504 bufp); in nfs4_rfscall() 1507 kmem_free(bufp, MAXPATHLEN); in nfs4_rfscall()
|
/illumos-gate/usr/src/uts/common/fs/mntfs/ |
H A D | mntvnops.c | 813 mntfs_getmntopts(struct vfs *vfsp, char **bufp, size_t *lenp) in mntfs_getmntopts() argument 823 *bufp = NULL; in mntfs_getmntopts() 832 *bufp = buf; in mntfs_getmntopts()
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | priocntl.c | 1084 void *bufp = NULL; in setthreadprio() local 1091 if (CL_ALLOC(&bufp, pcprio->pc_cid, KM_NOSLEEP) != 0) in setthreadprio() 1093 error = CL_ENTERCLASS(tp, pcprio->pc_cid, NULL, CRED(), bufp); in setthreadprio() 1095 CL_FREE(pcprio->pc_cid, bufp); in setthreadprio()
|
H A D | rt.c | 356 void *bufp) in rt_enterclass() argument 371 rtpp = (rtproc_t *)bufp; in rt_enterclass() 456 rt_fork(kthread_t *t, kthread_t *ct, void *bufp) in rt_fork() argument 466 crtpp = (rtproc_t *)bufp; in rt_fork() 1077 void *bufp; in rt_alloc() local 1078 bufp = kmem_alloc(sizeof (rtproc_t), flag); in rt_alloc() 1079 if (bufp == NULL) { in rt_alloc() 1082 *p = bufp; in rt_alloc() 1088 rt_free(void *bufp) in rt_free() argument 1090 if (bufp) in rt_free() [all …]
|
H A D | sysclass.c | 139 sys_enterclass(t, cid, parmsp, reqpcredp, bufp) in sys_enterclass() argument 144 void *bufp; 158 sys_fork(t, ct, bufp) in sys_fork() argument 161 void *bufp;
|
H A D | sysdc.c | 921 void *bufp) in sysdc_enterclass() argument 924 sysdc_t *sdc = bufp; in sysdc_enterclass() 1061 sysdc_fork(kthread_t *t, kthread_t *ct, void *bufp) in sysdc_fork() argument
|
H A D | class.c | 275 void *bufp = NULL; in parmsset() local 298 if (CL_ALLOC(&bufp, parmsp->pc_cid, KM_NOSLEEP) != 0) { in parmsset() 304 parmsp->pc_clparms, reqpcredp, bufp); in parmsset() 307 CL_FREE(parmsp->pc_cid, bufp); in parmsset()
|
/illumos-gate/usr/src/ucbcmd/tset/ |
H A D | tset.c | 457 auto char *bufp; in main() local 779 bufp = getenv("TERMCAP"); in main() 780 if (bufp && *bufp != '/') in main() 781 (void) strcpy(bufp-8, "NOTHING"); /* overwrite only "TERMCAP" */ in main() 852 bufp = buf; in main() 853 p = tgetstr("kb", &bufp); in main() 855 p = tgetstr("bc", &bufp); in main() 946 bufp = buf; in main() 947 if (tgetstr("pc", &bufp) != 0) in main() 960 bufp = buf; in main() [all …]
|
/illumos-gate/usr/src/stand/lib/fs/hsfs/ |
H A D | hsfsops.c | 461 char *bufp; in boot_hsfs_mountroot() local 505 bufp = head->fi_memp; in boot_hsfs_mountroot() 509 if (ISO_DESC_TYPE(bufp) != ISO_VD_PVD || in boot_hsfs_mountroot() 510 strncmp((char *)(ISO_std_id(bufp)), (char *)(ISO_ID_STRING), in boot_hsfs_mountroot() 511 ISO_ID_STRLEN) != 0 || ISO_STD_VER(bufp) != ISO_ID_VER) { in boot_hsfs_mountroot() 517 fsp->vol_size = ISO_VOL_SIZE(bufp); in boot_hsfs_mountroot() 518 fsp->lbn_size = ISO_BLK_SIZE(bufp); in boot_hsfs_mountroot() 521 fsp->vol_set_size = (ushort_t)ISO_SET_SIZE(bufp); in boot_hsfs_mountroot() 522 fsp->vol_set_seq = (ushort_t)ISO_SET_SEQ(bufp); in boot_hsfs_mountroot() 532 root_ino = IDE_EXT_LBN(ISO_root_dir(bufp)); in boot_hsfs_mountroot() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelVerify.c | 407 digest_buf_t *bufp = session_p->verify.context; in C_VerifyFinal() local 414 if (bufp == NULL || bufp->buf == NULL) { in C_VerifyFinal() 419 rv = C_Verify(hSession, bufp->buf, bufp->indata_len, in C_VerifyFinal()
|
H A D | kernelSession.c | 224 digest_buf_t *bufp; in kernel_get_operationstate() local 267 bufp = session_p->digest.context; in kernel_get_operationstate() 272 op_data_len += bufp->indata_len; in kernel_get_operationstate() 299 bcopy(bufp->buf, dst, bufp->indata_len); in kernel_get_operationstate() 354 digest_buf_t *bufp; in kernel_set_operationstate() local 395 bufp = session_p->digest.context; in kernel_set_operationstate() 396 bufp->indata_len = indata_len; in kernel_set_operationstate() 399 bcopy(src, bufp->buf, bufp->indata_len); in kernel_set_operationstate()
|
H A D | kernelSessionUtil.c | 296 digest_buf_t *bufp = session_p->digest.context; in kernel_delete_session() local 298 if (bufp->buf != NULL) { in kernel_delete_session() 300 bzero(bufp->buf, bufp->indata_len); in kernel_delete_session() 301 free(bufp->buf); in kernel_delete_session() 303 free(bufp); in kernel_delete_session() 313 digest_buf_t *bufp = session_p->sign.context; in kernel_delete_session() local 315 if (bufp->buf != NULL) { in kernel_delete_session() 317 bzero(bufp->buf, bufp->indata_len); in kernel_delete_session() 318 free(bufp->buf); in kernel_delete_session() 320 free(bufp); in kernel_delete_session() [all …]
|
H A D | kernelSign.c | 422 digest_buf_t *bufp = session_p->sign.context; in C_SignFinal() local 425 if (bufp == NULL || bufp->buf == NULL) { in C_SignFinal() 430 bufp->buf, bufp->indata_len, in C_SignFinal() 435 digest_buf_t *bufp = session_p->sign.context; in C_SignFinal() local 442 if (bufp == NULL || bufp->buf == NULL) { in C_SignFinal() 447 rv = C_Sign(hSession, bufp->buf, bufp->indata_len, in C_SignFinal()
|
H A D | kernelDigest.c | 621 digest_buf_t *bufp = session_p->digest.context; in C_DigestFinal() local 624 if (bufp == NULL || bufp->buf == NULL) { in C_DigestFinal() 629 NULL, bufp->buf, bufp->indata_len, in C_DigestFinal() 634 digest_buf_t *bufp = session_p->digest.context; in C_DigestFinal() local 641 if (bufp == NULL || bufp->buf == NULL) { in C_DigestFinal() 646 rv = C_Digest(hSession, bufp->buf, bufp->indata_len, in C_DigestFinal()
|
H A D | kernelEmulate.c | 70 digest_buf_t *bufp; in emulate_buf_init() local 76 bufp = opp->context; in emulate_buf_init() 78 if (bufp != NULL) { in emulate_buf_init() 79 bufp->indata_len = 0; in emulate_buf_init() 84 if (buflen > bufp->buf_len) { in emulate_buf_init() 85 free(bufp->buf); in emulate_buf_init() 86 bufp->buf = NULL; in emulate_buf_init() 89 bufp = opp->context = calloc(1, sizeof (digest_buf_t)); in emulate_buf_init() 90 if (bufp == NULL) { in emulate_buf_init() 95 if (bufp->buf == NULL) { in emulate_buf_init() [all …]
|
H A D | kernelEmulate.h | 56 digest_buf_t *bufp = (opp)->context; \ 57 if (bufp != NULL) { \ 58 bzero(bufp->buf, bufp->indata_len); \ 59 bufp->indata_len = 0; \
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | switch_utils.c | 526 char *bufp; local 546 shadow->sp_namp = bufp = buffer; 556 if ((bufp = strchr(bufp, ':')) == 0) { 562 *bufp++ = '\0'; 564 shadow->sp_pwdp = bufp; 566 if ((bufp = strchr(bufp, ':')) == 0) { 572 *bufp++ = '\0'; 573 p = bufp;
|
/illumos-gate/usr/src/lib/pam_modules/list/ |
H A D | list.c | 73 char *bufp; in pam_sm_acct_mgmt() local 250 bufp = buf; in pam_sm_acct_mgmt() 284 bufp++; in pam_sm_acct_mgmt() 288 bufp++; in pam_sm_acct_mgmt() 304 bufp++; in pam_sm_acct_mgmt() 312 if ((bufp[0] == '@') && (bufp[1] != '\0')) { in pam_sm_acct_mgmt() 313 bufp++; in pam_sm_acct_mgmt() 316 if (innetgr(bufp, rhost, username, in pam_sm_acct_mgmt() 323 userok = innetgr(bufp, NULL, username, in pam_sm_acct_mgmt() 329 hostok = innetgr(bufp, rhost, NULL, in pam_sm_acct_mgmt() [all …]
|
/illumos-gate/usr/src/lib/libsysevent/ |
H A D | libevchannel.c | 861 char buf[1024], *bufp = buf; /* stack buffer */ in sysevent_evc_getpropnvl() local 873 uargs.packednvl.name = (uint64_t)(uintptr_t)bufp; in sysevent_evc_getpropnvl() 895 bufp = buf2 = malloc(sz); in sysevent_evc_getpropnvl() 910 nvlist_unpack(bufp, uargs.packednvl.len, nvlp, 0) != 0) in sysevent_evc_getpropnvl()
|
/illumos-gate/usr/src/lib/libsrpt/common/ |
H A D | libsrpt.c | 457 char *bufp = in; in srpt_NormalizeGuid() local 464 if (strncasecmp(bufp, "eui.", 4) == 0) { in srpt_NormalizeGuid() 466 bufp += 4; in srpt_NormalizeGuid() 467 } else if (strncasecmp(bufp, "hca:", 4) == 0) { in srpt_NormalizeGuid() 469 bufp += 4; in srpt_NormalizeGuid() 477 guid = strtoull(bufp, &end, 16); in srpt_NormalizeGuid()
|
/illumos-gate/usr/src/lib/libpcp/common/ |
H A D | libpcp.c | 85 static int vldc_read(int fd, uint8_t *bufp, int size); 86 static int vldc_write(int fd, uint8_t *bufp, int size); 1375 vldc_write(int fd, uint8_t *bufp, int size) in vldc_write() argument 1393 if ((res = write(fd, bufp, left)) <= 0) { in vldc_write() 1398 bufp += res; in vldc_write() 1413 vldc_read(int fd, uint8_t *bufp, int size) in vldc_read() argument 1429 res = read(fd, bufp, left); in vldc_read() 1444 bufp += res; in vldc_read()
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | getipnodeby.c | 1267 nss_XbyY_buf_t *bufp; in __IPv6_alloc() local 1269 if ((bufp = malloc(sizeof (nss_XbyY_buf_t))) == NULL) in __IPv6_alloc() 1272 if ((bufp->result = malloc(ALIGN(sizeof (struct hostent)) + bufsz)) == in __IPv6_alloc() 1274 free(bufp); in __IPv6_alloc() 1277 bufp->buffer = (char *)(bufp->result) + sizeof (struct hostent); in __IPv6_alloc() 1278 bufp->buflen = bufsz; in __IPv6_alloc() 1279 return (bufp); in __IPv6_alloc() 1287 __IPv6_cleanup(nss_XbyY_buf_t *bufp) in __IPv6_cleanup() argument 1289 if (bufp == NULL) in __IPv6_cleanup() 1291 if (bufp->result != NULL) in __IPv6_cleanup() [all …]
|
/illumos-gate/usr/src/lib/libinetsvc/common/ |
H A D | inetsvc.c | 575 char *bufp, *cp; in valid_props() local 943 if ((bufp = strdup( in valid_props() 947 if ((cp = strpbrk(bufp, " \t")) != NULL) in valid_props() 950 if ((access(bufp, F_OK) == -1) && (errno == ENOENT)) in valid_props() 952 free(bufp); in valid_props() 964 &bufp, 10); in valid_props() 965 if ((errno != 0) || (*bufp != '\0') || in valid_props()
|
/illumos-gate/usr/src/lib/libhotplug/common/ |
H A D | libhotplug.c | 710 hp_pack(hp_node_t root, char **bufp, size_t *lenp) in hp_pack() argument 719 (void *)bufp, (void *)lenp); in hp_pack() 721 if ((root == NULL) || (bufp == NULL) || (lenp == NULL)) { in hp_pack() 727 *bufp = NULL; in hp_pack() 759 *bufp = buf; in hp_pack() 877 i_hp_pack_branch(hp_node_t root, char **bufp, size_t *lenp) in i_hp_pack_branch() argument 886 *bufp = NULL; in i_hp_pack_branch() 921 *bufp = buf; in i_hp_pack_branch() 936 i_hp_pack_node(hp_node_t node, char **bufp, size_t *lenp) in i_hp_pack_node() argument 974 *bufp = buf; in i_hp_pack_node() [all …]
|