Home
last modified time | relevance | path

Searched refs:mapfd (Results 1 – 9 of 9) sorted by relevance

/titanic_50/usr/src/lib/libproc/common/
H A DPscantext.c51 int mapfd; in Pscantext() local
85 if ((mapfd = open(mapfile, O_RDONLY)) < 0) { in Pscantext()
98 (void) close(mapfd); in Pscantext()
101 nmappings = pread(mapfd, prbuf, nmap * sizeof (prmap_t), 0L); in Pscantext()
106 (void) close(mapfd); in Pscantext()
116 (void) close(mapfd); in Pscantext()
H A DPcontrol.c105 int mapfd; in Pread_maps_live() local
112 if ((mapfd = open(mapfile, O_RDONLY)) < 0 || in Pread_maps_live()
113 fstat(mapfd, &statb) != 0 || in Pread_maps_live()
116 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 || in Pread_maps_live()
120 if (mapfd >= 0) in Pread_maps_live()
121 (void) close(mapfd); in Pread_maps_live()
125 (void) close(mapfd); in Pread_maps_live()
/titanic_50/usr/src/cmd/ptools/pmap/
H A Dpmap.c203 int mapfd; in main() local
363 if ((mapfd = open(buf, O_RDONLY)) < 0) { in main()
372 mapfd = -1; in main()
408 (void) close(mapfd); in main()
415 if (fstat64(mapfd, &statbuf) != 0) { in main()
417 (void) close(mapfd); in main()
472 if (fstat64(mapfd, &newbuf) != 0 || in main()
574 if (mapfd != -1) in main()
575 (void) close(mapfd); in main()
588 int mapfd, nmap, i, rc; in rmapping_iter() local
[all …]
/titanic_50/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c122 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 …]
/titanic_50/usr/src/cmd/truss/
H A Dfcall.c231 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 …]
/titanic_50/usr/src/cmd/backup/dump/
H A Ddumptape.c218 int mapfd; in alloctape() local
231 mapfd = open("/dev/zero", O_RDWR); in alloctape()
232 if (mapfd == -1) { in alloctape()
267 MAP_SHARED, mapfd, (off_t)0); in alloctape()
275 (void) close(mapfd); in alloctape()
H A Ddump.h124 int mapfd; /* block disk device descriptor for mmap */ variable
H A Ddumptraverse.c821 if ((cnt >= DEV_BSIZE) && (mapfd != -1)) {
834 maddr = mmap64(NULL, len, PROT_READ, MAP_SHARED, mapfd, mapoff);
H A Ddumpmain.c57 int mapfd = -1; /* if >= 0, file descriptor for mmap */ variable
749 mapfd = open(block, O_RDONLY, 0); in main()