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

/illumos-gate/usr/src/lib/libproc/common/
H A DPscantext.c51 int mapfd; local
85 if ((mapfd = open(mapfile, O_RDONLY)) < 0) {
98 (void) close(mapfd);
101 nmappings = pread(mapfd, prbuf, nmap * sizeof (prmap_t), 0L);
106 (void) close(mapfd);
116 (void) close(mapfd);
H A DPcontrol.c107 int mapfd; local
114 if ((mapfd = open(mapfile, O_RDONLY)) < 0 ||
115 fstat(mapfd, &statb) != 0 ||
118 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 ||
122 if (mapfd >= 0)
123 (void) close(mapfd);
127 (void) close(mapfd);
/illumos-gate/usr/src/cmd/ptools/pmap/
H A Dpmap.c203 int mapfd; local
363 if ((mapfd = open(buf, O_RDONLY)) < 0) {
372 mapfd = -1;
408 (void) close(mapfd);
415 if (fstat64(mapfd, &statbuf) != 0) {
417 (void) close(mapfd);
472 if (fstat64(mapfd, &newbuf) != 0 ||
574 if (mapfd != -1)
575 (void) close(mapfd);
588 int mapfd, nma local
629 int mapfd, nmap, i, rc; local
[all...]
/illumos-gate/usr/src/cmd/stmsboot/
H A Dstmsboot_util.c122 int mapfd = 0; local
159 mapfd = open(ondiskname, O_RDWR|O_CREAT|O_SYNC, S_IRUSR | S_IWUSR);
160 if (mapfd < 0) {
162 if ((mapfd = open(ondiskname, O_RDONLY)) < 0) {
184 rv = read(mapfd, ondiskbuf, cachestat.st_size);
231 (void) close(mapfd);
239 (void) close(mapfd);
250 (void) close(mapfd);
256 rv = lseek(mapfd, 0, 0);
261 (void) close(mapfd);
[all...]
/illumos-gate/usr/src/cmd/truss/
H A Dfcall.c231 int mapfd; local
238 if ((mapfd = open(mapfile, O_RDONLY)) < 0 ||
239 fstat(mapfd, &statb) != 0 ||
242 (nmap = pread(mapfd, Pmap, statb.st_size, 0L)) <= 0 ||
249 if (mapfd >= 0)
250 (void) close(mapfd);
761 int mapfd; local
772 if ((mapfd = open(mapfile, O_RDONLY)) < 0 ||
773 fstat(mapfd, &statb) != 0 ||
776 (nmap = pread(mapfd, Pma
[all...]
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddump.h124 int mapfd; /* block disk device descriptor for mmap */ variable
H A Ddumptape.c218 int mapfd; local
231 mapfd = open("/dev/zero", O_RDWR);
232 if (mapfd == -1) {
267 MAP_SHARED, mapfd, (off_t)0);
275 (void) close(mapfd);
H A Ddumpmain.c57 int mapfd = -1; /* if >= 0, file descriptor for mmap */ variable
749 mapfd = open(block, O_RDONLY, 0);
H A Ddumptraverse.c821 if ((cnt >= DEV_BSIZE) && (mapfd != -1)) {
834 maddr = mmap64(NULL, len, PROT_READ, MAP_SHARED, mapfd, mapoff);

Completed in 86 milliseconds