Searched defs:dc (Results 1 - 15 of 15) sorted by relevance

/ast/src/lib/libast/sfio/
H A Dsfsk.c39 reg Sfdisc_t* dc; local
65 { dc = disc;
75 { SFDISC(f,dc,seekf);
76 if(dc && dc->seekf)
77 { SFDCSK(f,addr,type,dc,p);
89 switch(_sfexcept(f,SF_SEEK,s,dc))
101 for(dc = f->disc; dc; dc
[all...]
H A Dsfwr.c138 reg Sfdisc_t* dc; local
160 dc = disc;
165 SFDISC(f,dc,writef);
166 if(dc && dc->exceptf && (f->flags&SF_IOCHECK) )
170 if((rv = _sfexcept(f,SF_WRITE,n,dc)) > 0)
182 { f->here = SFSK(f,(Sfoff_t)0,SEEK_END,dc);
187 f->here = SFSK(f,f->here,SEEK_SET,dc);
193 if(dc && dc
[all...]
H A Dsfrd.c71 reg Sfdisc_t* dc; local
112 dc = disc;
122 SFDISC(f,dc,readf);
123 if(dc && dc->exceptf && (f->flags&SF_IOCHECK) )
127 if((rv = _sfexcept(f,SF_READ,n,dc)) > 0)
148 (r = SFSK(f,(Sfoff_t)0,SEEK_CUR,dc)) != f->here)
199 (void)SFSK(f,f->here,SEEK_SET,dc);
216 (void)SFSK(f,f->here,SEEK_SET,dc);
238 f->here = SFSK(f,f->here,SEEK_SET,dc);
[all...]
/ast/src/cmd/tests/sfio/
H A Dtscanf1.c42 Mydisc_t *dc = (Mydisc_t*)disc; local
46 return sfread(dc->f, buf, 1);
H A Dtmprdwr.c43 Mydisc_t *dc = (Mydisc_t*)disc; local
46 if(dc->size <= 0)
47 { if((r = read(dc->recv, &dc->size, sizeof(int))) != sizeof(int) )
50 if(dc->size == 0)
54 if(n > dc->size)
55 n = dc->size;
60 dc->size -= r;
62 if((n = write(dc->send, &r, sizeof(int))) != sizeof(int))
/ast/src/cmd/tests/vmalloc/
H A Dtalign.c25 static Void_t* alignmem(Vmalloc_t* vm, Void_t* ca, size_t cs, size_t ns, Vmdisc_t* dc) argument
27 static Void_t* alignmem(vm, ca, cs, ns, dc)
32 Vmdisc_t* dc;
/ast/src/lib/libast/cdt/
H A Ddtnew.c40 Dc_t* dc = (Dc_t*)disc; local
43 if (dc->odisc->eventf && (r = (*dc->odisc->eventf)(dt, op, data, dc->odisc)))
62 Dc_t dc; local
64 dc.odisc = disc;
65 dc.ndisc = *disc;
66 dc.ndisc.eventf = eventf;
67 if (!dc.ndisc.memoryf)
68 dc
[all...]
/ast/src/cmd/tests/cdt/
H A Dtvthread.c65 static Dt_t* opendictionary(Mydisc_t* dc) argument
75 dc->disc.key = (ssize_t)DTOFFSET(Obj_t,value);
76 dc->disc.size = (ssize_t)sizeof(int);
77 dc->disc.link = -1;
78 dc->disc.makef = (Dtmake_f)0;
79 dc->disc.freef = (Dtfree_f)0;
80 dc->disc.comparf = mycompare;
81 dc->disc.hashf = myhash;
82 dc->disc.memoryf = mymemory;
83 dc
[all...]
H A Dtrehash.c81 Disc_t *dc = (Disc_t*)disc; local
87 if(asocasint(&dc->lock, 0, 1) == 0) /* get exclusive use first */
91 if(size <= dc->size)
92 { addr = (Void_t*)dc->addr;
93 dc->addr += size;
94 dc->size -= size;
98 asocasint(&dc->lock, 1, 0); /* release exclusive use */
H A Dtsafehash.c81 Disc_t *dc = (Disc_t*)disc; local
87 if(asocasint(&dc->lock, 0, 1) == 0) /* get exclusive use first */
91 if(size <= dc->size)
92 { addr = (Void_t*)dc->addr;
93 dc->addr += size;
94 dc->size -= size;
98 asocasint(&dc->lock, 1, 0); /* release exclusive use */
H A Dtsafetree.c81 Disc_t *dc = (Disc_t*)disc; local
87 if(asocasint(&dc->lock, 0, 1) == 0) /* get exclusive use first */
91 if(size <= dc->size)
92 { addr = (Void_t*)dc->addr;
93 dc->addr += size;
94 dc->size -= size;
98 asocasint(&dc->lock, 1, 0); /* release exclusive use */
/ast/src/cmd/dsslib/ip_t/
H A Div-flat.c37 Dtdisc_t dc; /* discipline structure for dictionary */ member in struct:Flat_s
116 fl->dc.comparf = flatbldcmp;
117 dtdisc(dt, &fl->dc, DT_SAMECMP/* not truthful but ok */);
218 fl->dc.comparf = flatsrchcmp;
219 dtdisc(dt, &fl->dc, DT_SAMECMP/* not truthful but ok */);
239 fl->dc.comparf = flatsrchcmp;
240 dtdisc(dt, &fl->dc, DT_SAMECMP/* not truthful but ok */);
259 DTDISC(&fl->dc,0,0,offsetof(Flseg_t,link),flatmake,flatfree,flatbldcmp,0,0,0);
260 if (!(fl->dt = dtopen(&fl->dc, Dtoset)))
H A Div-nested.c45 Dtdisc_t dc; /* dt discipline */ member in struct:Nest_s
215 nst->dc.makef = nestmake;
216 nst->dc.freef = nestfree;
217 nst->dc.comparf = nestcmp;
218 if (!(nst->dt = dtopen(&nst->dc, Dtoset)))
/ast/src/cmd/re/
H A Dsed1.c70 #define dc Tc macro
669 xx,ac,bc,cc,dc,xx,xx,gc,hc,ic,xx,xx,lc,xx,nc,xx, /* a-n */
/ast/src/cmd/html/
H A Dtroff2html.h269 int dc; /* check list indent */ member in struct:State_s::__anon100

Completed in 19 milliseconds