Searched refs:procfile (Results 1 – 7 of 7) sorted by relevance
/external/iptables/iptables/ |
D | iptables-save.c | 34 FILE *procfile = NULL; in for_each_table() local 38 procfile = fopen(filename, "re"); in for_each_table() 39 if (!procfile) { in for_each_table() 47 while (fgets(tablename, sizeof(tablename), procfile)) { in for_each_table() 56 fclose(procfile); in for_each_table()
|
D | ip6tables-save.c | 36 FILE *procfile = NULL; in for_each_table() local 40 procfile = fopen(filename, "re"); in for_each_table() 41 if (!procfile) { in for_each_table() 49 while (fgets(tablename, sizeof(tablename), procfile)) { in for_each_table() 58 fclose(procfile); in for_each_table()
|
/external/elfutils/libdwfl/ |
D | linux-pid-attach.c | 52 FILE *procfile; in linux_proc_pid_is_stopped() local 56 procfile = fopen (buffer, "r"); in linux_proc_pid_is_stopped() 57 if (procfile == NULL) in linux_proc_pid_is_stopped() 61 while (fgets (buffer, sizeof (buffer), procfile) != NULL) in linux_proc_pid_is_stopped() 68 fclose (procfile); in linux_proc_pid_is_stopped() 380 FILE *procfile; in dwfl_linux_proc_attach() local 386 procfile = fopen (buffer, "r"); in dwfl_linux_proc_attach() 387 if (procfile == NULL) in dwfl_linux_proc_attach() 401 while (getline (&line, &linelen, procfile) >= 0) in dwfl_linux_proc_attach() 415 fclose (procfile); in dwfl_linux_proc_attach()
|
/external/bcc/src/cc/ |
D | bcc_proc.c | 415 FILE *procfile; in bcc_procutils_language() local 428 procfile = fopen(procfilename, "r"); in bcc_procutils_language() 429 if (!procfile) in bcc_procutils_language() 437 ret = fscanf(procfile, "%llx-%llx %s %llx %s %lld", &begin, &end, perm, in bcc_procutils_language() 439 if (!fgets(line, sizeof(line), procfile)) in bcc_procutils_language() 450 fclose(procfile); in bcc_procutils_language() 460 fclose(procfile); in bcc_procutils_language()
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-common.c | 93 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/ |
D | xtables.c | 325 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__.py | 1707 self.procfile = '/proc/{pid}/statm'.format(pid=os.getpid()) 1712 f = open(self.procfile, 'r')
|