Searched refs:mp (Results 1 - 25 of 214) sorted by relevance

123456789

/osnet-11/usr/src/lib/libast/common/misc/
H A Dmimetype.c37 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...]
H A Dmagic.c286 getdata(register Magic_t* mp, register long off, register int siz) argument
292 if (off + siz <= mp->fbsz)
293 return mp->fbuf + off;
294 if (off < mp->xoff || off + siz > mp->xoff + mp->xbsz)
296 if (off + siz > mp->fbmx)
299 if (sfseek(mp->fp, n, SEEK_SET) != n)
301 if ((mp->xbsz = sfread(mp
323 register Magic_t* mp = (Magic_t*)handle; local
380 regmessage(Magic_t* mp, regex_t* re, int code) argument
476 ckmagic(register Magic_t* mp, const char* file, char* buf, char* end, struct stat* st, unsigned long off) argument
1008 ckenglish(register Magic_t* mp, int pun, int badpun) argument
1035 cklang(register Magic_t* mp, const char* file, char* buf, char* end, struct stat* st) argument
1556 type(register Magic_t* mp, const char* file, struct stat* st, char* buf, char* end) argument
1662 load(register Magic_t* mp, char* file, register Sfio_t* fp) argument
2227 magicload(register Magic_t* mp, const char* file, unsigned long flags) argument
2322 register Magic_t* mp; local
2377 magicclose(register Magic_t* mp) argument
2393 magictype(register Magic_t* mp, Sfio_t* fp, const char* file, register struct stat* st) argument
2438 magiclist(register Magic_t* mp, register Sfio_t* sp) argument
[all...]
/osnet-11/usr/src/lib/efcode/engine/
H A Dmcookie.c75 struct map_table *mp; local
77 for (i = 0, mp = map_table; i < MAX_MAPS; i++, mp++)
78 if ((mp->map_flags & MAP_IS_VALID) == 0)
86 mp->map_flags |= MAP_IS_VALID;
87 mp->map_add = req_add;
88 mp->map_size = req_size;
89 mp->adj_virt = adj_virt;
90 mp->adj_length = adj_length;
91 if (mp
101 struct map_table *mp; local
125 struct map_table *mp; local
146 struct map_table *mp; local
165 struct map_table *mp; local
[all...]
/osnet-11/usr/src/lib/libast/common/string/
H A Dccmapid.c126 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...]
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/
H A Dmpool.c65 MPOOL *mp; local
82 if ((mp = (MPOOL *)calloc(1, sizeof(MPOOL))) == NULL)
84 CIRCLEQ_INIT(&mp->lqh);
86 CIRCLEQ_INIT(&mp->hqh[entry]);
87 mp->maxcache = maxcache;
88 mp->npages = sb.st_size / pagesize;
89 mp->pagesize = pagesize;
90 mp->fd = fd;
91 return (mp);
99 mpool_filter(mp, pgi
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dcalloc.c43 void *mp; local
57 return ((mp = malloc(total)) ? memset(mp, 0, total) : mp);
/osnet-11/usr/src/lib/libumem/common/
H A Dstub_stand.c82 mutex_init(mutex_t *mp, int type, void *arg) argument
84 (void) memcpy(mp, &_mp, sizeof (mutex_t));
90 mutex_destroy(mutex_t *mp) argument
97 _mutex_held(void *mp) argument
104 mutex_lock(mutex_t *mp) argument
111 mutex_trylock(mutex_t *mp) argument
118 mutex_unlock(mutex_t *mp) argument
/osnet-11/usr/src/lib/libmapmalloc/common/
H A Dcalloc.c37 void *mp; local
44 mp = malloc(total);
45 if (mp == NULL)
47 (void) memset(mp, 0, total);
48 return (mp);
/osnet-11/usr/src/lib/libast/common/port/
H A Dmnt.c267 register Handle_t* mp;
278 if (!(mp = newof(0, Handle_t, 1, n)))
281 n = getfsstat(mp->next = mp->buf, n + sizeof(struct statfs), MNT_WAIT);
283 n = getmntinfo(&mp->next, 0);
287 free(mp);
290 mp->last = mp->next + n;
291 return (void*)mp;
297 register Handle_t* mp
[all...]
H A Dtouch.c51 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/fm/topo/modules/common/pcibus/
H A Dutil.c38 child_range_add(topo_mod_t *mp, tnode_t *tn, const char *cnm, argument
43 e = topo_node_range_create(mp, tn, cnm, imin, imax);
45 topo_mod_dprintf(mp, "add child range (%s) failed: %s\n",
46 cnm, topo_strerror(topo_mod_errno(mp)));
53 strtonum(topo_mod_t *mp, char *str, int *err) argument
60 topo_mod_dprintf(mp,
70 get_pci_vpd_sn_pn(topo_mod_t *mp, di_node_t dn, char **serial, char **part) argument
75 if ((promtree = topo_mod_prominfo(mp)) == DI_PROM_HANDLE_NIL) {
76 topo_mod_dprintf(mp,
84 *serial = topo_mod_strdup(mp,
94 tnode_create(topo_mod_t *mp, tnode_t *parent, const char *name, topo_instance_t i, void *priv) argument
141 labelmethod_inherit(topo_mod_t *mp, tnode_t *tn, nvlist_t *in, nvlist_t **out) argument
[all...]
/osnet-11/usr/src/lib/fm/topo/modules/sun4v/cpuboard/common/
H A Dcpuboard_hostbridge.c40 cpuboard_node_create(topo_mod_t *mp, tnode_t *parent, const char *name, argument
45 nvlist_t *auth = topo_mod_auth(mp, parent);
47 topo_mod_dprintf(mp, "cpuboard_node_create:\n");
54 if ((fmri = topo_mod_hcfmri(mp, parent, FM_HC_SCHEME_VERSION, name,
56 topo_mod_dprintf(mp, "create of tnode for %s failed: %s",
57 name, topo_strerror(topo_mod_errno(mp)));
64 node = topo_node_bind(mp, parent, name, inst, fmri);
67 topo_mod_dprintf(mp, "unable to bind root complex: %s\n",
68 topo_strerror(topo_mod_errno(mp)));
83 * mp
90 cpuboard_rc_node_create(topo_mod_t *mp, tnode_t *parent, di_node_t dnode, char *rcpath, int inst) argument
209 cpuboard_hb_node_create(topo_mod_t *mp, tnode_t *parent, int inst) argument
241 cpuboard_hb_enum(topo_mod_t *mp, di_node_t dnode, char *rcpath, tnode_t *cpubn, int brd) argument
[all...]
/osnet-11/usr/src/lib/libfstyp/common/
H A Dlibfstyp.c98 fstyp_module_t *mp);
102 fstyp_module_t *mp);
180 fstyp_module_t *mp; local
187 for (mp = h->modules; mp != NULL; mp = mp->next) {
188 if ((fstyp_load_module(h, mp) == 0) &&
189 (mp->ops.fstyp_ident(mp
210 fstyp_module_t *mp; local
249 fstyp_module_t *mp = h->ident; local
264 fstyp_module_t *mp = h->ident; local
344 fstyp_module_t *mp; local
364 fstyp_module_t *mp; local
412 fstyp_fini_module(struct fstyp_handle *h, fstyp_module_t *mp) argument
465 fstyp_module_t *mp, *mp_next; local
479 fstyp_load_module(struct fstyp_handle *h, fstyp_module_t *mp) argument
521 fstyp_unload_module(struct fstyp_handle *h, fstyp_module_t *mp) argument
[all...]
/osnet-11/usr/src/lib/libc/port/sys/
H A Dlwp_cond.c37 _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...]
H A Dlwp.c37 _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)
/osnet-11/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_parse.c34 tf_info_new(topo_mod_t *mp, xmlDocPtr doc, xmlChar *scheme) argument
38 if ((r = topo_mod_zalloc(mp, sizeof (tf_info_t))) == NULL) {
39 (void) topo_mod_seterrno(mp, ETOPO_NOMEM);
43 if ((r->tf_scheme = topo_mod_strdup(mp, (char *)scheme)) == NULL) {
44 tf_info_free(mp, r);
45 (void) topo_mod_seterrno(mp, ETOPO_NOMEM);
53 tf_info_free(topo_mod_t *mp, tf_info_t *p) argument
58 topo_mod_strfree(mp, p->tf_scheme);
59 tf_rdata_free(mp, p->tf_rd);
60 topo_mod_free(mp,
64 tf_rdata_new(topo_mod_t *mp, tf_info_t *xinfo, xmlNodePtr n, tnode_t *troot) argument
111 tf_rdata_free(topo_mod_t *mp, tf_rdata_t *p) argument
125 tf_idata_new(topo_mod_t *mp, topo_instance_t i, tnode_t *tn) argument
138 tf_idata_free(topo_mod_t *mp, tf_idata_t *p) argument
177 tf_pad_new(topo_mod_t *mp, int pcnt, int dcnt) argument
191 tf_pad_free(topo_mod_t *mp, tf_pad_t *p) argument
209 tf_edata_free(topo_mod_t *mp, tf_edata_t *p) argument
[all...]
H A Dtopo_method.c46 topo_imethod_t *mp; local
48 for (mp = topo_list_next(&node->tn_methods); mp != NULL;
49 mp = topo_list_next(mp)) {
50 if (strcmp(name, mp->tim_name) == 0) {
52 return (mp);
67 topo_imethod_t *mp; local
70 for (mp = topo_list_next(&node->tn_methods); mp !
83 topo_method_enter(topo_imethod_t *mp) argument
96 topo_method_exit(topo_imethod_t *mp) argument
108 set_methregister_error(topo_mod_t *mod, tnode_t *node, topo_imethod_t *mp, int err) argument
131 topo_method_register(topo_mod_t *mod, tnode_t *node, const topo_method_t *mp) argument
190 topo_imethod_t *mp; local
218 topo_imethod_t *mp; local
238 topo_imethod_t *mp; local
[all...]
/osnet-11/usr/src/lib/fm/topo/modules/SUNW,SPARC-Enterprise/ioboard/common/
H A Dopl_hostbridge.c65 opl_node_create(topo_mod_t *mp, tnode_t *parent, const char *name, int inst, argument
70 nvlist_t *auth = topo_mod_auth(mp, parent);
77 if ((fmri = topo_mod_hcfmri(mp, parent, FM_HC_SCHEME_VERSION, name,
79 topo_mod_dprintf(mp, "create of tnode for %s failed: %s",
80 name, topo_strerror(topo_mod_errno(mp)));
87 node = topo_node_bind(mp, parent, name, inst, fmri);
90 topo_mod_dprintf(mp, "unable to bind root complex: %s\n",
91 topo_strerror(topo_mod_errno(mp)));
105 opl_rc_node_create(topo_mod_t *mp, tnode_t *parent, di_node_t dnode, int inst) argument
113 rcn = opl_node_create(mp, paren
234 opl_hb_node_create(topo_mod_t *mp, tnode_t *parent, int inst) argument
259 opl_hb_enum(topo_mod_t *mp, const ioboard_contents_t *iob, tnode_t *ion, int brd) argument
[all...]
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dmacro.c125 Mac_t *mp = (Mac_t*)addr; local
126 mp->shp = shp;
160 register Mac_t *mp = (Mac_t*)shp->mac_context; local
163 savemac = *mp;
165 mp->arith = (mode==3);
166 mp->let = 0;
168 mp->pattern = (mode==1||mode==2);
169 mp->patfound = 0;
170 mp->assign = 0;
172 mp
204 register Mac_t *mp = (Mac_t*)shp->mac_context; local
272 register Mac_t *mp = (Mac_t*)shp->mac_context; local
435 copyto(register Mac_t *mp,int endch, int newquote) argument
847 mac_substitute(Mac_t *mp, register char *cp,char *str,register int subexp[],int subsize) argument
1001 subcopy(Mac_t *mp, int flag) argument
1059 namecount(Mac_t *mp,const char *prefix) argument
1069 nextname(Mac_t *mp,const char *prefix, int len) argument
1086 varsub(Mac_t *mp) argument
1993 comsubst(Mac_t *mp,register Shnode_t* t, int type) argument
2214 mac_copy(register Mac_t *mp,register const char *str, register int size) argument
2408 endfield(register Mac_t *mp,int split) argument
[all...]
/osnet-11/usr/src/cmd/sendmail/db/mutex/
H A Dmutex.c139 __db_mutex_init(mp, off)
140 db_mutex_t *mp;
144 if ((ALIGNTYPE)mp & (MUTEX_ALIGNMENT - 1)) {
151 memset(mp, 0, sizeof(db_mutex_t));
157 if (TSL_INIT(&mp->tsl_resource))
160 TSL_INIT(&mp->tsl_resource);
162 mp->spins = __os_spin();
164 mp->off = off;
179 __db_mutex_lock(mp, fd)
180 db_mutex_t *mp;
[all...]
/osnet-11/usr/src/lib/libnsl/nis/gen/
H A Dnis_sec_mechs.c260 sf_free_mech_ent(mechanism_t *mp) argument
262 if (mp) {
263 if (mp->mechname)
264 free(mp->mechname);
265 if (mp->alias)
266 free(mp->alias);
267 if (mp->qop)
268 free(mp->qop);
269 free(mp);
463 equal_entries(const mechanism_t *mp, cons argument
492 sf_copy_mech_ent(mechanism_t *mp) argument
514 member_of_dups(mechanism_t **t, const mechanism_t *mp) argument
553 mechanism_t *mp; local
676 mechanism_t *mp = *mpp; local
722 mechanism_t *mp = *mpp; local
862 mechanism_t *mp = *mpp; local
955 mf_copy_ent(mfent_t *mp) argument
971 mf_free_ent(mfent_t *mp) argument
1003 mfent_t *mp; /* a mech entry */ local
1063 mfent_t *mp = *mpp; local
[all...]
/osnet-11/usr/src/lib/libc/port/threads/
H A Dplockstat.d32 probe mutex__acquire(mutex_t *mp, int rec, int spincount);
33 probe mutex__release(mutex_t *mp, int rec);
34 probe mutex__spin(mutex_t *mp);
35 probe mutex__spun(mutex_t *mp, int successful, int spincount);
36 probe mutex__block(mutex_t *mp);
37 probe mutex__blocked(mutex_t *mp, int successful);
38 probe mutex__error(mutex_t *mp, int err);
/osnet-11/usr/src/lib/libcurses/screen/
H A Dwaddwchnstr.c53 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/cmd/sendmail/db/mp/
H A Dmp_region.c23 #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...]
H A Dmp_sync.c23 #include "mp.h"
40 MPOOL *mp; local
47 mp = dbmp->mp;
63 nalloc = mp->stat.st_page_dirty + mp->stat.st_page_dirty / 2 + 10;
79 if (!F_ISSET(mp, MP_LSN_RETRY) && log_compare(lsnp, &mp->lsn) <= 0) {
80 if (mp->lsn_cnt == 0) {
81 *lsnp = mp
320 MPOOL *mp; local
447 MPOOL *mp; local
[all...]

Completed in 49 milliseconds

123456789