/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | calloc.c | 43 void *mp; local 57 return ((mp = malloc(total)) ? memset(mp, 0, total) : mp);
|
/osnet-11/usr/src/lib/libmapmalloc/common/ |
H A D | calloc.c | 37 void *mp; local 44 mp = malloc(total); 45 if (mp == NULL) 47 (void) memset(mp, 0, total); 48 return (mp);
|
/osnet-11/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_fput.c | 22 #include "mp.h" 37 MPOOL *mp; local 41 mp = dbmp->mp; 89 ++mp->stat.st_page_clean; 90 --mp->stat.st_page_dirty; 94 --mp->stat.st_page_clean; 95 ++mp->stat.st_page_dirty; 123 SH_TAILQ_REMOVE(&mp->bhq, bhp, q, __bh); 125 SH_TAILQ_INSERT_HEAD(&mp [all...] |
H A D | mp_fset.c | 22 #include "mp.h" 37 MPOOL *mp; local 41 mp = dbmp->mp; 69 ++mp->stat.st_page_clean; 70 --mp->stat.st_page_dirty; 74 --mp->stat.st_page_clean; 75 ++mp->stat.st_page_dirty;
|
H A D | mp_fget.c | 23 #include "mp.h" 39 MPOOL *mp; local 46 mp = dbmp->mp; 98 bucket = BUCKET(mp, mf_offset, *pgnoaddr); 116 bucket = BUCKET(mp, mf_offset, mfp->last_pgno); 160 ++mp->stat.st_map; 236 ++mp->stat.st_cache_hit; 268 SH_TAILQ_INSERT_TAIL(&mp->bhq, bhp, q); 293 ++mp [all...] |
H A D | mp_region.c | 23 #include "mp.h" 59 MPOOL *mp; local 65 mp = dbmp->mp; 83 SH_TAILQ_FIRST(&mp->bhfq, __bh); bhp != NULL; bhp = nbhp) { 87 SH_TAILQ_REMOVE(&mp->bhfq, bhp, q, __bh); 98 SH_TAILQ_FIRST(&mp->bhfq, __bh); bhp != NULL; bhp = nbhp) { 101 SH_TAILQ_REMOVE(&mp->bhfq, bhp, q, __bh); 103 --mp->stat.st_page_clean; 118 SH_TAILQ_FIRST(&mp 212 MPOOL *mp; local [all...] |
/osnet-11/usr/src/lib/libast/common/misc/ |
H A D | mimetype.c | 37 drop(Mime_t* mp) argument 39 if (mp->magic) 41 magicclose(mp->magic); 42 mp->magic = 0; 51 mimetype(Mime_t* mp, Sfio_t* fp, const char* file, struct stat* st) argument 53 if (mp->disc->flags & MIME_NOMAGIC) 55 if (!mp->magic) 57 mp->magicd.version = MAGIC_VERSION; 58 mp->magicd.flags = MAGIC_MIME; 59 mp [all...] |
/osnet-11/usr/src/lib/libast/common/port/ |
H A D | touch.c | 51 Tv_t* mp; local 64 mp = TV_TOUCH_RETAIN; 66 mp = 0; 71 mp = &mv; 73 return tvtouch(path, ap, mp, NiL, flags & 1);
|
/osnet-11/usr/src/lib/libc/port/sys/ |
H A D | lwp.c | 37 _lwp_mutex_lock(mutex_t *mp) argument 39 if (set_lock_byte(&mp->mutex_lockw) == 0) 41 return (___lwp_mutex_timedlock(mp, NULL, NULL)); 45 _lwp_mutex_trylock(mutex_t *mp) argument 47 if (set_lock_byte(&mp->mutex_lockw) == 0)
|
H A D | lwp_cond.c | 37 _lwp_cond_wait(cond_t *cv, mutex_t *mp) argument 41 error = ___lwp_cond_wait(cv, mp, NULL, 0); 42 if (mp->mutex_type & (PTHREAD_PRIO_INHERIT|PTHREAD_PRIO_PROTECT)) 43 (void) ___lwp_mutex_timedlock(mp, NULL, NULL); 45 (void) _lwp_mutex_lock(mp); 50 _lwp_cond_reltimedwait(cond_t *cv, mutex_t *mp, timespec_t *relts) argument 57 error = ___lwp_cond_wait(cv, mp, relts, 0); 58 if (mp->mutex_type & (PTHREAD_PRIO_INHERIT|PTHREAD_PRIO_PROTECT)) 59 (void) ___lwp_mutex_timedlock(mp, NULL, NULL); 61 (void) _lwp_mutex_lock(mp); 66 _lwp_cond_timedwait(cond_t *cv, mutex_t *mp, timespec_t *absts) argument [all...] |
/osnet-11/usr/src/lib/libnsl/common/ |
H A D | common.c | 64 sig_mutex_lock(mutex_t *mp) argument 67 (void) mutex_lock(mp); 71 sig_mutex_unlock(mutex_t *mp) argument 73 (void) mutex_unlock(mp);
|
/osnet-11/usr/src/lib/libcurses/screen/ |
H A D | winwchnstr.c | 51 char *mp, mbbuf[CSMAX+1]; local 69 for (mp = mbbuf, s = 0; s < scrw; s++, maxcols--, ptr++) { 73 *mp++ = (char) wc; 77 *mp++ = (char) wc; 79 *mp = '\0';
|
H A D | waddwchnstr.c | 53 int mp, s, scrw; local 75 for (mp = 0; mp < sizeof (mbbuf); mp++) 76 mbbuf[mp] = '\0'; 86 for (s = 0, mp = 0; s < scrw; s++, mp += 2) { 87 *ptr = _CHAR(RBYTE(mbbuf[mp]) | 88 RBYTE(mbbuf[mp + 1]) << 8) | CBIT; 90 if (mp > [all...] |
/osnet-11/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_builtin.c | 59 bltin_init(topo_mod_t *mp, topo_version_t version) argument 64 if (strcmp(mp->tm_name, bp->bltin_name) == 0) 67 mp->tm_data = (void *)bp; 69 if ((*bp->bltin_init)(mp, version) != 0 || mp->tm_info == NULL) { 70 if (mp->tm_errno == 0) 71 (void) topo_mod_seterrno(mp, ETOPO_MOD_INIT); 72 topo_dprintf(mp->tm_hdl, TOPO_DBG_ERR, 74 bp->bltin_name, topo_mod_errmsg(mp)); 82 bltin_fini(topo_mod_t *mp) argument [all...] |
/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | fnmatch.c | 56 register const Map_t* mp; local 60 for (mp = map; mp < &map[elementsof(map)]; mp++) 61 if (flags & mp->fnm) 62 reflags |= mp->reg;
|
/osnet-11/usr/src/lib/libast/common/string/ |
H A D | ccmapid.c | 126 ccmaplist(Ccmap_t* mp) argument 128 return !mp ? (Ccmap_t*)maps : (++mp)->name ? mp : (Ccmap_t*)0; 138 register const Ccmap_t* mp; local 146 for (mp = maps; mp->name; mp++) 147 if (strgrpmatch(name, mp->match, sub, elementsof(sub) / 2, STR_MAXIMAL|STR_LEFT|STR_ICASE)) 150 return mp 167 register const Ccmap_t* mp; local [all...] |
H A D | fmtfs.c | 60 register void* mp; local 78 if (mp = mntopen(NiL, "r")) 80 while ((mnt = mntread(mp)) && (stat(mnt->dir, &rt) || rt.st_dev != st->st_dev)); 86 if (!mp) 90 mntclose(mp); 94 if (mp) 95 mntclose(mp);
|
/osnet-11/usr/src/lib/libast/common/tm/ |
H A D | tmxtouch.c | 47 Tv_t* mp; local 61 mp = TV_TOUCH_RETAIN; 63 mp = 0; 68 mp = &mv; 80 return tvtouch(path, ap, mp, cp, flags & 1);
|
/osnet-11/usr/src/lib/libbe/common/ |
H A D | be_rename.c | 72 char *mp = NULL; local 229 if (zfs_is_mounted(zhp, &mp) && mp == NULL) { 240 bt.nbe_zpool, &fld, mp)) != BE_SUCCESS) {
|
/osnet-11/usr/src/lib/libc/port/i18n/ |
H A D | __fputws_xpg5.c | 66 char mbbuf[MBBUFLEN], *mp; local 84 for (i = 0, mp = mbbuf; i < pcsize; i++, mp += ret) { 85 if ((ret = fp_wctomb(lc, mp, *ptr++)) == -1) { 91 *mp = '\0';
|
/osnet-11/usr/src/lib/lvm/libmeta/common/ |
H A D | metagetroot.c | 47 struct mnttab mp; local 54 while (getmntent(fp, &mp) == 0) { 55 if (strcmp(mp.mnt_mountp, "/") == 0) 56 return (mp.mnt_special);
|
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | fdsync.c | 89 mutex_t *mp; local 94 mp = search(handle, fd); 95 if (mp == NULL) { 98 mp = &p->lock[fd % CELLTBLSZ]; 101 if (mp == NULL) 103 (void) mutex_lock(mp); 110 mutex_t *mp; local 113 mp = search(handle, fd); 115 if (mp != NULL) 116 (void) mutex_unlock(mp); [all...] |
/osnet-11/usr/src/lib/libc/port/threads/ |
H A D | pthr_barrier.c | 91 mutex_t *mp = (mutex_t *)&barrier->__pthread_barrier_lock; local 111 (void) mutex_init(mp, type, NULL); 131 mutex_t *mp = (mutex_t *)&barrier->__pthread_barrier_lock; local 134 (void) mutex_destroy(mp); 146 mutex_t *mp = (mutex_t *)&barrier->__pthread_barrier_lock; local 151 (void) mutex_lock(mp); 157 (void) mutex_unlock(mp); 165 (void) cond_wait(cvp, mp); 169 (void) mutex_unlock(mp);
|
/osnet-11/usr/src/lib/libpp/common/ |
H A D | ppcall.c | 56 struct ppmacstk* mp; local 189 mp = pp.macp->next; 190 if ((pp.token = (char*)&mp->arg[mac->arity + 1]) > pp.maxmac) 244 mp = pp.macp->next; 245 p = pp.token = (char*)&mp->arg[mac->arity + 1]; 252 mp->line = error_info.line; 257 mp->arg[c] = mac->args.key[c].value + 1; 258 mp->arg[0]++; 264 mp->arg[0] = ++p; 279 mp [all...] |
/osnet-11/usr/src/lib/libproc/common/ |
H A D | Pidle.c | 43 map_info_t *mp; local 48 if ((mp = Paddr2mptr(P, addr)) == NULL) 51 mapoff = addr - mp->map_pmap.pr_vaddr; 52 len = MIN(resid, mp->map_pmap.pr_size - mapoff); 53 off = mp->map_offset + mapoff;
|