Home
last modified time | relevance | path

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

/external/elfutils/src/libdwfl/
Dlinux-pid-attach.c46 FILE *procfile; in linux_proc_pid_is_stopped() local
50 procfile = fopen (buffer, "r"); in linux_proc_pid_is_stopped()
51 if (procfile == NULL) in linux_proc_pid_is_stopped()
55 while (fgets (buffer, sizeof (buffer), procfile) != NULL) in linux_proc_pid_is_stopped()
62 fclose (procfile); in linux_proc_pid_is_stopped()
292 FILE *procfile; in dwfl_linux_proc_attach() local
298 procfile = fopen (buffer, "r"); in dwfl_linux_proc_attach()
299 if (procfile == NULL) in dwfl_linux_proc_attach()
313 while (getline (&line, &linelen, procfile) >= 0) in dwfl_linux_proc_attach()
327 fclose (procfile); in dwfl_linux_proc_attach()
/external/iptables/iptables/
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()
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()
/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()
/external/libvncserver/x11vnc/
Dsolid.c629 char procfile[32]; in dbus_session() local
631 sprintf(procfile, "/proc/%d", pid); in dbus_session()
632 if (stat(procfile, &sb) == 0) { in dbus_session()