/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pscantext.c | 49 int mapfd; in Pscantext() local 83 if ((mapfd = open(mapfile, O_RDONLY)) < 0) { in Pscantext() 96 (void) close(mapfd); in Pscantext() 99 nmappings = pread(mapfd, prbuf, nmap * sizeof (prmap_t), 0L); in Pscantext() 104 (void) close(mapfd); in Pscantext() 114 (void) close(mapfd); in Pscantext()
|
H A D | Pcontrol.c | 108 int mapfd; in Pread_maps_live() local 115 if ((mapfd = open(mapfile, O_RDONLY)) < 0 || in Pread_maps_live() 116 fstat(mapfd, &statb) != 0 || in Pread_maps_live() 119 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 || in Pread_maps_live() 123 if (mapfd >= 0) in Pread_maps_live() 124 (void) close(mapfd); in Pread_maps_live() 128 (void) close(mapfd); in Pread_maps_live()
|
/illumos-gate/usr/src/cmd/ptools/pmap/ |
H A D | pmap.c | 238 int mapfd; in main() local 398 if ((mapfd = open(buf, O_RDONLY)) < 0) { in main() 407 mapfd = -1; in main() 443 (void) close(mapfd); in main() 450 if (fstat64(mapfd, &statbuf) != 0) { in main() 452 (void) close(mapfd); in main() 509 if (fstat64(mapfd, &newbuf) != 0 || in main() 613 if (mapfd != -1) in main() 614 (void) close(mapfd); in main() 627 int mapfd, nmap, i, rc; in rmapping_iter() local [all …]
|
/illumos-gate/usr/src/cmd/stmsboot/ |
H A D | stmsboot_util.c | 122 int mapfd = 0; in main() local 159 mapfd = open(ondiskname, O_RDWR|O_CREAT|O_SYNC, S_IRUSR | S_IWUSR); in main() 160 if (mapfd < 0) { in main() 162 if ((mapfd = open(ondiskname, O_RDONLY)) < 0) { in main() 184 rv = read(mapfd, ondiskbuf, cachestat.st_size); in main() 231 (void) close(mapfd); in main() 239 (void) close(mapfd); in main() 250 (void) close(mapfd); in main() 256 rv = lseek(mapfd, 0, 0); in main() 261 (void) close(mapfd); in main() [all …]
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | fcall.c | 231 int mapfd; in establish_stacks() local 238 if ((mapfd = open(mapfile, O_RDONLY)) < 0 || in establish_stacks() 239 fstat(mapfd, &statb) != 0 || in establish_stacks() 242 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 || in establish_stacks() 249 if (mapfd >= 0) in establish_stacks() 250 (void) close(mapfd); in establish_stacks() 761 int mapfd; in find_lwp_stack() local 772 if ((mapfd = open(mapfile, O_RDONLY)) < 0 || in find_lwp_stack() 773 fstat(mapfd, &statb) != 0 || in find_lwp_stack() 776 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 || in find_lwp_stack() [all …]
|
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | dumptape.c | 191 int mapfd; in alloctape() local 204 mapfd = open("/dev/zero", O_RDWR); in alloctape() 205 if (mapfd == -1) { in alloctape() 240 MAP_SHARED, mapfd, (off_t)0); in alloctape() 248 (void) close(mapfd); in alloctape()
|
H A D | dump.h | 124 extern int mapfd; /* block disk device descriptor for mmap */
|
H A D | dumptraverse.c | 784 if ((cnt >= DEV_BSIZE) && (mapfd != -1)) { in bread() 797 maddr = mmap64(NULL, len, PROT_READ, MAP_SHARED, mapfd, mapoff); in bread()
|
H A D | dumpmain.c | 96 int mapfd = -1; /* if >= 0, file descriptor for mmap */ variable 788 mapfd = open(block, O_RDONLY, 0); in main()
|