Lines Matching defs:buf
183 char buf[4096];
184 snprintf(buf, sizeof(buf), "/proc/%u/maps", pid);
185 int fd = open(buf, O_RDONLY);
190 ssize_t rv = read(fd, buf, sizeof(buf));
197 assert(memcmp(buf, g_proc_pid_maps_vsyscall, len) == 0);
205 char buf[4096];
206 snprintf(buf, sizeof(buf), "/proc/%u/numa_maps", pid);
207 int fd = open(buf, O_RDONLY);
219 ssize_t rv = read(fd, buf, sizeof(buf));
228 char buf[4096];
229 snprintf(buf, sizeof(buf), "/proc/%u/smaps", pid);
230 int fd = open(buf, O_RDONLY);
242 ssize_t rv = read(fd, buf, sizeof(buf));
250 assert(memcmp(buf, g_proc_pid_maps_vsyscall, len) == 0);
284 char buf[4096];
285 snprintf(buf, sizeof(buf), "/proc/%u/smaps_rollup", pid);
286 int fd = open(buf, O_RDONLY);
298 ssize_t rv = read(fd, buf, sizeof(buf));
301 assert(memcmp(buf, g_smaps_rollup, sizeof(g_smaps_rollup) - 1) == 0);