• Home
  • Raw
  • Download

Lines Matching refs:fd

16   int fd;  in open_1()  local
17 fd = open(path, O_RDONLY); // no-warning in open_1()
18 if (fd > -1) in open_1()
19 close(fd); in open_1()
23 int fd; in open_2() local
25fd = open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than 3 argume… in open_2()
26 if (fd > -1) in open_2()
27 close(fd); in open_2()
31 int fd; in openat_2() local
33fd = openat(base_fd, path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'openat' with more … in openat_2()
34 if (fd > -1) in openat_2()
35 close(fd); in openat_2()
39 int fd; in open_3() local
40fd = open(path, O_RDONLY, NULL); // expected-warning{{The 3rd argument to 'open' is not an integer… in open_3()
41 if (fd > -1) in open_3()
42 close(fd); in open_3()
46 int fd; in openat_3() local
47fd = openat(base_fd, path, O_RDONLY, NULL); // expected-warning{{The 4th argument to 'openat' is n… in openat_3()
48 if (fd > -1) in openat_3()
49 close(fd); in openat_3()
54 int fd; in open_4() local
55 fd = open(path, O_RDONLY, ""); // expected-warning{{The 3rd argument to 'open' is not an integer}} in open_4()
56 if (fd > -1) in open_4()
57 close(fd); in open_4()
61 int fd; in open_5() local
65 fd = open(path, O_RDONLY, st); // expected-warning{{The 3rd argument to 'open' is not an integer}} in open_5()
66 if (fd > -1) in open_5()
67 close(fd); in open_5()
71 int fd; in open_6() local
75 fd = open(path, O_RDONLY, st.val); // no-warning in open_6()
76 if (fd > -1) in open_6()
77 close(fd); in open_6()
81 int fd; in open_7() local
82fd = open(path, O_RDONLY, &open); // expected-warning{{The 3rd argument to 'open' is not an intege… in open_7()
83 if (fd > -1) in open_7()
84 close(fd); in open_7()
88 int fd; in open_8() local
89fd = open(path, O_RDONLY, 0.0f); // expected-warning{{The 3rd argument to 'open' is not an integer… in open_8()
90 if (fd > -1) in open_8()
91 close(fd); in open_8()