Searched refs:procfile (Results 1 - 4 of 4) sorted by relevance

/external/iptables/iptables/
H A Dip6tables-save.c40 FILE *procfile = NULL; local
43 procfile = fopen("/proc/net/ip6_tables_names", "re");
44 if (!procfile)
47 while (fgets(tablename, sizeof(tablename), procfile)) {
56 fclose(procfile);
H A Diptables-save.c38 FILE *procfile = NULL; local
41 procfile = fopen("/proc/net/ip_tables_names", "re");
42 if (!procfile)
45 while (fgets(tablename, sizeof(tablename), procfile)) {
54 fclose(procfile);
/external/elfutils/libdwfl/
H A Dlinux-pid-attach.c50 FILE *procfile; local
54 procfile = fopen (buffer, "r");
55 if (procfile == NULL)
59 while (fgets (buffer, sizeof (buffer), procfile) != NULL)
66 fclose (procfile);
298 FILE *procfile; local
304 procfile = fopen (buffer, "r");
305 if (procfile == NULL)
319 while (getline (&line, &linelen, procfile) >= 0)
333 fclose (procfile);
[all...]
/external/iptables/libxtables/
H A Dxtables.c306 int procfile; local
310 procfile = open(PROC_SYS_MODPROBE, O_RDONLY);
311 if (procfile < 0)
313 if (fcntl(procfile, F_SETFD, FD_CLOEXEC) == -1) {
321 count = read(procfile, ret, PATH_MAX);
328 close(procfile);
333 close(procfile);

Completed in 810 milliseconds