Home
last modified time | relevance | path

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

/external/iptables/iptables/
Dip6tables-save.c36 FILE *procfile = NULL; in for_each_table() local
39 procfile = fopen("/proc/net/ip6_tables_names", "re"); in for_each_table()
40 if (!procfile) in for_each_table()
43 while (fgets(tablename, sizeof(tablename), procfile)) { in for_each_table()
52 fclose(procfile); in for_each_table()
Diptables-save.c34 FILE *procfile = NULL; in for_each_table() local
37 procfile = fopen("/proc/net/ip_tables_names", "re"); in for_each_table()
38 if (!procfile) in for_each_table()
41 while (fgets(tablename, sizeof(tablename), procfile)) { in for_each_table()
50 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/ltp/testcases/network/stress/ns-tools/
Dns-common.c93 char *procfile[] = { PROC_RMEM_MAX, PROC_WMEM_MAX }; in maximize_sockbuf() local
101 if ((fp = fopen(procfile[idx], "r")) == NULL) { in maximize_sockbuf()
102 fprintf(stderr, "Failed to open %s\n", procfile[idx]); in maximize_sockbuf()
107 procfile[idx]); in maximize_sockbuf()
116 procfile[idx]); in maximize_sockbuf()
/external/iptables/libxtables/
Dxtables.c325 int procfile; in get_modprobe() local
329 procfile = open(PROC_SYS_MODPROBE, O_RDONLY); in get_modprobe()
330 if (procfile < 0) in get_modprobe()
332 if (fcntl(procfile, F_SETFD, FD_CLOEXEC) == -1) { in get_modprobe()
340 count = read(procfile, ret, PATH_MAX); in get_modprobe()
347 close(procfile); in get_modprobe()
352 close(procfile); in get_modprobe()
/external/python/cpython3/Lib/test/support/
D__init__.py1672 self.procfile = '/proc/{pid}/statm'.format(pid=os.getpid())
1677 f = open(self.procfile, 'r')