rof 151 maint/gnulib/lib/stackvma.c rof_open (struct rofile *rof, const char *filename) rof 160 maint/gnulib/lib/stackvma.c rof->position = 0; rof 161 maint/gnulib/lib/stackvma.c rof->eof_seen = 0; rof 164 maint/gnulib/lib/stackvma.c rof->buffer = rof->stack_allocated_buffer; rof 165 maint/gnulib/lib/stackvma.c size = sizeof (rof->stack_allocated_buffer); rof 166 maint/gnulib/lib/stackvma.c rof->auxmap = NULL; rof 167 maint/gnulib/lib/stackvma.c rof->auxmap_start = 0; rof 168 maint/gnulib/lib/stackvma.c rof->auxmap_end = 0; rof 174 maint/gnulib/lib/stackvma.c int n = read (fd, rof->buffer, size); rof 187 maint/gnulib/lib/stackvma.c rof->filled = n; rof 193 maint/gnulib/lib/stackvma.c n = read (fd, rof->buffer + rof->filled, size - rof->filled); rof 199 maint/gnulib/lib/stackvma.c if (n + MIN_LEFTOVER > size - rof->filled) rof 208 maint/gnulib/lib/stackvma.c rof->filled += n; rof 231 maint/gnulib/lib/stackvma.c if (rof->auxmap != NULL) rof 232 maint/gnulib/lib/stackvma.c munmap (rof->auxmap, rof->auxmap_length); rof 234 maint/gnulib/lib/stackvma.c rof->auxmap = (void *) mmap ((void *) 0, size, PROT_READ | PROT_WRITE, rof 236 maint/gnulib/lib/stackvma.c if (rof->auxmap == (void *) -1) rof 241 maint/gnulib/lib/stackvma.c rof->auxmap_length = size; rof 242 maint/gnulib/lib/stackvma.c rof->auxmap_start = (uintptr_t) rof->auxmap; rof 243 maint/gnulib/lib/stackvma.c rof->auxmap_end = rof->auxmap_start + size; rof 244 maint/gnulib/lib/stackvma.c rof->buffer = (char *) rof->auxmap; rof 258 maint/gnulib/lib/stackvma.c if (rof->auxmap != NULL) rof 259 maint/gnulib/lib/stackvma.c munmap (rof->auxmap, rof->auxmap_length); rof 266 maint/gnulib/lib/stackvma.c rof_peekchar (struct rofile *rof) rof 268 maint/gnulib/lib/stackvma.c if (rof->position == rof->filled) rof 270 maint/gnulib/lib/stackvma.c rof->eof_seen = 1; rof 273 maint/gnulib/lib/stackvma.c return (unsigned char) rof->buffer[rof->position]; rof 278 maint/gnulib/lib/stackvma.c rof_getchar (struct rofile *rof) rof 280 maint/gnulib/lib/stackvma.c int c = rof_peekchar (rof); rof 282 maint/gnulib/lib/stackvma.c rof->position++; rof 288 maint/gnulib/lib/stackvma.c rof_scanf_lx (struct rofile *rof, uintptr_t *valuep) rof 294 maint/gnulib/lib/stackvma.c int c = rof_peekchar (rof); rof 303 maint/gnulib/lib/stackvma.c rof_getchar (rof); rof 314 maint/gnulib/lib/stackvma.c rof_close (struct rofile *rof) rof 316 maint/gnulib/lib/stackvma.c if (rof->auxmap != NULL) rof 317 maint/gnulib/lib/stackvma.c munmap (rof->auxmap, rof->auxmap_length); rof 345 maint/gnulib/lib/stackvma.c struct rofile rof; rof 348 maint/gnulib/lib/stackvma.c if (rof_open (&rof, "/proc/self/maps") >= 0) rof 350 maint/gnulib/lib/stackvma.c uintptr_t auxmap_start = rof.auxmap_start; rof 351 maint/gnulib/lib/stackvma.c uintptr_t auxmap_end = rof.auxmap_end; rof 359 maint/gnulib/lib/stackvma.c if (!(rof_scanf_lx (&rof, &start) >= 0 rof 360 maint/gnulib/lib/stackvma.c && rof_getchar (&rof) == '-' rof 361 maint/gnulib/lib/stackvma.c && rof_scanf_lx (&rof, &end) >= 0)) rof 363 maint/gnulib/lib/stackvma.c while (c = rof_getchar (&rof), c != -1 && c != '\n') rof 383 maint/gnulib/lib/stackvma.c rof_close (&rof); rof 395 maint/gnulib/lib/stackvma.c struct rofile rof; rof 404 maint/gnulib/lib/stackvma.c if (rof_open (&rof, "/proc/curproc/map") >= 0) rof 406 maint/gnulib/lib/stackvma.c uintptr_t auxmap_start = rof.auxmap_start; rof 407 maint/gnulib/lib/stackvma.c uintptr_t auxmap_end = rof.auxmap_end; rof 415 maint/gnulib/lib/stackvma.c if (!(rof_getchar (&rof) == '0' rof 416 maint/gnulib/lib/stackvma.c && rof_getchar (&rof) == 'x' rof 417 maint/gnulib/lib/stackvma.c && rof_scanf_lx (&rof, &start) >= 0)) rof 419 maint/gnulib/lib/stackvma.c while (c = rof_peekchar (&rof), c == ' ' || c == '\t') rof 420 maint/gnulib/lib/stackvma.c rof_getchar (&rof); rof 422 maint/gnulib/lib/stackvma.c if (!(rof_getchar (&rof) == '0' rof 423 maint/gnulib/lib/stackvma.c && rof_getchar (&rof) == 'x' rof 424 maint/gnulib/lib/stackvma.c && rof_scanf_lx (&rof, &end) >= 0)) rof 426 maint/gnulib/lib/stackvma.c while (c = rof_getchar (&rof), c != -1 && c != '\n') rof 446 maint/gnulib/lib/stackvma.c rof_close (&rof); rof 171 maint/gnulib/lib/vma-iter.c rof_open (struct rofile *rof, const char *filename) rof 180 maint/gnulib/lib/vma-iter.c rof->position = 0; rof 181 maint/gnulib/lib/vma-iter.c rof->eof_seen = 0; rof 184 maint/gnulib/lib/vma-iter.c rof->buffer = rof->stack_allocated_buffer; rof 185 maint/gnulib/lib/vma-iter.c size = sizeof (rof->stack_allocated_buffer); rof 186 maint/gnulib/lib/vma-iter.c rof->auxmap = NULL; rof 187 maint/gnulib/lib/vma-iter.c rof->auxmap_start = 0; rof 188 maint/gnulib/lib/vma-iter.c rof->auxmap_end = 0; rof 194 maint/gnulib/lib/vma-iter.c int n = read (fd, rof->buffer, size); rof 207 maint/gnulib/lib/vma-iter.c rof->filled = n; rof 213 maint/gnulib/lib/vma-iter.c n = read (fd, rof->buffer + rof->filled, size - rof->filled); rof 219 maint/gnulib/lib/vma-iter.c if (n + MIN_LEFTOVER > size - rof->filled) rof 228 maint/gnulib/lib/vma-iter.c rof->filled += n; rof 251 maint/gnulib/lib/vma-iter.c if (rof->auxmap != NULL) rof 252 maint/gnulib/lib/vma-iter.c munmap (rof->auxmap, rof->auxmap_length); rof 254 maint/gnulib/lib/vma-iter.c rof->auxmap = (void *) mmap ((void *) 0, size, PROT_READ | PROT_WRITE, rof 256 maint/gnulib/lib/vma-iter.c if (rof->auxmap == (void *) -1) rof 261 maint/gnulib/lib/vma-iter.c rof->auxmap_length = size; rof 262 maint/gnulib/lib/vma-iter.c rof->auxmap_start = (unsigned long) rof->auxmap; rof 263 maint/gnulib/lib/vma-iter.c rof->auxmap_end = rof->auxmap_start + size; rof 264 maint/gnulib/lib/vma-iter.c rof->buffer = (char *) rof->auxmap; rof 278 maint/gnulib/lib/vma-iter.c if (rof->auxmap != NULL) rof 279 maint/gnulib/lib/vma-iter.c munmap (rof->auxmap, rof->auxmap_length); rof 286 maint/gnulib/lib/vma-iter.c rof_peekchar (struct rofile *rof) rof 288 maint/gnulib/lib/vma-iter.c if (rof->position == rof->filled) rof 290 maint/gnulib/lib/vma-iter.c rof->eof_seen = 1; rof 293 maint/gnulib/lib/vma-iter.c return (unsigned char) rof->buffer[rof->position]; rof 298 maint/gnulib/lib/vma-iter.c rof_getchar (struct rofile *rof) rof 300 maint/gnulib/lib/vma-iter.c int c = rof_peekchar (rof); rof 302 maint/gnulib/lib/vma-iter.c rof->position++; rof 308 maint/gnulib/lib/vma-iter.c rof_scanf_lx (struct rofile *rof, unsigned long *valuep) rof 314 maint/gnulib/lib/vma-iter.c int c = rof_peekchar (rof); rof 323 maint/gnulib/lib/vma-iter.c rof_getchar (rof); rof 334 maint/gnulib/lib/vma-iter.c rof_close (struct rofile *rof) rof 336 maint/gnulib/lib/vma-iter.c if (rof->auxmap != NULL) rof 337 maint/gnulib/lib/vma-iter.c munmap (rof->auxmap, rof->auxmap_length); rof 352 maint/gnulib/lib/vma-iter.c struct rofile rof; rof 355 maint/gnulib/lib/vma-iter.c if (rof_open (&rof, "/proc/self/maps") >= 0) rof 357 maint/gnulib/lib/vma-iter.c unsigned long auxmap_start = rof.auxmap_start; rof 358 maint/gnulib/lib/vma-iter.c unsigned long auxmap_end = rof.auxmap_end; rof 367 maint/gnulib/lib/vma-iter.c if (!(rof_scanf_lx (&rof, &start) >= 0 rof 368 maint/gnulib/lib/vma-iter.c && rof_getchar (&rof) == '-' rof 369 maint/gnulib/lib/vma-iter.c && rof_scanf_lx (&rof, &end) >= 0)) rof 373 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 378 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 381 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 384 maint/gnulib/lib/vma-iter.c while (c = rof_getchar (&rof), c != -1 && c != '\n') rof 404 maint/gnulib/lib/vma-iter.c rof_close (&rof); rof 416 maint/gnulib/lib/vma-iter.c struct rofile rof; rof 419 maint/gnulib/lib/vma-iter.c if (rof_open (&rof, "/proc/curproc/map") >= 0) rof 421 maint/gnulib/lib/vma-iter.c unsigned long auxmap_start = rof.auxmap_start; rof 422 maint/gnulib/lib/vma-iter.c unsigned long auxmap_end = rof.auxmap_end; rof 431 maint/gnulib/lib/vma-iter.c if (!(rof_getchar (&rof) == '0' rof 432 maint/gnulib/lib/vma-iter.c && rof_getchar (&rof) == 'x' rof 433 maint/gnulib/lib/vma-iter.c && rof_scanf_lx (&rof, &start) >= 0)) rof 435 maint/gnulib/lib/vma-iter.c while (c = rof_peekchar (&rof), c == ' ' || c == '\t') rof 436 maint/gnulib/lib/vma-iter.c rof_getchar (&rof); rof 438 maint/gnulib/lib/vma-iter.c if (!(rof_getchar (&rof) == '0' rof 439 maint/gnulib/lib/vma-iter.c && rof_getchar (&rof) == 'x' rof 440 maint/gnulib/lib/vma-iter.c && rof_scanf_lx (&rof, &end) >= 0)) rof 445 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 448 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 452 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 455 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 459 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 462 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 467 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 472 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 475 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 478 maint/gnulib/lib/vma-iter.c while (c = rof_getchar (&rof), c != -1 && c != '\n') rof 498 maint/gnulib/lib/vma-iter.c rof_close (&rof); rof 512 maint/gnulib/lib/vma-iter.c struct rofile rof; rof 527 maint/gnulib/lib/vma-iter.c if (rof_open (&rof, fname) >= 0) rof 529 maint/gnulib/lib/vma-iter.c unsigned long auxmap_start = rof.auxmap_start; rof 530 maint/gnulib/lib/vma-iter.c unsigned long auxmap_end = rof.auxmap_end; rof 539 maint/gnulib/lib/vma-iter.c if (!(rof_scanf_lx (&rof, &start) >= 0 rof 540 maint/gnulib/lib/vma-iter.c && rof_getchar (&rof) == '-' rof 541 maint/gnulib/lib/vma-iter.c && rof_scanf_lx (&rof, &end) >= 0)) rof 545 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 550 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 553 maint/gnulib/lib/vma-iter.c c = rof_getchar (&rof); rof 556 maint/gnulib/lib/vma-iter.c while (c = rof_getchar (&rof), c != -1 && c != '\n') rof 576 maint/gnulib/lib/vma-iter.c rof_close (&rof);