Searched refs:disc (Results 1 - 25 of 154) sorted by relevance

1234567

/illumos-gate/usr/src/lib/libast/common/disc/
H A Dsfdcslow.c31 static int slowexcept(Sfio_t* f, int type, Void_t* v, Sfdisc_t* disc) argument
33 static int slowexcept(f, type, v, disc)
37 Sfdisc_t* disc;
42 NOTUSED(disc);
48 free(disc);
67 Sfdisc_t* disc; local
69 if(!(disc = (Sfdisc_t*)malloc(sizeof(Sfdisc_t))) )
72 disc->readf = NIL(Sfread_f);
73 disc->writef = NIL(Sfwrite_f);
74 disc
[all...]
H A Dsfdctee.c33 { Sfdisc_t disc; /* the sfio discipline structure */ member in struct:_tee_s
40 static ssize_t teewrite(Sfio_t* f, const Void_t* buf, size_t size, Sfdisc_t* disc) argument
42 static ssize_t teewrite(f,buf,size,disc)
46 Sfdisc_t* disc; /* the tee discipline */
49 reg Tee_t* te = (Tee_t*)disc;
56 return sfwr(f,buf,size,disc);
61 static int teeexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc) argument
63 static int teeexcept(f,type,data,disc)
67 Sfdisc_t* disc;
71 free(disc);
[all...]
H A Dsfdcfilter.c31 { Sfdisc_t disc; /* discipline structure */ member in struct:_filter_s
40 static ssize_t filterread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) argument
42 static ssize_t filterread(f, buf, n, disc)
46 Sfdisc_t* disc; /* discipline */
52 fi = (Filter_t*)disc;
57 { if((r = sfrd(f,fi->raw,sizeof(fi->raw),disc)) > 0)
101 static ssize_t filterwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument
103 static ssize_t filterwrite(f, buf, n, disc)
107 Sfdisc_t* disc; /* discipline */
115 static Sfoff_t filterseek(Sfio_t* f, Sfoff_t addr, int offset, Sfdisc_t* disc) argument
132 filterexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc) argument
[all...]
H A Dsfdcsubstr.c34 Sfdisc_t disc; /* sfio discipline */ member in struct:_subfile_s
42 static ssize_t streamio(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc, int type) argument
44 static ssize_t streamio(f, buf, n, disc, type)
48 Sfdisc_t* disc;
56 su = (Subfile_t*)disc;
65 parent = sfsk(f,(Sfoff_t)0,SEEK_CUR,disc);
69 if(sfsk(f,here,SEEK_SET,disc) != here)
73 io = sfwr(f,buf,n,disc);
74 else io = sfrd(f,buf,n,disc);
80 sfsk(f,parent,SEEK_SET,disc);
86 streamwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument
99 streamread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) argument
112 streamseek(Sfio_t* f, Sfoff_t pos, int type, Sfdisc_t* disc) argument
157 streamexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc) argument
[all...]
H A Dmemfatal.c48 nomalloc(Vmalloc_t* region, int type, void* obj, Vmdisc_t* disc) argument
52 NoP(disc);
73 Vmdisc_t* disc; local
76 if (disc = vmdisc(Vmregion, NiL))
77 disc->exceptf = nomalloc;
H A Dsfdcseekable.c33 { Sfdisc_t disc; /* sfio discipline */ member in struct:_skable_s
41 static ssize_t skwrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument
43 static ssize_t skwrite(f, buf, n, disc)
47 Sfdisc_t* disc; /* discipline */
54 static ssize_t skread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) argument
56 static ssize_t skread(f, buf, n, disc)
60 Sfdisc_t* disc; /* discipline */
68 sk = (Seek_t*)disc;
86 if((w = sfrd(f,buf,n,disc)) <= 0)
102 static Sfoff_t skseek(Sfio_t* f, Sfoff_t addr, int type, Sfdisc_t* disc) argument
164 skexcept(Sfio_t* f, int type, Void_t* data, Sfdisc_t* disc) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmdisc.c37 Vmdisc_t* vmdisc(Vmalloc_t* vm, Vmdisc_t* disc) argument
39 Vmdisc_t* vmdisc(vm, disc)
41 Vmdisc_t* disc;
44 Vmdisc_t* old = vm->disc;
46 if(disc)
47 { if(disc->memoryf != old->memoryf)
50 (*old->exceptf)(vm,VM_DISC,(Void_t*)disc,old) != 0 )
52 vm->disc = disc;
H A Dvmclose.c52 if(vm->disc->exceptf &&
53 (ev = (*vm->disc->exceptf)(vm,VM_CLOSE,NIL(Void_t*),vm->disc)) < 0 )
77 else (*vm->disc->memoryf)(vm,seg->addr,seg->extent,0,vm->disc);
80 (*vm->disc->memoryf)(vm,vmseg->addr,vmseg->extent,0,vm->disc);
H A Dvmdcheap.c37 Vmdisc_t* disc)
39 static Void_t* heapmem(vm, caddr, csize, nsize, disc)
44 Vmdisc_t* disc; /* discipline structure */
48 NOTUSED(disc);
35 heapmem(Vmalloc_t* vm, Void_t* caddr, size_t csize, size_t nsize, Vmdisc_t* disc) argument
H A Dvmopen.c48 Vmalloc_t* vmopen(Vmdisc_t* disc, Vmethod_t* meth, int mode) argument
50 Vmalloc_t* vmopen(disc, meth, mode)
51 Vmdisc_t* disc; /* discipline to get segments */
65 if(!meth || !disc || !(memoryf = disc->memoryf) )
71 where the meth&disc function addresses are going to be stored */
75 vm->disc = disc;
79 if(disc->exceptf)
81 if((e = (*disc
[all...]
/illumos-gate/usr/src/lib/libast/common/regex/
H A Dregalloc.c33 state.disc.re_flags = flags;
34 state.disc.re_resizef = resize;
35 state.disc.re_resizehandle = handle;
H A Dregerror.c85 fatal(regdisc_t* disc, int code, const char* pattern) argument
87 if (disc->re_errorf)
90 (*disc->re_errorf)(NiL, disc, disc->re_errorlevel, "regular expression: %s: %s", pattern, reg_error[code+1]);
92 (*disc->re_errorf)(NiL, disc, disc->re_errorlevel, "regular expression: %s", reg_error[code+1]);
H A Dregsubcomp.c49 regdisc_t* disc; local
66 disc = p->env->disc;
68 return fatal(disc, REG_EFLAGS, s - 1);
81 disc = p->env->disc;
83 return fatal(disc, REG_EFLAGS, s - 1);
124 regdisc_t* disc; local
126 disc = p->env->disc;
[all...]
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfdisc.c45 { Sfdisc_t disc; member in struct:_dccache_s
51 static int _dccaexcept(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) argument
53 static int _dccaexcept(f,type,val,disc)
57 Sfdisc_t* disc;
60 if(disc && type == SF_FINAL)
61 free(disc);
66 static ssize_t _dccaread(Sfio_t* f, Void_t* buf, size_t size, Sfdisc_t* disc) argument
68 static ssize_t _dccaread(f, buf, size, disc)
72 Sfdisc_t* disc;
83 for(prev = f->disc; pre
107 sfdisc(Sfio_t* f, Sfdisc_t* disc) argument
[all...]
H A Dsfraise.c65 reg Sfdisc_t *disc, *next, *d; local
83 for(disc = f->disc; disc; )
84 { next = disc->disc;
86 f->disc = next;
88 if(disc->exceptf)
90 if((rv = (*disc->exceptf)(f,type,data,disc)) !
[all...]
H A Dsfpurge.c44 if((f->flags&SF_IOCHECK) && f->disc && f->disc->exceptf)
45 (void)(*f->disc->exceptf)(f,SF_PURGE,(Void_t*)((int)1),f->disc);
47 if(f->disc == _Sfudisc)
62 (void)SFSK(f,f->here,SEEK_SET,f->disc);
85 (void)SFSK(f,f->here,SEEK_SET,f->disc);
94 if((f->flags&SF_IOCHECK) && f->disc && f->disc->exceptf)
95 (void)(*f->disc
[all...]
H A Dsfsize.c35 Sfdisc_t* disc; local
56 { for(disc = f->disc; disc; disc = disc->disc)
57 if(disc->seekf)
59 if(!_sys_stat || disc)
61 if((e = SFSK(f,0,SEEK_END,disc)) >
[all...]
/illumos-gate/usr/src/lib/libast/common/cdt/
H A Ddtclose.c35 Dtdisc_t *disc; local
42 disc = dt->disc;
43 if(disc->eventf &&
44 (ev = (*disc->eventf)(dt,DT_CLOSE,NIL(Void_t*),disc)) < 0)
56 (*dt->memoryf)(dt,(Void_t*)dt->data->htab,0,disc); local
57 (*dt->memoryf)(dt,(Void_t*)dt->data,0,disc); local
63 (*dt->memoryf)(dt, (Void_t*)dt, 0, disc); local
65 if(disc
[all...]
H A Ddtdisc.c26 ** disc : discipline
32 static Void_t* dtmemory(Dt_t* dt,Void_t* addr,size_t size,Dtdisc_t* disc) argument
34 static Void_t* dtmemory(dt, addr, size, disc)
38 Dtdisc_t* disc; /* discipline */
52 Dtdisc_t* dtdisc(Dt_t* dt, Dtdisc_t* disc, int type) argument
54 Dtdisc_t* dtdisc(dt,disc,type)
56 Dtdisc_t* disc;
65 if(!(old = dt->disc) ) /* initialization call from dtopen() */
66 { dt->disc = disc;
[all...]
H A Ddtopen.c31 Dt_t* dtopen(Dtdisc_t* disc, Dtmethod_t* meth) argument
33 Dt_t* dtopen(disc, meth)
34 Dtdisc_t* disc;
42 if(!disc || !meth)
52 dt->disc = NIL(Dtdisc_t*);
53 dtdisc(dt,disc,0);
59 if(disc->eventf)
62 if((e = (*disc->eventf)(dt,DT_OPEN,(Void_t*)(&data),disc)) < 0)
71 if(!disc
106 (*disc->eventf)(dt, DT_ENDOPEN, (Void_t*)dt, disc); local
[all...]
H A Ddtnew.c38 eventf(Dt_t* dt, int op, void* data, Dtdisc_t* disc) argument
40 Dc_t* dc = (Dc_t*)disc;
49 memoryf(Dt_t* dt, void* addr, size_t size, Dtdisc_t* disc) argument
51 return vmresize(((Dc_t*)disc)->vm, addr, size, VM_RSMOVE);
55 * open a dictionary using disc->memoryf if set or vm otherwise
59 dtnew(Vmalloc_t* vm, Dtdisc_t* disc, Dtmethod_t* meth) argument
64 dc.odisc = disc;
65 dc.ndisc = *disc;
71 dtdisc(dt, disc, DT_SAMECMP|DT_SAMEHASH);
H A Ddtlist.c40 reg Dtdisc_t* disc; local
45 disc = dt->disc; _DTDSC(disc,ky,sz,lk,cmpf);
63 { if(disc->freef || disc->link < 0)
66 if(disc->freef)
67 (*disc->freef)(dt,_DTOBJ(r,lk),disc);
68 if(disc
69 (*dt->memoryf)(dt,(Void_t*)r,0,disc); local
171 (*dt->memoryf)(dt,(Void_t*)r,0,disc); local
[all...]
H A Ddtmethod.c38 reg Dtdisc_t* disc = dt->disc; local
44 if(disc->eventf &&
45 (*disc->eventf)(dt,DT_METH,(Void_t*)meth,disc) < 0)
57 (*dt->memoryf)(dt,(Void_t*)dt->data->htab,0,disc); local
97 { reg Void_t* key = _DTOBJ(list,disc->link);
98 key = _DTKEY(key,disc->key,disc->size);
99 list->hash = _DTHSH(dt,key,disc,dis
[all...]
H A Ddthash.c48 if(dt->disc && dt->disc->eventf &&
49 (*dt->disc->eventf)(dt, DT_HASHSIZE, &n, dt->disc) > 0 )
75 if(!(s = (Dtlink_t**)(*dt->memoryf)(dt,olds,n*sizeof(Dtlink_t*),dt->disc)) )
113 reg Dtdisc_t* disc; local
119 disc = dt->disc; _DTDSC(disc,ky,sz,lk,cmpf);
135 if(!disc
142 (*dt->memoryf)(dt,(Void_t*)t,0,disc); local
266 (*disc->memoryf)(dt,(Void_t*)r,0,disc); local
327 (*dt->memoryf)(dt,(Void_t*)r,0,disc); local
351 (*dt->memoryf)(dt,(Void_t*)t,0,disc); local
[all...]
H A Ddtrenew.c40 reg Dtdisc_t* disc = dt->disc; local
44 if(!(e = dt->data->here) || _DTOBJ(e,disc->link) != obj)
72 key = _DTKEY(obj,disc->key,disc->size);
73 e->hash = _DTHSH(dt,key,disc,disc->size);

Completed in 66 milliseconds

1234567