/external/ipsec-tools/src/racoon/ |
H A D | backupsa.c | 101 FILE *fp; local 179 (fp = fopen(lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], "a")) == NULL) { 185 fprintf(fp, "%s\n", buf); 186 fclose(fp); 199 FILE *fp; local 211 fp = fopen(lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], "r"); 213 fp = NULL; 214 if (fp == NULL) { 223 for(line = 1; fgets(buf, sizeof(buf), fp) != NULL; line++) { 325 fclose(fp); 341 FILE *fp; local [all...] |
H A D | localconf.c | 179 FILE *fp; local 187 fp = fopen(lcconf->pathinfo[LC_PATHTYPE_PSK], "r"); 189 fp = NULL; 190 if (fp == NULL) { 197 while (fgets(buf, sizeof(buf), fp) != NULL) { 246 fclose(fp);
|
H A D | plainrsa-gen.c | 119 gen_rsa_key(FILE *fp, size_t bits, unsigned long exp) argument 136 fprintf(fp, "# : PUB 0s%s\n", pubkey64->v); 137 fprintf(fp, ": RSA\t{\n"); 138 fprintf(fp, "\t# RSA %zu bits\n", bits); 139 fprintf(fp, "\t# pubkey=0s%s\n", pubkey64->v); 140 fprintf(fp, "\tModulus: 0x%s\n", lowercase(BN_bn2hex(key->n))); 141 fprintf(fp, "\tPublicExponent: 0x%s\n", lowercase(BN_bn2hex(key->e))); 142 fprintf(fp, "\tPrivateExponent: 0x%s\n", lowercase(BN_bn2hex(key->d))); 143 fprintf(fp, "\tPrime1: 0x%s\n", lowercase(BN_bn2hex(key->p))); 144 fprintf(fp, "\tPrime 158 FILE *fp = stdout; local [all...] |
/external/libavc/test/encoder/ |
H A D | input.c | 119 IV_STATUS_T read_input(FILE *fp, iv_raw_buf_t *ps_raw_buf) argument 137 bytes = fread(pu1_buf, sizeof(UWORD8), wd, fp); 161 bytes = fread(pu1_buf, sizeof(UWORD8), wd, fp); 174 IV_STATUS_T dump_input(FILE *fp, iv_raw_buf_t *ps_raw_buf) argument 192 bytes = fwrite(pu1_buf, sizeof(UWORD8), wd, fp); 216 bytes = fwrite(pu1_buf, sizeof(UWORD8), wd, fp);
|
/external/libcxx/test/std/utilities/function.objects/refwrap/refwrap.invoke/ |
H A D | invoke.pass.cpp | 56 void (*fp)(int) = f_void_1; 57 std::reference_wrapper<void (*)(int)> r1(fp); 74 void (A_void_1::*fp)() = &A_void_1::mem1; 75 std::reference_wrapper<void (A_void_1::*)()> r1(fp); 87 void (A_void_1::*fp)() const = &A_void_1::mem2; 88 std::reference_wrapper<void (A_void_1::*)() const> r1(fp); 131 int (*fp)(int) = f_int_1; 132 std::reference_wrapper<int (*)(int)> r1(fp); 145 int (A_int_1::*fp)() = &A_int_1::mem1; 146 std::reference_wrapper<int (A_int_1::*)()> r1(fp); 163 int A_int_1::*fp = &A_int_1::data_; member in class:A_int_1 [all...] |
/external/libdivsufsort/examples/ |
H A D | bwt.c | 60 write_int(FILE *fp, saidx_t n) { argument 64 return fwrite(c, sizeof(unsigned char), 4, fp); 80 FILE *fp, *ofp; local 108 if(fopen_s(&fp, fname = argv[i], "rb") != 0) { 110 if((fp = LFS_FOPEN(fname = argv[i], "rb")) == NULL) { 124 fp = stdin; 155 if(LFS_FSEEK(fp, 0, SEEK_END) == 0) { 156 n = LFS_FTELL(fp); 157 rewind(fp); 184 for(n = 0; 0 < (m = fread(T, sizeof(sauchar_t), blocksize, fp)); [all...] |
H A D | unbwt.c | 60 read_int(FILE *fp, saidx_t *n) { argument 62 size_t m = fread(c, sizeof(unsigned char), 4, fp); 82 FILE *fp, *ofp; local 101 if(fopen_s(&fp, fname = argv[1], "rb") != 0) { 103 if((fp = LFS_FOPEN(fname = argv[1], "rb")) == NULL) { 117 fp = stdin; 147 if(read_int(fp, &blocksize) != 4) { 163 for(n = 0; (m = read_int(fp, &pidx)) != 0; n += m) { 165 if((m != 4) || ((m = fread(T, sizeof(sauchar_t), blocksize, fp)) == 0)) { 168 (ferror(fp) || !feo [all...] |
/external/libjpeg-turbo/ |
H A D | rdswitch.c | 91 FILE * fp; local 96 if ((fp = fopen(filename, "r")) == NULL) { 102 while (read_text_integer(fp, &val, &termchar)) { /* read 1st element of table */ 105 fclose(fp); 110 if (! read_text_integer(fp, &val, &termchar)) { 112 fclose(fp); 129 fclose(fp); 133 fclose(fp); 187 FILE * fp; local 194 if ((fp [all...] |
/external/libopus/silk/ |
H A D | debug.c | 85 FILE *fp; local 106 fp = fopen(file_name, "w"); 107 fprintf(fp, " min avg %% max count\n"); 110 fprintf(fp, "%-28s", silk_Timer_tags[k]); 112 fprintf(fp, " %-27s", silk_Timer_tags[k]); 114 fprintf(fp, " %-26s", silk_Timer_tags[k]); 116 fprintf(fp, " %-25s", silk_Timer_tags[k]); 118 fprintf(fp, " %-24s", silk_Timer_tags[k]); 121 fprintf(fp, "%8.2f", (1e6 * (silk_max_64(silk_Timer_min[k] - del, 0))) / lpFrequency.QuadPart); 122 fprintf(fp, " 136 FILE *fp; local [all...] |
/external/libpng/contrib/examples/ |
H A D | iccfrompng.c | 37 extract(FILE *fp, png_uint_32 *proflen) argument 58 png_init_io(png_ptr, fp); 94 FILE *fp = fopen(filename, "rb"); local 96 if (fp != NULL) 99 png_bytep profile = extract(fp, &proflen);
|
/external/libvncserver/common/ |
H A D | vncauth.c | 75 FILE *fp; local 79 if ((fp = fopen(fname,"w")) == NULL) return 1; 83 fchmod(fileno(fp), S_IRUSR|S_IWUSR); 103 putc(encryptedPasswd[i], fp); 106 fclose(fp); 120 FILE *fp; local 124 if ((fp = fopen(fname,"r")) == NULL) { 130 ch = getc(fp); 132 fclose(fp); 139 fclose(fp); [all...] |
/external/libxml2/doc/examples/ |
H A D | testWriter.c | 343 FILE *fp; local 603 fp = fopen(file, "w"); 604 if (fp == NULL) { 609 fprintf(fp, "%s", (const char *) buf->content); 611 fclose(fp);
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_test_printf.c | 46 write_tsv_header(FILE *fp) argument 48 fprintf(fp, 52 fflush(fp); 89 test_printf(unsigned verbose, FILE *fp, argument 116 test_all(unsigned verbose, FILE *fp) argument 120 test_printf(verbose, fp, NULL); 127 test_some(unsigned verbose, FILE *fp, argument 130 return test_all(verbose, fp); 135 test_single(unsigned verbose, FILE *fp) argument
|
/external/mesa3d/src/gallium/drivers/nv30/ |
H A D | nv30_fragprog.c | 37 struct nv30_fragprog *fp = nv30->fragprog.program; local 43 if (unlikely(!fp->buffer)) { 44 fp->buffer = pipe_buffer_create(pipe->screen, 0, 0, fp->insn_len * 4); 47 map = pipe_buffer_map(pipe, fp->buffer, PIPE_TRANSFER_WRITE, &transfer); 49 memcpy(map, fp->insn, fp->insn_len * 4); 51 for (i = 0; i < fp->insn_len; i++) 52 *map++ = (fp->insn[i] >> 16) | (fp 65 struct nv30_fragprog *fp = nv30->fragprog.program; local 134 struct nv30_fragprog *fp = CALLOC_STRUCT(nv30_fragprog); local 146 struct nv30_fragprog *fp = hwcso; local [all...] |
H A D | nv30_vertprog.c | 58 struct nv30_fragprog *fp = nv30->fragprog.program; local 64 if (memcmp(vp->texcoord, fp->texcoord, sizeof(vp->texcoord))) { 67 memcpy(vp->texcoord, fp->texcoord, sizeof(vp->texcoord)); 212 PUSH_DATA (push, vp->or | fp->vp_or);
|
/external/mesa3d/src/gallium/drivers/nvc0/ |
H A D | nvc0_shader_state.c | 108 struct nvc0_program *fp = nvc0->fragprog; local 110 if (!nvc0_program_validate(nvc0, fp)) 112 nvc0_program_update_context_state(nvc0, fp, 4); 114 if (fp->fp.early_z != nvc0->state.early_z_forced) { 115 nvc0->state.early_z_forced = fp->fp.early_z; 116 IMMED_NVC0(push, NVC0_3D(FORCE_EARLY_FRAGMENT_TESTS), fp->fp.early_z); 121 PUSH_DATA (push, fp [all...] |
/external/opencv3/3rdparty/libtiff/ |
H A D | tif_swab.c | 141 TIFFSwabFloat(float* fp) argument 143 register unsigned char* cp = (unsigned char*) fp; 153 TIFFSwabArrayOfFloat(register float* fp, tmsize_t n) argument 160 cp = (unsigned char *)fp; 163 fp++;
|
/external/opencv3/samples/cpp/ |
H A D | delaunay2.cpp | 19 static void draw_subdiv_point( Mat& img, Point2f fp, Scalar color ) argument 21 circle( img, fp, 3, color, FILLED, LINE_8, 0 ); 54 static void locate_point( Mat& img, Subdiv2D& subdiv, Point2f fp, Scalar active_color ) argument 58 subdiv.locate(fp, e0, vertex); 74 draw_subdiv_point( img, fp, active_color ); 122 Point2f fp( (float)(rand()%(rect.width-10)+5), 125 locate_point( img, subdiv, fp, active_facet_color ); 131 subdiv.insert(fp);
|
/external/pdfium/third_party/libtiff/ |
H A D | tif_swab.c | 141 TIFFSwabFloat(float* fp) argument 143 register unsigned char* cp = (unsigned char*) fp; 153 TIFFSwabArrayOfFloat(register float* fp, tmsize_t n) argument 160 cp = (unsigned char *)fp; 163 fp++;
|
/external/protobuf/gtest/test/ |
H A D | gtest-filepath_test.cc | 606 FilePath fp; local 607 EXPECT_STREQ("", fp.c_str()); 611 const FilePath fp("spicy"); 612 EXPECT_STREQ("spicy", fp.c_str()); 614 const FilePath fp_copy(fp); 619 const FilePath fp(String("cider")); 620 EXPECT_STREQ("cider", fp.c_str());
|
/external/selinux/libselinux/src/ |
H A D | init.c | 61 FILE *fp = NULL; local 68 fp = fopen("/proc/filesystems", "r"); 69 if (!fp) { 74 __fsetlocking(fp, FSETLOCKING_BYCALLER); 76 num = getline(&buf, &len, fp); 82 num = getline(&buf, &len, fp); 86 fclose(fp); 102 FILE *fp=NULL; local 119 fp = fopen("/proc/mounts", "r"); 120 if (!fp) [all...] |
H A D | label_support.c | 121 * @fp: file pointer for fread(3) or NULL if not. 129 int hidden digest_add_specfile(struct selabel_digest *digest, FILE *fp, argument 151 if (fp) { 152 rewind(fp); 154 1, buf_len, fp) != buf_len) 157 rewind(fp);
|
/external/selinux/libselinux/utils/ |
H A D | selabel_digest.c | 30 FILE *fp; local 35 fp = popen(cmd, "r"); 36 if (!fp) { 42 while (fgets(files_digest, sizeof(files_digest) - 1, fp) != NULL) 56 pclose(fp);
|
/external/selinux/policycoreutils/semodule_expand/ |
H A D | semodule_expand.c | 45 FILE *fp, *outfile; local 123 fp = fopen(basename, "r"); 124 if (!fp) { 129 sepol_policy_file_set_fp(pf, fp); 136 fclose(fp);
|
/external/selinux/policycoreutils/semodule_link/ |
H A D | semodule_link.c | 38 FILE *fp = NULL; local 50 fp = fopen(filename, "r"); 51 if (!fp) { 56 sepol_policy_file_set_fp(pf, fp); 66 fclose(fp); 72 if (fp) 73 fclose(fp);
|