/ast/src/lib/libast/sfio/ |
H A D | sfresize.c | 40 if(size < 0 || f->extent < 0 || 49 if(f->extent >= size) 56 f->extent = s; 59 memclear((char*)(f->data+size), (int)(f->extent-size)); 64 memclear((char*)(f->data+f->extent), (int)(size-f->extent)); 78 f->extent = size;
|
H A D | sfsize.c | 47 SFMTXRETURN(f, f->extent); 54 if(f->extent >= 0) 62 f->extent = e; 70 f->extent = -1; 71 else if((f->extent = st.st_size) < f->here) 93 f->extent = -1; 94 else if(f->extent < f->here) 95 f->extent = f->here; 97 if((s = f->extent) >= 0) 102 if(s < f->extent) [all...] |
H A D | sfmove.c | 65 { if(fr->extent >= 0 ) 67 if(fw->extent >= 0 && w > 0) 92 (fw->next > fw->data && fr->extent < 0 && 93 (fw->extent < 0 || (fw->flags&SF_SHARE)) ) ) 119 { if(fr->extent < 0) 121 else if((fr->extent-fr->here) > SF_NMAP*SF_PAGE) 123 else w = (ssize_t)(fr->extent-fr->here); 130 (n < 0 || fr->extent >= 0) ) 134 if(fw && fw->extent >= 0 && w <= (fw->endb-fw->next) ) 155 if(n > 0 && fr->extent < [all...] |
H A D | sfrd.c | 46 (f->mode&SF_WRITE) && f->extent < 0 ) 55 (f->mode&SF_WRITE) && f->extent < 0 ) 114 { if((r = (f->data+f->extent) - f->next) < 0) 153 if((f->flags&SF_SHARE) || (size_t)(r = f->extent-f->here) < n) 156 if((r = (f->extent = st.st_size) - f->here) <= 0 ) 230 if(!dosync && f->extent < 0) 236 if(f->extent >= 0 && (f->flags&SF_SHARE) ) 262 else if(f->extent < 0 && (f->flags&SF_SHARE) && rcrv) 282 if(f->extent >= 0 && f->extent < [all...] |
H A D | sfwr.c | 178 if(f->extent >= 0) 181 { if(f->here != f->extent || (f->flags&SF_SHARE)) 183 f->extent = f->here; 202 f->here == f->extent && (f->here%_Sfpage) == 0) 218 { if((f->flags&(SF_APPENDWR|SF_PUBLIC)) && f->extent >= 0 ) 221 if(f->extent >= 0 && f->here > f->extent) 222 f->extent = f->here;
|
H A D | sftell.c | 54 if(f->extent >= 0 && (f->flags&(SF_SHARE|SF_APPENDWR)) )
|
H A D | sfset.c | 78 if(f->extent < 0) 94 if(!(f->flags&SF_SHARE) || f->extent < 0)
|
H A D | sfseek.c | 46 { f->extent = -1; 99 if(f->extent < 0) 121 r = p + f->extent; 128 if(p > f->extent) 129 memclear((char*)(f->data+f->extent),(int)(p-f->extent)); 270 { f->extent = -1;
|
H A D | sfsetbuf.c | 229 f->extent = e > f->here ? e : f->here; 263 { f->extent = (Sfoff_t)st.st_size; 272 f->extent = -1; 323 if(okmmap && size && (f->mode&SF_READ) && f->extent >= 0 ) 353 f->extent > 0 && f->extent < (Sfoff_t)_Sfpage ) 354 size = (((size_t)f->extent + SF_GRAIN-1)/SF_GRAIN)*SF_GRAIN; 393 f->extent = (!sf_malloc &&
|
H A D | sfsetfd.c | 105 ((f->mode&SF_READ) && f->extent < 0 && 120 f->extent = f->here = 0;
|
H A D | sfpurge.c | 83 if(f->extent >= 0 && f->endb > f->next)
|
H A D | sffilbuf.c | 62 /* current extent of available data */ 95 { if(r > n && f->extent < 0 && (f->flags&SF_SHARE) )
|
/ast/src/lib/libast/stdio/ |
H A D | fflush.c | 38 if (f->extent > 0)
|
/ast/src/lib/libast/disc/ |
H A D | sfdcseekable.c | 36 Sfoff_t extent; /* shadow extent */ member in struct:_skable_s 75 if(addr+n <= sk->extent) 78 if((r = (ssize_t)(sk->extent-addr)) > 0) 95 sk->extent += p; 128 addr += sk->extent; 136 else if(addr > sk->extent) 141 while(addr > sk->extent) 142 { if(addr > sk->extent+sizeof(buf) ) 144 else w = (int)(addr-sk->extent); [all...] |
H A D | sfdcsubstr.c | 37 Sfoff_t extent; /* size wanted */ member in struct:_subfile_s 59 if(su->extent >= 0 && (ssize_t)n > (io = (ssize_t)(su->extent - su->here)) ) 135 if(su->extent >= 0) 136 here = su->extent; 150 if(pos < 0 || (su->extent >= 0 && pos >= su->extent)) 172 Sfio_t* sfdcsubstream(Sfio_t* f, Sfio_t* parent, Sfoff_t offset, Sfoff_t extent) argument 174 Sfio_t* sfdcsubstream(f, parent, offset, extent) 178 Sfoff_t extent; /* desire [all...] |
H A D | sfdcunion.c | 106 reg Sfoff_t extent, s; local 113 { extent = 0; 115 extent += (sfsize(un->f[i].f) - un->f[i].lower); 116 addr += extent; 125 extent = 0; 128 if(addr < extent + s) 130 extent += s; 133 s = (addr-extent) + un->f[i].lower;
|
H A D | memfatal.c | 62 error(ERROR_SYSTEM|3, "storage allocator out of space on %lu byte request ( region %lu segments %lu busy %lu:%lu:%lu free %lu:%lu:%lu )", (size_t)obj, st.extent, st.n_seg, st.n_busy, st.s_busy, st.m_busy, st.n_free, st.s_free, st.m_free);
|
/ast/src/lib/libtk/generic/ |
H A D | tkCanvArc.c | 28 double extent; /* Extent of arc (angular distance from member in struct:ArcItem 53 * start+extent (see ComputeArcOutline). */ 74 {TK_CONFIG_DOUBLE, "-extent", (char *) NULL, (char *) NULL, 75 "90", Tk_Offset(ArcItem, extent), TK_CONFIG_DONT_SET_DEFAULT}, 128 double start, double extent)); 132 double start, double extent)); 135 double start, double extent)); 235 arcPtr->extent = 90; 382 i = arcPtr->extent/360.0; 383 arcPtr->extent 633 int start, extent; local [all...] |
/ast/src/lib/libast/vmalloc/ |
H A D | vmclose.c | 74 if(seg->extent == seg->size) /* root segment */ 76 else (*disc->memoryf)(vm,seg->addr,seg->extent,0,disc); 79 (*disc->memoryf)(vm,vmseg->addr,vmseg->extent,0,disc);
|
H A D | vmwalk.c | 52 if((rv = (*segf)(vm, seg->addr, seg->extent, vm->disc, handle)) < 0 ) 61 if((rv = (*segf)(vm, seg->addr, seg->extent, vm->disc, handle)) < 0 )
|
H A D | vmprivate.c | 73 { addr = (Vmuchar_t*)(*vm->disc->memoryf)(vm,seg->addr,seg->extent, 74 seg->extent+size,vm->disc); 76 addr += seg->extent; /* seg successfully extended */ 124 seg->extent += size; 137 seg->extent = size; 217 (*memoryf)(vm,caddr,seg->extent,seg->extent-less,vm->disc) != caddr) 220 seg->extent -= less; 241 if((*memoryf)(vm,caddr,seg->extent,0,vm->disc) == caddr)
|
H A D | vmstat.c | 69 st->extent = 0; 84 st->extent += seg->extent; 112 /**/ASSERT(st->extent >= (st->s_busy + st->s_free));
|
/ast/src/cmd/tests/vmalloc/ |
H A D | trandom.c | 88 tinfo("Arena: busy=(%u,%u) free=(%u,%u) extent=%u #segs=%d", 90 sb.extent, sb.n_seg); 95 tinfo("Compact: busy=(%u,%u) free=(%u,%u) extent=%u #segs=%d", 97 sb.extent, sb.n_seg); 120 sb.n_busy, sb.s_busy, sb.n_free, sb.s_free, sb.extent, sb.n_seg); 126 sb.n_busy, sb.s_busy, sb.n_free, sb.s_free, sb.extent, sb.n_seg); 136 sb.n_busy, sb.s_busy, sb.n_free, sb.s_free, sb.extent, sb.n_seg); 142 sb.n_busy, sb.s_busy, sb.n_free, sb.s_free, sb.extent, sb.n_seg); 149 sb.n_busy, sb.s_busy, sb.n_free, sb.s_free, sb.extent, sb.n_seg);
|
H A D | tsharemem.c | 78 tinfo("Process %s[pid=%d]: extent=%d busy=(n=%d,z=%d) free=(n=%d,z=%d)", 79 num, pid, vmst.extent, vmst.n_busy, vmst.s_busy, vmst.n_free, vmst.s_free); 178 tinfo("Statistics: store=%s extent=%d busy=(n=%d,z=%d) free=(n=%d,z=%d)", 179 store, vmst.extent, vmst.n_busy, vmst.s_busy, vmst.n_free, vmst.s_free);
|
/ast/src/lib/libast/include/ |
H A D | sfio_t.h | 35 Sfoff_t extent; /* current file size */ \ 83 (Sfoff_t)0, /* extent */ \ 111 (f)->extent = (Sfoff_t)(-1), /* extent */ \
|