Home
last modified time | relevance | path

Searched refs:nfiles (Results 1 – 25 of 29) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/fork/
Dfork09.c61 static int mypid, nfiles; variable
97 for (nfiles = first; nfiles < OPEN_MAX; nfiles++) { in main()
98 sprintf(filname, "file%d.%d", nfiles, mypid); in main()
99 fildeses[nfiles] = fopen(filname, "a"); in main()
100 if (fildeses[nfiles] == NULL) { in main()
105 "file %d %s errno = %d", nfiles, in main()
113 tst_resm(TINFO, "Parent reporting %d files open", nfiles - 1); in main()
120 nfiles--; in main()
121 if (fclose(fildeses[nfiles]) == -1) { in main()
123 "#%d, errno = %d", nfiles, errno); in main()
[all …]
/third_party/flutter/skia/third_party/externals/libpng/contrib/libtests/
Dtimepng.c193 static int perform_one_test(FILE *fp, int nfiles, png_int_32 transforms) in perform_one_test() argument
203 for (i=0; i<nfiles; ++i) in perform_one_test()
367 int nfiles = 0; in main() local
401 nfiles = atoi(argv[3]); in main()
402 if (nfiles <= 0) in main()
412 nfiles &= PNG_UINT_31_MAX; in main()
511 if (argc > 1 && nfiles > 0) in main()
520 if (nfiles == INT_MAX) in main()
527 ++nfiles; in main()
531 else if (nfiles == 0) /* Read from stdin withoout --dissemble */ in main()
[all …]
/third_party/skia/third_party/externals/libpng/contrib/libtests/
Dtimepng.c193 static int perform_one_test(FILE *fp, int nfiles, png_int_32 transforms) in perform_one_test() argument
203 for (i=0; i<nfiles; ++i) in perform_one_test()
367 int nfiles = 0; in main() local
401 nfiles = atoi(argv[3]); in main()
402 if (nfiles <= 0) in main()
412 nfiles &= PNG_UINT_31_MAX; in main()
511 if (argc > 1 && nfiles > 0) in main()
520 if (nfiles == INT_MAX) in main()
527 ++nfiles; in main()
531 else if (nfiles == 0) /* Read from stdin withoout --dissemble */ in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/readdir/
Dreaddir01.c26 static int nfiles = 10; variable
34 for (i = 0; i < nfiles; i++) { in setup()
56 if (cnt == nfiles) { in verify_readdir()
57 tst_res(TPASS, "found all %d that were created", nfiles); in verify_readdir()
60 cnt > nfiles ? "more" : "less", nfiles, cnt); in verify_readdir()
/third_party/elfutils/libdw/
Ddwarf_getsrcfiles.c39 dwarf_getsrcfiles (Dwarf_Die *cudie, Dwarf_Files **files, size_t *nfiles) in dwarf_getsrcfiles() argument
80 res = INTUSE(dwarf_getsrcfiles) (&skeldie, files, nfiles); in dwarf_getsrcfiles()
103 if (nfiles != NULL) in dwarf_getsrcfiles()
104 *nfiles = cu->files->nfiles; in dwarf_getsrcfiles()
Ddwarf_macro_getsrcfiles.c37 Dwarf_Files **files, size_t *nfiles) in dwarf_macro_getsrcfiles() argument
47 *nfiles = 0; in dwarf_macro_getsrcfiles()
84 *nfiles = table->files->nfiles; in dwarf_macro_getsrcfiles()
Ddwarf_next_lines.c39 Dwarf_Files **srcfiles, size_t *nfiles, in dwarf_next_lines() argument
188 if (nfiles != NULL) in dwarf_next_lines()
191 *nfiles = (*srcfiles)->nfiles; in dwarf_next_lines()
193 *nfiles = 0; in dwarf_next_lines()
Ddwarf_getsrcdirs.c42 *result = (void *) &files->info[files->nfiles]; in dwarf_getsrcdirs()
Ddwarf_line_file.c42 if (line->file >= line->files->nfiles) in dwarf_line_file()
Ddwarf_filesrc.c41 if (file == NULL || idx >= file->nfiles) in dwarf_filesrc()
Ddwarf_linesrc.c43 if (line->file >= line->files->nfiles) in dwarf_linesrc()
Ddwarf_getsrclines.c574 size_t nfiles; in read_srclines() local
575 get_uleb128 (nfiles, linep, lineendp); in read_srclines()
577 if (nforms == 0 && nfiles != 0) in read_srclines()
582 if (nforms != 0 && nfiles > (size_t) (lineendp - linep) / nforms) in read_srclines()
587 for (unsigned int n = 0; n < nfiles; n++) in read_srclines()
1031 files->nfiles = nfilelist; in read_srclines()
Ddwarf_decl_file.c81 if (idx >= cu->files->nfiles) in dwarf_decl_file()
Dlibdw.h642 size_t *nfiles)
747 Dwarf_Files **srcfiles, size_t *nfiles,
990 Dwarf_Files **files, size_t *nfiles)
Ddwarf_getscopevar.c61 if (idx >= files->nfiles) in file_matches()
Ddwarf_getsrc_file.c92 if (lastfile >= line->files->nfiles) in dwarf_getsrc_file()
/third_party/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir09.c80 static int nfiles = 5; variable
111 nfiles = atoi(opt_nfiles); in main()
140 for (j = 0; j < nfiles; j++) { in runtest()
249 for (j = 0; j < nfiles; j += NCHILD) { in runtest()
333 for (j = 0; j < nfiles; j += NCHILD) { in dochild1()
369 for (j = 1; j < nfiles; j += NCHILD) { in dochild2()
404 for (j = 2; j < nfiles; j += NCHILD) { in dochild3()
418 for (j = 2; j < nfiles; j += NCHILD) { in dochild3()
/third_party/elfutils/tests/
Dnext-files.c54 size_t nfiles; in main() local
57 &files, &nfiles, NULL, NULL)) == 0) in main()
77 for (size_t i = 0; i < nfiles; ++i) in main()
Dget-files.c71 size_t nfiles; in main() local
72 if (dwarf_getsrcfiles (die, &files, &nfiles) != 0) in main()
95 for (size_t i = 0; i < nfiles; ++i) in main()
Ddwarf-getmacros.c62 size_t nfiles; in mac() local
63 if (dwarf_macro_getsrcfiles (dbg, macro, &files, &nfiles) < 0) in mac()
/third_party/ltp/testcases/kernel/fs/fsstress/
Dfsstress.c100 int nfiles; member
547 flist[i].nfiles = 0; in main()
563 if (ftp->nfiles == ftp->nslots) { in add_to_flist()
567 fep = &ftp->fents[ftp->nfiles++]; in add_to_flist()
724 if (slot != ftp->nfiles - 1) { in del_from_flist()
726 dcache_purge(ftp->fents[ftp->nfiles - 1].id); in del_from_flist()
727 ftp->fents[slot] = ftp->fents[--ftp->nfiles]; in del_from_flist()
729 ftp->nfiles--; in del_from_flist()
741 for (fep = flp->fents, efep = &fep[flp->nfiles]; fep < efep; fep++) { in dirid_to_fent()
817 for (j = 0, fep = flp->fents; j < flp->nfiles; j++, fep++) { in fix_parent()
[all …]
/third_party/elfutils/libdwfl/
Ddwfl_lineinfo.c53 if (unlikely (info->file >= info->files->nfiles)) in dwfl_lineinfo()
Ddwfl_module_getsrc_file.c92 if (unlikely (line->file >= line->files->nfiles)) in dwfl_module_getsrc_file()
/third_party/optimized-routines/math/test/
Dmathtest.c1541 int i, nfiles = 0; in main() local
1609 files[nfiles++] = "testfile"; in main()
1670 files[nfiles++] = p; in main()
1676 if (nfiles) { in main()
1677 for (i = 0; i < nfiles; i++) { in main()
/third_party/elfutils/src/
Dnm.c642 size_t nfiles; in get_local_names() local
643 if (dwarf_getsrcfiles (cudie, &files, &nfiles) != 0) in get_local_names()
666 if (dwarf_formudata (attr, &fileidx) != 0 || fileidx >= nfiles) in get_local_names()

12