Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 10 of 10) sorted by relevance

/misc/
A Dtst-mntent-blank-corrupt.c29 FILE *fp; in do_test() local
31 fp = tmpfile (); in do_test()
32 fputs ("\n \n/foo\\040dir /bar\\040dir auto bind \t \n", fp); in do_test()
33 rewind (fp); in do_test()
36 getmntent (fp); in do_test()
38 endmntent (fp); in do_test()
A Dtst-mntent-blank-passno.c30 FILE *fp; in do_test() local
33 fp = tmpfile (); in do_test()
34 fputs ("/foo\\040dir /bar\\040dir auto bind \t \n", fp); in do_test()
35 rewind (fp); in do_test()
37 mnt = getmntent (fp); in do_test()
A Dtst-mntent.c12 FILE *fp; in do_test() local
29 fp = tmpfile (); in do_test()
30 if (fp == NULL) in do_test()
40 addmntent (fp, &mef); in do_test()
43 rewind (fp); in do_test()
46 if (fgets (buf, sizeof (buf), fp) == NULL) in do_test()
59 rewind (fp); in do_test()
62 mnt = getmntent (fp); in do_test()
A Dtst-mntent-autofs.c101 FILE *fp = xfopen (path, "w"); in do_test() local
103 fprintf (fp, "%s\n", test_cases[i].line); in do_test()
104 xfclose (fp); in do_test()
107 fp = setmntent (path, "r"); in do_test()
108 TEST_VERIFY_EXIT (fp != NULL); in do_test()
119 struct mntent *pme = getmntent_r (fp, &me, buffer, sizeof (buffer)); in do_test()
130 TEST_VERIFY (getmntent_r (fp, &me, buffer, sizeof (buffer)) == NULL); in do_test()
132 TEST_COMPARE (feof (fp), 1); in do_test()
133 TEST_COMPARE (ferror (fp), 0); in do_test()
135 TEST_COMPARE (endmntent (fp), 1); in do_test()
A Dtst-warn-wide.c45 FILE *fp = open_wmemstream (&buffer, &length); in one_test() local
46 TEST_VERIFY_EXIT (fp != NULL); in one_test()
48 stderr = fp; in one_test()
66 TEST_VERIFY_EXIT (!ferror (fp)); in one_test()
67 TEST_COMPARE (fclose (fp), 0); in one_test()
A Dtst-gethostid.c80 FILE *fp = xfopen (path, "w"); in do_test() local
81 xfclose (fp); in do_test()
95 fp = xfopen (path, "w"); in do_test()
97 fprintf (fp, "2001:db8::1 %s\n", hostname); in do_test()
98 xfclose (fp); in do_test()
A Dtst-mntent-escape.c57 FILE *fp = fmemopen (buf, sizeof (buf), "w+"); in do_test() local
59 if (fp == NULL) in do_test()
72 if (addmntent (fp, &curtest) != 0) in do_test()
80 rewind (fp); in do_test()
81 ret = getmntent (fp); in do_test()
95 fclose (fp); in do_test()
A Dgetusershell.c99 FILE *fp; in initshells() local
107 if ((fp = fopen(_PATH_SHELLS, "rce")) == NULL) in initshells()
109 if (__fstat64(fileno(fp), &statb) == -1) { in initshells()
111 (void)fclose(fp); in initshells()
130 while (fgets_unlocked(cp, flen - (cp - strings), fp) != NULL) { in initshells()
141 (void)fclose(fp); in initshells()
A Dfstab.c114 FILE *fp; in fstab_init() local
127 fp = state->fs_fp; in fstab_init()
128 if (fp != NULL) in fstab_init()
131 rewind (fp); in fstab_init()
135 fp = __setmntent (_PATH_FSTAB, "r"); in fstab_init()
136 if (fp == NULL) in fstab_init()
138 state->fs_fp = fp; in fstab_init()
A Derror.c86 # define putc(c, fp) _IO_putc (c, fp) argument

Completed in 21 milliseconds