Home
last modified time | relevance | path

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

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