/src/sys/dev/wsfont/ |
wsfontdev.c | 83 struct wsdisplayio_fontinfo *fi = cookie; local in function:fontmatchfunc 88 if (fi->fi_fonts != NULL && fi->fi_buffersize > 0) { 93 offset = sizeof(struct wsdisplayio_fontdesc) * (fi->fi_numentries + 1); 94 if (offset > fi->fi_buffersize) { 95 fi->fi_fonts = NULL; 97 copyout(&fd, &fi->fi_fonts[fi->fi_numentries], 100 fi->fi_numentries++;
|
/src/games/gomoku/ |
bdinit.c | 113 frame_index fi = (*fip)++; local in function:init_spot_frame 114 sp->s_frame[r] = fi; 116 struct combostr *cbp = &frames[fi]; 140 frame_index fi = 0; local in function:init_board 147 init_spot_frame(sp, &fi); 167 * fi index of the frame in the global 'frames'
|
/src/tests/fs/common/ |
snapshot.c | 133 int di, fi; local in function:fs_activity 143 for (fi = 0; fi < 5; fi++) { 145 prefix, di, fi); 150 for (fi = 0; fi < 5; fi++) { 152 prefix, di, fi);
|
/src/sys/external/bsd/ipf/netinet/ |
ip_ipsec_pxy.c | 142 fr_info_t fi; local in function:ipf_p_ipsec_new 218 bcopy((char *)fin, (char *)&fi, sizeof(fi)); 219 fi.fin_fi.fi_p = IPPROTO_ESP; 220 fi.fin_fr = &softi->ipsec_fr; 221 fi.fin_data[0] = 0; 222 fi.fin_data[1] = 0; 225 fi.fin_flx &= ~(FI_TCPUDP|FI_STATE|FI_FRAG); 226 fi.fin_flx |= FI_IGNORE; 241 ipsec->ipsc_nat = ipf_nat_add(&fi, ipn, &ipsec->ipsc_nat 269 fr_info_t fi; local in function:ipf_p_ipsec_inout [all...] |
ip_raudio_pxy.c | 194 fr_info_t fi; local in function:ipf_p_raudio_in 280 bcopy((char *)fin, (char *)&fi, sizeof(fi)); 283 fi.fin_flx |= FI_IGNORE; 284 fi.fin_dp = (char *)tcp2; 285 fi.fin_fr = &raudiofr; 286 fi.fin_dlen = sizeof(*tcp2); 287 fi.fin_plen = fi.fin_hlen + sizeof(*tcp2); 298 fi.fin_data[0] = dp [all...] |
ip_rcmd_pxy.c | 141 fr_info_t fi; local in function:ipf_p_rcmd_portmsg 203 bcopy((char *)fin, (char *)&fi, sizeof(fi)); 204 fi.fin_flx |= FI_IGNORE; 205 fi.fin_data[0] = 0; 206 fi.fin_data[1] = sp; 207 fi.fin_src6 = nat->nat_ndst6; 208 fi.fin_dst6 = nat->nat_nsrc6; 213 nat2 = ipf_nat6_outlookup(&fi, NAT_SEARCH|IPN_TCP, 218 nat2 = ipf_nat6_inlookup(&fi, NAT_SEARCH|IPN_TCP [all...] |
ip_irc_pxy.c | 261 fr_info_t fi; local in function:ipf_p_irc_send 391 bcopy((void *)fin, (void *)&fi, sizeof(fi)); 392 fi.fin_data[0] = sp; 393 fi.fin_data[1] = fin->fin_data[1]; 401 bcopy((void *)fin, (void *)&fi, sizeof(fi)); 406 fi.fin_data[0] = ntohs(sp); 407 fi.fin_data[1] = 0; 408 fi.fin_dp = (char *)tcp2 [all...] |
ip_tftp_pxy.c | 281 fr_info_t fi; local in function:ipf_p_tftp_backchannel 293 bcopy((char *)fin, (char *)&fi, sizeof(fi)); 294 fi.fin_flx |= FI_IGNORE; 295 fi.fin_data[1] = 0; 303 fi.fin_fr = &tftpfr; 304 fi.fin_dp = (char *)&udp; 305 fi.fin_sport = 0; 306 fi.fin_dport = ntohs(ti->ti_rule->in_ndport); 307 fi.fin_dlen = sizeof(udp) [all...] |
ip_pptp_pxy.c | 199 fr_info_t fi; local in function:ipf_p_pptp_donatstate 210 bcopy((char *)fin, (char *)&fi, sizeof(fi)); 212 fi.fin_fi.fi_p = IPPROTO_GRE; 213 fi.fin_fr = &pptpfr; 216 fi.fin_data[0] = pptp->pptp_call[0]; 217 fi.fin_data[1] = pptp->pptp_call[1]; 219 fi.fin_data[0] = pptp->pptp_call[1]; 220 fi.fin_data[1] = pptp->pptp_call[0]; 224 fi.fin_flx &= ~(FI_TCPUDP|FI_STATE|FI_FRAG) [all...] |
ip_rpcb_pxy.c | 1112 fr_info_t fi; local in function:ipf_p_rpcb_getnat 1119 bcopy((char *)fin, (char *)&fi, sizeof(fi)); 1120 fi.fin_out = 0; 1121 fi.fin_p = proto; 1122 fi.fin_sport = 0; 1123 fi.fin_dport = port & 0xffff; 1124 fi.fin_flx |= FI_IGNORE; 1125 fi.fin_saddr = nat->nat_osrcaddr; 1126 fi.fin_daddr = nat->nat_odstaddr [all...] |
/src/tests/lib/libc/regex/ |
split.c | 240 char *fi[RNF]; member in struct:__anon7b9878e50108 332 if (strcmp(f, tests[n].fi[i]) != 0) { 335 i, fields[i], tests[n].fi[i]);
|
/src/usr.sbin/wsfontload/ |
wsfontload.c | 207 struct wsdisplayio_fontinfo fi; local in function:main 211 fi.fi_buffersize = 4096; 212 fi.fi_numentries = 0; 213 fi.fi_fonts = malloc(4096); 214 ret = ioctl(wsfd, WSDISPLAYIO_LISTFONTS, &fi); 215 if (fi.fi_fonts == NULL || ret != 0) { 218 for (i = 0; i < fi.fi_numentries; i++) { 219 printf("%s %dx%d\n", fi.fi_fonts[i].fd_name, 220 fi.fi_fonts[i].fd_width, fi.fi_fonts[i].fd_height) [all...] |
/src/libexec/comsat/ |
comsat.c | 284 FILE *fi; local in function:jkfprintf 288 if ((fi = fopen(name, "r")) == NULL) 291 (void)fseeko(fi, offset, SEEK_SET); 300 while (fgets(line, sizeof(line), fi) != NULL) { 314 (void)fclose(fi); 319 (void)fclose(fi); 331 (void)fclose(fi);
|
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/ |
tsan_clock_test.cc | 62 for (uptr fi = 0; fi < n; fi++) { local in function:__tsan::TEST 63 const uptr size = interesting_sizes[fi]; 245 for (uptr fi = 0; fi < n; fi++) { local in function:__tsan::TEST 246 for (uptr ti = fi + 1; ti < n; ti++) { 247 const uptr from = interesting_sizes[fi];
|
/src/usr.bin/fmt/ |
fmt.c | 103 FILE *fi; local in function:main 163 if ((fi = fopen(*argv, "r")) == NULL) { 168 fmt(fi); 169 (void)fclose(fi); 211 fmt(FILE *fi) 221 cp = fgetwln(fi, &len); 260 c = getwc(fi); 271 c = getwc(fi); 275 c = getwc(fi); 279 c = getwc(fi); [all...] |
/src/bin/cp/ |
utils.c | 88 progress(const struct finfo *fi, off_t written) 90 int pcent = (int)((100.0 * written) / fi->size); 94 fi->from, fi->to, (unsigned long long)written, 95 (unsigned long long)fi->size, pcent); 187 struct finfo fi; local in function:copy_file 189 fi.from = entp->fts_path; 190 fi.to = to.p_path; 191 fi.size = fs->st_size; 230 progress(&fi, ptotal) [all...] |
/src/usr.bin/config/ |
files.c | 98 struct files *fi; local in function:addfile 146 fi = ecalloc(1, sizeof *fi); 147 if (ht_insert(pathtab, path, fi)) { 148 free(fi); 149 if ((fi = ht_lookup(pathtab, path)) == NULL) 161 yyfile != fi->fi_where.w_srcfile) { 162 fi->fi_mkrule = rule; 166 cfgxerror(fi->fi_where.w_srcfile, fi->fi_where.w_srcline 243 struct files *fi, *last; local in function:checkfiles 262 struct files *fi = context; local in function:checkaux 297 struct files *fi, *ofi; local in function:fixfiles [all...] |
mkmakefile.c | 331 emitfile(FILE *fp, struct files *fi) 339 if (*fi->fi_path != '/') { 341 if (fi->fi_prefix != NULL) { 342 if (*fi->fi_prefix == '/') 344 prefix = fi->fi_prefix; 348 fprintf(fp, "%s%s%s%s", prologue, prefix, sep, fi->fi_path); 352 emitfilerel(FILE *fp, struct files *fi) 357 if (*fi->fi_path != '/') { 358 if (fi->fi_prefix != NULL) { 359 prefix = fi->fi_prefix 480 struct files *fi; local in function:emitattrkobjscb 518 struct files *fi; local in function:emitallfiles 542 struct files *fi; local in function:emitrules 657 struct files *const fi = selfiles[i]; local in function:emitappmkoptions [all...] |
mkheaders.c | 86 struct files *fi; local in function:mkheaders 91 TAILQ_FOREACH(fi, &allfiles, fi_next) { 92 if (fi->fi_flags & FI_HIDDEN) 94 if (fi->fi_flags & (FI_NEEDSCOUNT | FI_NEEDSFLAG) && 95 emitcnt(fi->fi_optf))
|
/src/sbin/tunefs/ |
tunefs.c | 81 int fi; variable in typeref:typename:int 235 fi = open(special, openflags); 237 fi = openpartition(special, openflags, device, sizeof(device)); 240 if (fi == -1) 242 active = !Fflag && isactive(fi, &sfs); 476 close(fi); 707 if (lseek(fi, offset, SEEK_SET) == -1) 709 if (write(fi, buffer, size) != size) 720 if (lseek(fi, offset, SEEK_SET) == -1) 722 if ((i = read(fi, buffer, cnt)) != cnt [all...] |
/src/usr.bin/error/ |
touch.c | 61 #define FILEITERATE(fi, lb, num) \ 62 for (fi = lb; fi <= num; fi++) 117 int fi; local in function:findfiles 143 fi = 1; 150 touchedfiles[fi] = false; 151 my_files[fi] = &my_errors[ei]; 152 fi++; 156 my_files[fi] = &my_errors[my_nerrors] 201 int fi; local in function:filenames 275 int fi; local in function:touchfiles 534 int fi; local in function:execvarg [all...] |
/src/usr.bin/mail/ |
support.c | 334 FILE *fi; local in function:source 339 if ((fi = Fopen(cp, "ref")) == NULL) { 345 (void)Fclose(fi); 357 input = fi;
|
mime_attach.c | 526 fput_body(FILE *fi, FILE *fo, struct Content *Cp) 534 enc(fi, fo, 0); 540 FILE *fi; local in function:fput_attachment 548 fi = Fopen(ap->a_name, "ref"); 549 if (fi == NULL) 559 fi = Fdopen(ap->a_fileno, "ref"); 560 if (fi == NULL) 568 fi = NULL; /* appease gcc */ 572 (fi = Fdopen(fd, "wef+")) == NULL) { 586 (void)fputc('>', fi); /* XXX - hide the headerline * [all...] |
/src/sys/external/bsd/drm2/dist/drm/nouveau/ |
nouveau_svm.c | 597 int fi, fn, pi, fill; local in function:nouveau_svm_fault 630 for (fi = 0, svmm = NULL; fi < buffer->fault_nr; fi++) { 631 if (!svmm || buffer->fault[fi]->inst != inst) { 633 nouveau_ivmm_find(svm, buffer->fault[fi]->inst); 635 inst = buffer->fault[fi]->inst; 638 buffer->fault[fi]->svmm = svmm; 649 for (fi = 0; fn = fi + 1, fi < buffer->fault_nr; fi = fn) [all...] |
/src/lib/librefuse/ |
refuse.c | 314 struct fuse_file_info *fi = rn->opencount > 0 ? &rn->file_info : NULL; local in function:fuse_getattr 320 ret = fuse_fs_getattr_v30(fuse->fs, path, &st, fi); 337 struct fuse_file_info *fi = rn->opencount > 0 ? &rn->file_info : NULL; local in function:fuse_setattr 350 ret = fuse_fs_chmod_v30(fuse->fs, path, mode, fi); 355 ret = fuse_fs_chown_v30(fuse->fs, path, uid, gid, fi); 369 ret = fuse_fs_utimens_v30(fuse->fs, path, tv, fi); 374 ret = fuse_fs_truncate_v30(fuse->fs, path, (off_t)va->va_size, fi); 387 const struct vattr *va, struct fuse_file_info *fi, 412 if (fi) 413 memcpy(&rn->file_info, fi, sizeof(struct fuse_file_info)) 577 struct fuse_file_info fi; local in function:puffs_fuse_node_create 774 struct fuse_file_info *fi = &rn->file_info; local in function:puffs_fuse_node_open 814 struct fuse_file_info *fi; local in function:puffs_fuse_node_close [all...] |