/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | valloc.c | 32 static unsigned pagesize; local 33 if (!pagesize) 34 pagesize = getpagesize(); 35 return memalign(pagesize, size);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | valloc.c | 39 static unsigned pagesize; local 44 if (!pagesize) 45 pagesize = sysconf(_SC_PAGESIZE); 47 return (memalign(pagesize, size));
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | getpagesizes.c | 49 getpagesizes(size_t pagesize[], int nelem) argument 51 return (syscall(SYS_getpagesizes, 1, pagesize, nelem)); 55 getpagesizes2(size_t pagesize[], int nelem) argument 57 return (syscall(SYS_getpagesizes, 0, pagesize, nelem));
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_context.c | 59 size_t pagesize = mdb.m_pagesize; local 65 c->ctx_stacksize = pagesize * 4; 66 c->ctx_stack = mdb_alloc_align(c->ctx_stacksize, pagesize, UM_NOSLEEP);
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_context.c | 65 size_t pagesize = sysconf(_SC_PAGESIZE); local 76 c->ctx_stacksize = pagesize * 4;
|
/illumos-gate/usr/src/lib/libsqlite/tool/ |
H A D | showdb.c | 16 static int pagesize = 1024; variable 28 aData = malloc(pagesize); 30 lseek(db, (iPg-1)*pagesize, SEEK_SET); 31 read(db, aData, pagesize); 33 for(i=0; i<pagesize; i += 16){ 58 mxPage = sbuf.st_size/pagesize + 1;
|
H A D | showjournal.c | 16 static int pagesize = 1024; variable 28 aData = malloc(pagesize); 30 read(db, aData, pagesize); 32 for(i=0; i<pagesize; i += 16){
|
/illumos-gate/usr/src/lib/libc/i386/gen/ |
H A D | strcmp.c | 73 static int pagesize; local 102 if (pagesize == 0) 103 pagesize = _sysconfig(_CONFIG_PAGESIZE); 104 count = (pagesize - ((int)str1 & (pagesize - 1))) / 107 if (pagesize == 0) 108 pagesize = _sysconfig(_CONFIG_PAGESIZE); 109 count = (pagesize - ((int)str2 & (pagesize - 1))) /
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | spagectrl.c | 24 int ldap_create_page_control(LDAP *ld, unsigned int pagesize, struct berval *cookie, char isCritical, LDAPControl **output) argument 36 if (ber_printf(ber, "{io}", pagesize,
|
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | os.h | 22 size_t pagesize; /* Page size. */ member in struct:__io
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | sun4dep.c | 33 int pagesize = PAGESIZE; variable
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | vmem_mmap.c | 119 size_t pagesize = sysconf(_SC_PAGESIZE); local 124 "mmap_heap", NULL, 0, pagesize,
|
/illumos-gate/usr/src/lib/libmapmalloc/common/ |
H A D | textmem.c | 89 static int pagesize; variable 112 if (pagesize == 0) 113 pagesize = (int)sysconf(_SC_PAGESIZE); 133 size_t totpage = align(totsize, pagesize);
|
/illumos-gate/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_bh.c | 155 size_t len, pagesize; local 161 pagesize = mfp->stat.st_pagesize; 184 db_io.pagesize = db_io.bytes = pagesize; 192 if (nr < (ssize_t)pagesize) 210 if (nr != (ssize_t)pagesize) { 211 len = mfp->clear_len == 0 ? pagesize : mfp->clear_len; 217 if (len < pagesize) 218 memset(bhp->buf + len, 0xdb, pagesize - len); 355 db_io.pagesize [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | copyf.c | 252 int pagesize = getpagesize(); local 259 } else if (blocksize < pagesize) { 260 blocksize = pagesize; 265 buf = memalign((size_t)pagesize, blocksize);
|
/illumos-gate/usr/src/cmd/prtconf/ |
H A D | prtconf.c | 178 long pagesize, npages; local 360 pagesize = sysconf(_SC_PAGESIZE); 362 if (pagesize == -1 || npages == -1) { 371 int64_t ii = (int64_t)pagesize * npages;
|
/illumos-gate/usr/src/lib/scsi/libses/common/ |
H A D | ses_snap.c | 452 size_t pages, pagesize, pagelen; local 545 pagesize = PAGESIZE; 556 pages += (P2ROUNDUP(pp->ssp_len, pagesize) / 557 pagesize) + 1; 560 if ((scratch = mmap(NULL, pages * pagesize, 573 pages = P2ROUNDUP(pp->ssp_len, pagesize) / pagesize; 575 pp->ssp_mmap_len = pages * pagesize; 585 (void) munmap(pp->ssp_mmap_base + pages * pagesize, 586 pagesize); [all...] |
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | vfpops.c | 159 int pagesize = getpagesize(); local 256 vfp->_vfpSize = (statbuf.st_size + pagesize + 257 (pagesize-(statbuf.st_size % pagesize))); 270 p = (char *)memalign(pagesize, vfp->_vfpSize); 305 vfp->_vfpSize = statbuf.st_size+pagesize; 309 vfp->_vfpStart = memalign((size_t)pagesize, vfp->_vfpSize);
|
/illumos-gate/usr/src/cmd/ppgsz/ |
H A D | ppgsz.c | 475 /* Can't change pagesize for shared mappings. */ 539 * Do this by creating a 4M segment in the target process, set its pagesize 606 setup_mha(uint_t command, size_t pagesize, int dmodel) argument 612 gmha32.mha_pagesize = pagesize; 618 gmha.mha_pagesize = pagesize;
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | kgrep.c | 78 size_t pagesize = kg->kg_pagesize; local 81 uintptr_t *page_end = &page[pagesize / sizeof (uintptr_t)]; 90 base = P2ALIGN(base, pagesize); 91 lim = P2ROUNDUP(lim, pagesize); 93 for (addr = base; addr < lim; addr += pagesize) { 94 if (mdb_vread(page, pagesize, addr) == -1) 131 size_t pagesize = kg->kg_pagesize; \ 148 size = MIN(lim, P2END(addr, pagesize)) - addr; \ 226 size_t pagesize = kgrep_subr_pagesize(); local 300 kg.kg_page = mdb_alloc(pagesize, UM_SLEE [all...] |
/illumos-gate/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_hca.c | 181 size_t pagesize; local 225 pagesize = (size_t)sysconf(_SC_PAGESIZE); 226 if (pagesize == 0) { 267 MLNX_UMAP_UARPG_RSRC) * pagesize; 269 mapaddr = mmap64((void *)0, pagesize, PROT_READ | PROT_WRITE, 281 g_tavor_state[idx].uarpg_size = pagesize; 288 MLNX_UMAP_BLUEFLAMEPG_RSRC) * pagesize; 290 mapaddr = mmap64((void *)0, pagesize, PROT_READ | PROT_WRITE,
|
/illumos-gate/usr/src/lib/krb5/kdb/ |
H A D | kdb_log.c | 26 static int pagesize = 0; variable 42 if (!pagesize) 43 pagesize = getpagesize(); 45 start = ((ulong_t)upd) & (~(pagesize-1)); 48 (pagesize-1)) & (~(pagesize-1)); 65 if (!pagesize) 66 pagesize = getpagesize(); 68 if (msync((caddr_t)ulog, pagesize, MS_SYNC)) {
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/ |
H A D | mpool.h | 82 u_long pagesize; /* file page size */ member in struct:MPOOL
|
/illumos-gate/usr/src/uts/sun/io/ |
H A D | sbusmem.c | 51 uint_t pagesize; member in struct:sbusmem_unit 218 un->pagesize = ddi_ptob(devi, 1); 336 uint_t pagesize, msize; local 350 pagesize = un->pagesize; 369 msize = pagesize - (uio->uio_offset & (pagesize - 1));
|
/illumos-gate/usr/src/lib/libmalloc/common/ |
H A D | malloc.c | 294 static unsigned pagesize; local 298 if (!pagesize) 299 pagesize = sysconf(_SC_PAGESIZE); 301 return (memalign(pagesize, size));
|