Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libproc/common/
H A DPscantext.c49 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 DPcontrol.c109 int mapfd; in Pread_maps_live() local
116 if ((mapfd = open(mapfile, O_RDONLY)) < 0 || in Pread_maps_live()
117 fstat(mapfd, &statb) != 0 || in Pread_maps_live()
120 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 || in Pread_maps_live()
124 if (mapfd >= 0) in Pread_maps_live()
125 (void) close(mapfd); in Pread_maps_live()
129 (void) close(mapfd); in Pread_maps_live()
/illumos-gate/usr/src/cmd/ptools/pmap/
H A Dpmap.c203 int mapfd; in main() local
372 mapfd = -1; in main()
574 if (mapfd != -1) in main()
596 if ((mapfd = open(mapname, O_RDONLY)) < 0 || fstat(mapfd, &st) != 0) { in rmapping_iter()
597 if (mapfd >= 0) in rmapping_iter()
606 (void) close(mapfd); in rmapping_iter()
611 (void) close(mapfd); in rmapping_iter()
637 if ((mapfd = open(mapname, O_RDONLY)) < 0 || fstat(mapfd, &st) != 0) { in xmapping_iter()
638 if (mapfd >= 0) in xmapping_iter()
649 (void) close(mapfd); in xmapping_iter()
[all …]
/illumos-gate/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c122 int mapfd = 0; in main() local
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()
267 if (write(mapfd, ondiskbuf, newsz) != newsz) { in main()
[all …]
/illumos-gate/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()
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()
780 if (mapfd >= 0) in find_lwp_stack()
781 (void) close(mapfd); in find_lwp_stack()
[all …]
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumptape.c191 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 Ddump.h124 extern int mapfd; /* block disk device descriptor for mmap */
H A Ddumptraverse.c784 if ((cnt >= DEV_BSIZE) && (mapfd != -1)) { in bread()
797 maddr = mmap64(NULL, len, PROT_READ, MAP_SHARED, mapfd, mapoff); in bread()
H A Ddumpmain.c96 int mapfd = -1; /* if >= 0, file descriptor for mmap */ variable
788 mapfd = open(block, O_RDONLY, 0); in main()