/illumos-gate/usr/src/lib/libast/common/port/ |
H A D | astcopy.c | 56 off_t mapsize; local 70 mapsize = st.st_size - pos; 71 if (mapsize > MAPSIZE) mapsize = (mapsize > n && n > 0) ? n : MAPSIZE; 72 if (mapsize >= BUFSIZ * 2 && (mapbuf = (char*)mmap(NiL, mapsize, PROT_READ, MAP_SHARED, rfd, pos)) != ((caddr_t)-1)) 74 if (write(wfd, mapbuf, mapsize) != mapsize || lseek(rfd, mapsize, [all...] |
/illumos-gate/usr/src/lib/libcmdutils/common/ |
H A D | writefile.c | 47 int mapsize, munmapsize; local 105 mapsize = MAXMAPSIZE; 106 if (s1p->st_size < mapsize) mapsize = s1p->st_size; 107 munmapsize = mapsize; 112 if ((cp = mmap((caddr_t)NULL, mapsize, PROT_READ, 114 mapsize = 0; /* can't mmap today */ 116 mapsize = 0; 118 if (mapsize != 0) { 122 nbytes = write(fo, cp, mapsize); [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | copyf.c | 204 size_t mapsize = 0; local 222 mapsize = MAXMAPSIZE; 223 if (filesize < mapsize) { 224 mapsize = filesize; 234 munmapsize = mapsize; 238 cp = mmap((caddr_t)NULL, mapsize, PROT_READ, 241 mapsize = 0; /* can't mmap today */ 249 if (mapsize == 0) { 313 nbytes = write(a_dstFd, cp, mapsize); 321 if ((nbytes >= 0) && (nbytes != (ssize_t)mapsize)) { [all...] |
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | preenlib.c | 45 uint_t mapsize; /* size of `busymap' */ member in struct:driver 53 uint_t mapsize; /* size of `unitmap' */ member in struct:onedev 234 rc = (*drvp->choosefunc)(devp->mapsize, devp->unitmap, 235 drvp->mapsize, drvp->busymap); 349 dp->mapsize = 0; 366 devp->mapsize = 0; 379 if (devp->mapsize < newsize) { 380 devp->unitmap = devp->mapsize ? 388 (void) memset((char *)&devp->unitmap[devp->mapsize], 0, 389 (uint_t)((newsize - devp->mapsize) * sizeo [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | rmap.c | 35 rmallocmap(size_t mapsize) argument 43 rmallocmap_wait(size_t mapsize) argument
|
/illumos-gate/usr/src/cmd/cat/ |
H A D | cat.c | 337 off_t mapsize, munmapsize; local 344 mapsize = (off_t)MAXMAPSIZE; 345 if (statp->st_size < mapsize) 346 mapsize = statp->st_size; 347 munmapsize = mapsize; 352 bufferp = mmap((caddr_t)NULL, (size_t)mapsize, PROT_READ, 355 mapsize = 0; /* I guess we can't mmap today */ 357 mapsize = 0; /* can't mmap non-regular files */ 359 if (mapsize != 0) { 384 nitems = (int)mapsize; [all...] |
/illumos-gate/usr/src/cmd/backup/dump/ |
H A D | dumponline.c | 210 static size_t mapsize; /* amount of mapped data */ variable 244 mapsize = bytes + (offset - mapoffset); 245 if (mapsize > MAXMAPSIZE) 246 mapsize = MAXMAPSIZE; 247 while ((mapbase = mmap((caddr_t)0, mapsize, PROT_READ, 249 errno == ENOMEM && mapsize >= MINMAPSIZE) { 254 mapsize /= 2; /* exponential back-off */ 271 (void) madvise(mapbase, mapsize, MADV_SEQUENTIAL); 273 mapend = mapbase + (mapsize - 1); 311 (void) msync(mapbase, mapsize, MS_ASYN [all...] |
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | parse.c | 155 int mapsize, /* input size */ 165 if (*lastlen >= mapsize) { 154 _readbufline(char *mapbuf, int mapsize, char *buffer, int buflen, int *lastlen) argument
|
/illumos-gate/usr/src/lib/libast/common/disc/ |
H A D | sfdcdos.c | 43 int mapsize; member in struct:_dosdisc 67 if((n=dp->maptop++)>=dp->mapsize) 69 dp->mapsize *= 2; 70 if(!(dp->maptable=(struct map*)realloc((void*)dp->maptable,(dp->mapsize+1)*sizeof(struct map)))) 73 dp->mapsize *= 2; 175 dp->mapsize = MINMAP; 381 if(dp->mapsize)
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass5.c | 45 size_t basesize, sumsize, mapsize; local 105 mapsize = newcg->cg_nextfreeoff - newcg->cg_iusedoff; 190 (void) memset((void *)cg_inosused(newcg), 0, (size_t)mapsize); 193 sumsize + mapsize); 457 int mapsize, /* size of above two maps */ 469 for (i = 0; i < mapsize; i++) { 454 check_maps( uchar_t *map1, uchar_t *map2, int mapsize, int startvalue, char *name, int skip, int limit) argument
|
/illumos-gate/usr/src/cmd/acpi/acpidump/ |
H A D | osillumostbl.c | 370 ACPI_SIZE mapsize; local 416 mapsize = sizeof (ACPI_TABLE_RSDP); 419 mapsize = ACPI_HI_RSDP_WINDOW_SIZE; 422 mapp = AcpiOsMapMemory(physaddr, mapsize); 428 AcpiTbScanMemoryForRsdp(mapp, mapsize)); 430 AcpiOsUnmapMemory(mapp, mapsize); 437 AcpiOsUnmapMemory(mapp, mapsize);
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | zil.h | 120 #define ZIL_XVAT_SIZE(mapsize) \ 121 sizeof (lr_attr_t) + (sizeof (uint32_t) * (mapsize - 1)) + \
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | tape.c | 188 size_t mapsize; local 340 mapsize = (size_t)d_howmany(maxino > MAXINO ? maxino : MAXINO, NBBY); 341 beginmap = map = calloc((size_t)1, mapsize); 347 endmap = map + mapsize; 370 mapsize = (size_t)d_howmany(maxino, NBBY); 371 beginmap = map = calloc((size_t)1, mapsize); 377 endmap = map + mapsize; 1402 int64_t mapsize, increment; local 1419 mapsize = endmap - beginmap + increment; 1420 if (mapsize > UINT_MA [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_name.c | 789 ns_name_map(ns_nname_ct nname, size_t namelen, ns_namemap_t map, int mapsize) { argument 819 l = ns_name_map(nname + n, namelen - n, map, mapsize); 824 if (l >= mapsize) {
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | mp_platform_common.c | 332 int i, mpct_size, mapsize, retval = PSM_FAILURE; local 368 mapsize = MPFPS_RAM_WIN_LEN; 407 mapsize = MPFPS_ROM_WIN_LEN; 435 psm_unmap_phys(fptr, mapsize); 445 psm_unmap_phys(fptr, mapsize); /* unmap floating ptr struct */
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | thr.c | 320 size_t mapsize; local 356 mapsize = stksize + guardsize; 362 if (ulwp->ul_mapsiz == mapsize && 395 if ((stk = mmap(NULL, mapsize, stackprot, 402 (void) munmap(stk, mapsize); 405 ulwp->ul_mapsiz = mapsize; 407 ulwp->ul_stktop = (uintptr_t)stk + mapsize;
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | poll.c | 2909 size_t mapsize; local 2914 if ((mapsize = POLLMAPCHUNK) <= nfds) { 2915 mapsize = (nfds + POLLMAPCHUNK - 1) & ~(POLLMAPCHUNK - 1); 2917 pcp->pc_bitmap = kmem_zalloc((mapsize / BT_NBIPUL) * sizeof (ulong_t), 2919 pcp->pc_mapsize = mapsize;
|
/illumos-gate/usr/src/cmd/syslogd/ |
H A D | syslogd.c | 4324 size_t pagesize, mapsize; local 4343 mapsize = redzonesize + numstacks * (stacksize + redzonesize); 4344 stack_top = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, 4364 size_t pagesize, mapsize; local 4373 mapsize = redzonesize + numstacks * (stacksize + redzonesize); 4374 (void) munmap(cstack_ptr - mapsize, mapsize);
|