/illumos-gate/usr/src/lib/libcrypt/common/ |
H A D | des_crypt.c | 314 char *iobuf; in _get_iobuf() local 318 iobuf = pthread_getspecific(*keyp); in _get_iobuf() 319 if (iobuf == NULL) { in _get_iobuf() 320 if (thr_setspecific(*keyp, (iobuf = malloc(size))) != 0) { in _get_iobuf() 321 if (iobuf) in _get_iobuf() 322 (void) free(iobuf); in _get_iobuf() 323 iobuf = NULL; in _get_iobuf() 326 return (iobuf); in _get_iobuf() 336 char *iobuf = _get_iobuf(&key, IOBUF_SIZE); in des_crypt() local 354 iobuf[i] = (char)c; in des_crypt() [all …]
|
/illumos-gate/usr/src/cmd/regcmp/ |
H A D | regcmp.c | 39 FILE *iobuf; variable 71 if ((iobuf = fopen(*argv, "r")) == NULL) { in main() 106 while (((c = getc(iobuf)) == '\n') || in main() 113 while (((*name++ = c = getc(iobuf)) != ' ') && in main() 117 while (((c = getc(iobuf)) == ' ') || (c == '\n')) in main() 131 while ((c = getc(iobuf)) != '\n') in main() 136 while (gotflg || (c = getc(iobuf)) != EOF) { in main() 142 switch (c = getc(iobuf)) { in main() 174 while (((c = getc(iobuf)) == '\n') || (c == ' ')) in main() 199 fclose(iobuf); in main() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/zh/common/ |
H A D | zh_TW-iso2022-7%zh_TW-euc.c | 98 IOBuf *iobuf; member 508 if ((ret->iobuf = xIOBuf()) == NULL) { in aTWNiconv() 521 this->iobuf->myin = *inbuf; in aisotoeuc() 522 this->iobuf->myout = *outbuf; in aisotoeuc() 523 this->iobuf->insize = *inbufsize; in aisotoeuc() 524 this->iobuf->outsize = *outbufsize; in aisotoeuc() 528 if ((ret = yescSeq(this->cntl, this->iobuf)) == -1) in aisotoeuc() 533 if (zconversion(this->conv, this->iobuf) == -1) in aisotoeuc() 537 *inbuf = this->iobuf->myin; in aisotoeuc() 538 *outbuf = this->iobuf->myout; in aisotoeuc() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/des/ |
H A D | afsstring2key.c | 370 char *iobuf) in afs_crypt() argument 398 iobuf[i] = c; in afs_crypt() 423 iobuf[i+2] = c; in afs_crypt() 425 iobuf[i+2] = 0; in afs_crypt() 426 if(iobuf[1]==0) in afs_crypt() 427 iobuf[1] = iobuf[0]; in afs_crypt() 428 return(iobuf); in afs_crypt()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | crypt.c | 119 static char *_unix_crypt(const char *pw, const char *salt, char *iobuf); 1061 _unix_crypt(const char *pw, const char *salt, char *iobuf) in _unix_crypt() argument 1067 block = iobuf + 16; in _unix_crypt() 1069 if (iobuf == 0) { in _unix_crypt() 1091 iobuf[i] = (char)c; in _unix_crypt() 1121 iobuf[i+2] = (char)c; in _unix_crypt() 1123 iobuf[i+2] = 0; in _unix_crypt() 1124 if (iobuf[1] == 0) in _unix_crypt() 1125 iobuf[1] = iobuf[0]; in _unix_crypt() 1126 return (iobuf); in _unix_crypt()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/ |
H A D | kt_file.c | 60 char iobuf[BUFSIZ]; /* so we can zap it later */ member 71 #define KTFILEBUFP(id) (((krb5_ktfile_data *)(id)->data)->iobuf) 1192 char iobuf[BUFSIZ]; in krb5_ktfileint_delete_entry() local 1223 memset(iobuf, 0, (size_t) len); in krb5_ktfileint_delete_entry() 1225 xfwrite(iobuf, 1, (size_t) len, KTFILEP(id)); in krb5_ktfileint_delete_entry() 1646 char iobuf[BUFSIZ]; in krb5_ktfileint_find_slot() local 1719 while ((size = xfread(iobuf, 1, sizeof(iobuf), KTFILEP(id)))) { in krb5_ktfileint_find_slot() 1720 if (size != sizeof(iobuf)) { in krb5_ktfileint_find_slot() 1732 memset(iobuf, 0, (size_t) size); in krb5_ktfileint_find_slot() 1733 xfwrite(iobuf, 1, (size_t) size, KTFILEP(id)); in krb5_ktfileint_find_slot()
|
/illumos-gate/usr/src/uts/common/io/tpm/ |
H A D | tpm.c | 1525 tpm->iobuf = kmem_zalloc((sizeof (uint8_t))*(tpm->bufsize), KM_SLEEP); in tpm_attach() 1590 ASSERT(tpm->iobuf != NULL); in tpm_cleanup() 1591 kmem_free(tpm->iobuf, (sizeof (uint8_t))*(tpm->bufsize)); in tpm_cleanup() 1831 ret = tis_recv_data(tpm, tpm->iobuf, tpm->bufsize); in tpm_read() 1840 size = load32(tpm->iobuf, 2); in tpm_read() 1852 ret = uiomove(tpm->iobuf, size, UIO_READ, uiop); in tpm_read() 1861 bzero(tpm->iobuf, tpm->bufsize); in tpm_read() 1913 ret = uiomove(tpm->iobuf, TPM_HEADER_SIZE, UIO_WRITE, uiop); in tpm_write() 1924 size = load32(tpm->iobuf, TPM_PARAMSIZE_OFFSET); in tpm_write() 1938 ret = uiomove(tpm->iobuf+TPM_HEADER_SIZE, size-TPM_HEADER_SIZE, in tpm_write() [all …]
|
H A D | tpm_ddi.h | 79 uint8_t *iobuf; member
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | trackio.h | 61 struct iobuf { struct
|
H A D | trackio.c | 49 static struct iobuf tio_iobs[NIOBS];
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | lofi.c | 1029 void *iobuf = bufaddr; in lofi_rdwr() local 1033 iobuf = kmem_alloc(len, KM_SLEEP); in lofi_rdwr() 1034 if (lofi_crypto(lsp, bp, bufaddr, iobuf, len, in lofi_rdwr() 1036 kmem_free(iobuf, len); in lofi_rdwr() 1044 bcopy(iobuf, bcopy_locn, len); in lofi_rdwr() 1047 error = vn_rdwr(UIO_WRITE, lsp->ls_vp, iobuf, len, in lofi_rdwr() 1053 kmem_free(iobuf, len); in lofi_rdwr()
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | cron.c | 2684 char iobuf[BUFSIZ]; in mail_result() local 2729 while ((nbytes = fread(iobuf, sizeof (char), BUFSIZ, st)) != 0) in mail_result() 2730 (void) fwrite(iobuf, sizeof (char), nbytes, mailpipe); in mail_result()
|