Home
last modified time | relevance | path

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

/external/iptables/iptables/
Diptables-save.c39 FILE *procfile = NULL; in for_each_table() local
42 procfile = fopen("/proc/net/ip_tables_names", "re"); in for_each_table()
43 if (!procfile) in for_each_table()
46 while (fgets(tablename, sizeof(tablename), procfile)) { in for_each_table()
55 fclose(procfile); in for_each_table()
Dip6tables-save.c41 FILE *procfile = NULL; in for_each_table() local
44 procfile = fopen("/proc/net/ip6_tables_names", "re"); in for_each_table()
45 if (!procfile) in for_each_table()
48 while (fgets(tablename, sizeof(tablename), procfile)) { in for_each_table()
57 fclose(procfile); in for_each_table()
Dxtables.c298 int procfile; in get_modprobe() local
302 procfile = open(PROC_SYS_MODPROBE, O_RDONLY); in get_modprobe()
303 if (procfile < 0) in get_modprobe()
305 if (fcntl(procfile, F_SETFD, FD_CLOEXEC) == -1) { in get_modprobe()
314 switch (read(procfile, ret, PROCFILE_BUFSIZ)) { in get_modprobe()
320 close(procfile); in get_modprobe()
325 close(procfile); in get_modprobe()
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
DSDL_x11video.c286 char procfile[1024]; in get_classname() local
301 SDL_snprintf(procfile, SDL_arraysize(procfile), "/proc/%d/exe", getpid()); in get_classname()
303 SDL_snprintf(procfile, SDL_arraysize(procfile), "/proc/%d/file", getpid()); in get_classname()
307 linksize = readlink(procfile, linkfile, sizeof(linkfile)-1); in get_classname()