Lines Matching refs:fd
15 int fd; in open_1() local
16 fd = open(path, O_RDONLY); // no-warning in open_1()
17 if (fd > -1) in open_1()
18 close(fd); in open_1()
22 int fd; in open_2() local
24 …fd = open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than three ar… in open_2()
25 if (fd > -1) in open_2()
26 close(fd); in open_2()
30 int fd; in open_3() local
31 fd = open(path, O_RDONLY, NULL); // expected-warning{{Third argument to 'open' is not an integer}} in open_3()
32 if (fd > -1) in open_3()
33 close(fd); in open_3()
37 int fd; in open_4() local
38 fd = open(path, O_RDONLY, ""); // expected-warning{{Third argument to 'open' is not an integer}} in open_4()
39 if (fd > -1) in open_4()
40 close(fd); in open_4()
44 int fd; in open_5() local
48 fd = open(path, O_RDONLY, st); // expected-warning{{Third argument to 'open' is not an integer}} in open_5()
49 if (fd > -1) in open_5()
50 close(fd); in open_5()
54 int fd; in open_6() local
58 fd = open(path, O_RDONLY, st.val); // no-warning in open_6()
59 if (fd > -1) in open_6()
60 close(fd); in open_6()
64 int fd; in open_7() local
65 …fd = open(path, O_RDONLY, &open); // expected-warning{{Third argument to 'open' is not an integer}} in open_7()
66 if (fd > -1) in open_7()
67 close(fd); in open_7()
71 int fd; in open_8() local
72 fd = open(path, O_RDONLY, 0.0f); // expected-warning{{Third argument to 'open' is not an integer}} in open_8()
73 if (fd > -1) in open_8()
74 close(fd); in open_8()