/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | keyfile.c | 52 void *filebuf = NULL; in pkcs11_read_data() local 94 if ((filebuf = malloc(filesize)) == NULL) { in pkcs11_read_data() 102 if (read(fd, filebuf, filesize) != filesize) { in pkcs11_read_data() 111 char *marker = (char *)filebuf; in pkcs11_read_data() 141 *dbuf = filebuf; in pkcs11_read_data()
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_cmdsub.c | 621 unsigned char filebuf[FNSIZE]; local 758 lp = filebuf; 760 if (lp < &filebuf[sizeof filebuf - 2]) 786 if (strcmp(filebuf, savedfile) || !edited) { 787 unsigned char cmdbuf2[sizeof filebuf + 10]; 802 strcat(cmdbuf2, filebuf); 886 lp = filebuf; 888 if (lp < &filebuf[sizeof filebuf - 2]) 914 if (strcmp(filebuf, savedfile) || !edited) { 915 unsigned char cmdbuf2[sizeof filebuf + 10]; [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeystoreUtil.c | 1435 char filebuf[BUFSIZ]; in soft_keystore_setpin() local 1480 if (readn_nointr(fd, filebuf, KS_PKCS11_VER_SIZE) in soft_keystore_setpin() 1485 if (writen_nointr(tmp_ks_fd, filebuf, KS_PKCS11_VER_SIZE) in soft_keystore_setpin() 1506 if (readn_nointr(fd, filebuf, KS_COUNTER_SIZE) != KS_COUNTER_SIZE) { in soft_keystore_setpin() 1510 if (writen_nointr(tmp_ks_fd, filebuf, KS_COUNTER_SIZE) in soft_keystore_setpin() 1536 bzero(filebuf, sizeof (filebuf)); in soft_keystore_setpin() 1538 if (memcmp(crypt_salt, filebuf, KS_KEY_SALT_SIZE) == 0) { in soft_keystore_setpin() 2197 char filebuf[BUFSIZ]; in soft_keystore_put_new_obj() local 2236 if (readn_nointr(fd, filebuf, KS_PKCS11_VER_SIZE) in soft_keystore_put_new_obj() 2241 if (writen_nointr(tmp_ks_fd, filebuf, KS_PKCS11_VER_SIZE) in soft_keystore_put_new_obj() [all …]
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | device_info.c | 1371 char *filebuf; in process_fdi_file() local 1377 filebuf = NULL; in process_fdi_file() 1397 filebuf = (char *) malloc (filesize); in process_fdi_file() 1398 if (filebuf == NULL) { in process_fdi_file() 1402 (void) fread (filebuf, sizeof (char), filesize, file); in process_fdi_file() 1437 rc = XML_Parse (parser, filebuf, filesize, 1); in process_fdi_file() 1455 if (filebuf != NULL) in process_fdi_file() 1456 free (filebuf); in process_fdi_file()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_xfs.c | 64 #define filebuf ((char *)FSYS_BUF + 4096) macro 276 devread (xfs.daddr, xfs.fpos, sizeof(xfs_bmbt_rec_t), filebuf); in next_extent() 277 xfs.xt = (xfs_bmbt_rec_32_t *)filebuf; in next_extent()
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | generalop.c | 993 KMF_DATA filebuf = { 0, NULL }; in kmf_get_file_format() local 999 ret = kmf_read_input_file(NULL, filename, &filebuf); in kmf_get_file_format() 1003 if (filebuf.Length < 8) { in kmf_get_file_format() 1008 ret = kmf_get_data_format(&filebuf, fmt); in kmf_get_file_format() 1010 kmf_free_data(&filebuf); in kmf_get_file_format()
|
/illumos-gate/usr/src/cmd/more/ |
H A D | more.c | 975 char filebuf[128]; in command() local 1157 sprintf(filebuf, LOCAL_HELP, loc); in command() 1159 if ((strcmp(loc, "C") == 0) || (helpf = fopen (filebuf, "r")) == NULL) { in command()
|
/illumos-gate/usr/src/lib/libraidcfg/common/ |
H A D | raidcfg.c | 2505 char *filebuf; in obj_controller_act() local 2524 filebuf = malloc(statbuf.st_size); in obj_controller_act() 2525 if (filebuf == NULL) { in obj_controller_act() 2530 size = read(image_fd, filebuf, statbuf.st_size); in obj_controller_act() 2533 free(filebuf); in obj_controller_act() 2539 free(filebuf); in obj_controller_act() 2545 free(filebuf); in obj_controller_act() 2550 free(filebuf); in obj_controller_act() 2555 filebuf, size, plugin_err_str); in obj_controller_act()
|
/illumos-gate/usr/src/lib/libsqlite/tool/ |
H A D | lemon.c | 2284 char *filebuf; local 2306 filebuf = (char *)malloc( filesize+1 ); 2307 if( filebuf==0 ){ 2313 if( fread(filebuf,1,filesize,fp)!=filesize ){ 2316 free(filebuf); 2321 filebuf[filesize] = 0; 2325 for(cp=filebuf; (c= *cp)!=0; ){ 2413 free(filebuf); /* Release the buffer after parsing */
|
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/ |
H A D | openssl_spi.c | 787 BerValue filebuf; in readAltFormatPrivateKey() local 799 filebuf.bv_val = (char *)filedata->Data; in readAltFormatPrivateKey() 800 filebuf.bv_len = filedata->Length; in readAltFormatPrivateKey() 802 asn1 = kmfder_init(&filebuf); in readAltFormatPrivateKey()
|