Home | History | Annotate | Download | only in fingerprint

Lines Matching defs:fp

98     FILE* fp = openForWrite(listener->fp_filename);
99 if (fp == NULL) {
110 if (fseek(fp, (idx) * sizeof(uint64_t), SEEK_SET) < 0) {
113 fclose(fp);
116 int ns = fwrite(&listener->secureid[idx], sizeof(uint64_t), 1, fp);
118 if (fseek(fp, (MAX_NUM_FINGERS + idx) * sizeof(uint64_t), SEEK_SET) < 0) {
121 fclose(fp);
124 int nf = fwrite(&listener->fingerid[idx], sizeof(uint64_t), 1, fp);
129 fclose(fp);
138 FILE* fp = fopen(filename, "r+"); // write but don't truncate
139 if (fp == NULL) {
140 fp = fopen(filename, "w");
141 if (fp) {
145 fwrite(&zero, sizeof(uint64_t), 1, fp);
149 fwrite(&zero, sizeof(uint64_t), 1, fp);
152 return fp;
157 FILE* fp = openForWrite(filename);
158 if (!fp) {
163 rewind(fp);
165 int na = fwrite(&authenid, sizeof(authenid), 1, fp);
172 fclose(fp);
177 FILE* fp = fopen(authid_filename, "r");
178 if (fp == NULL) {
186 rewind(fp);
188 int na = fread(pauthenid, sizeof(*pauthenid), 1, fp);
194 fclose(fp);
201 FILE* fp = fopen(listener->fp_filename, "r");
202 if (fp == NULL) {
211 fp);
213 fp);
222 fclose(fp);