Searched refs:procfile (Results 1 – 8 of 8) sorted by relevance
/third_party/iptables/iptables/ |
D | iptables-save.c | 49 FILE *procfile = NULL; in for_each_table() local 52 procfile = fopen(afinfo->proc_exists, "re"); in for_each_table() 53 if (!procfile) { in for_each_table() 61 while (fgets(tablename, sizeof(tablename), procfile)) { in for_each_table() 70 fclose(procfile); in for_each_table()
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/wayland/ |
D | SDL_waylandvideo.c | 67 char procfile[1024]; in get_classname() local 87 SDL_snprintf(procfile, SDL_arraysize(procfile), "/proc/%d/exe", getpid()); in get_classname() 89 SDL_snprintf(procfile, SDL_arraysize(procfile), "/proc/%d/file", in get_classname() 94 linksize = readlink(procfile, linkfile, sizeof(linkfile) - 1); in get_classname()
|
/third_party/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()
|
/third_party/flutter/skia/third_party/externals/sdl/src/core/linux/ |
D | SDL_fcitx.c | 97 char procfile[1024]; in GetAppName() local 102 SDL_snprintf(procfile, sizeof(procfile), "/proc/%d/exe", getpid()); in GetAppName() 104 SDL_snprintf(procfile, sizeof(procfile), "/proc/%d/file", getpid()); in GetAppName() 106 linksize = readlink(procfile, linkfile, sizeof(linkfile) - 1); in GetAppName()
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/x11/ |
D | SDL_x11video.c | 56 char procfile[1024]; in get_classname() local 70 SDL_snprintf(procfile, SDL_arraysize(procfile), "/proc/%d/exe", getpid()); in get_classname() 72 SDL_snprintf(procfile, SDL_arraysize(procfile), "/proc/%d/file", in get_classname() 77 linksize = readlink(procfile, linkfile, sizeof(linkfile) - 1); in get_classname()
|
/third_party/ntfs-3g/libfuse-lite/ |
D | fusermount.c | 520 static char procfile[256]; in check_perm() local 539 sprintf(procfile, "/proc/self/fd/%i", *mountpoint_fd); in check_perm() 540 *mntp = procfile; in check_perm()
|
/third_party/iptables/libxtables/ |
D | xtables.c | 373 int procfile; in get_modprobe() local 377 procfile = open(PROC_SYS_MODPROBE, O_RDONLY); in get_modprobe() 378 if (procfile < 0) in get_modprobe() 380 if (fcntl(procfile, F_SETFD, FD_CLOEXEC) == -1) { in get_modprobe() 388 count = read(procfile, ret, PATH_MAX); in get_modprobe() 395 close(procfile); in get_modprobe() 400 close(procfile); in get_modprobe()
|
/third_party/python/Lib/test/support/ |
D | __init__.py | 789 self.procfile = '/proc/{pid}/statm'.format(pid=os.getpid()) 795 f = open(self.procfile, 'r')
|