Lines Matching refs:sfp
1759 FILE *sfp; /* generated control test file */ in test_driver() local
1852 sfp = create_test_file(name); in test_driver()
1884 if (sfp) { in test_driver()
1885 (void) fprintf(sfp, "#!/bin/ksh -p\n\n"); in test_driver()
1886 (void) fprintf(sfp, in test_driver()
1889 (void) fprintf(sfp, " %s", pargv[i]); in test_driver()
1890 (void) fprintf(sfp, "\n\n"); in test_driver()
1891 (void) fprintf(sfp, "\nrun_tests()\n{\n"); in test_driver()
1894 (void) fprintf(sfp, in test_driver()
1897 (void) fprintf(sfp, in test_driver()
1901 (void) fprintf(sfp, "\t\t./%s.%d\n", in test_driver()
1903 (void) fprintf(sfp, "\t\techo \"" in test_driver()
1906 (void) fprintf(sfp, "\tfi\n"); in test_driver()
1908 (void) fprintf(sfp, "}\n\nrun_tests\n"); in test_driver()
1909 if (fchmod(fileno(sfp), S_IRWXU|S_IRGRP|S_IROTH)) in test_driver()
1912 if (fclose(sfp) != 0) in test_driver()