Searched refs:extent (Results 1 - 25 of 67) sorted by relevance

123

/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfresize.c40 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 Dsfsize.c47 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 Dsfmove.c65 { 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 Dsfrd.c46 (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 Dsfset.c68 if(f->extent < 0)
84 if(!(f->flags&SF_SHARE) || f->extent < 0)
H A Dsfwr.c175 if(f->extent >= 0)
178 { if(f->here != f->extent || (f->flags&SF_SHARE))
180 f->extent = f->here;
199 f->here == f->extent && (f->here%_Sfpage) == 0)
215 { if((f->flags&(SF_APPENDWR|SF_PUBLIC)) && f->extent >= 0 )
218 if(f->extent >= 0 && f->here > f->extent)
219 f->extent = f->here;
H A Dsftell.c54 if(f->extent >= 0 && (f->flags&(SF_SHARE|SF_APPENDWR)) )
H A Dsfseek.c46 { 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 Dsfsetbuf.c217 f->extent = e > f->here ? e : f->here;
249 { f->extent = (Sfoff_t)st.st_size;
258 f->extent = -1;
301 if(okmmap && size && (f->mode&SF_READ) && f->extent >= 0 )
331 f->extent > 0 && f->extent < (Sfoff_t)_Sfpage )
332 size = (((size_t)f->extent + SF_GRAIN-1)/SF_GRAIN)*SF_GRAIN;
371 f->extent = (!sf_malloc &&
/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dfflush.c38 if (f->extent > 0)
/illumos-gate/usr/src/lib/libast/common/disc/
H A Dsfdcseekable.c36 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 Dsfdcsubstr.c37 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 Dsfdcunion.c106 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 Dmemfatal.c60 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);
/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmclose.c75 if(seg->extent == seg->size)
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 Dvmwalk.c54 { rv = (*segf)(vm, seg->addr, seg->extent, vm->disc, handle);
67 { rv = (*segf)(vm, seg->addr, seg->extent, vm->disc, handle);
H A Dvmprivate.c87 addr = (Vmuchar_t*)(*memoryf)(vm,seg->addr,seg->extent,
88 seg->extent+size-s,vm->disc);
93 addr += seg->extent;
150 seg->extent += size;
163 seg->extent = size;
242 (*memoryf)(vm,caddr,seg->extent,seg->extent-less,vm->disc) != caddr)
245 seg->extent -= less;
266 if((*memoryf)(vm,caddr,seg->extent,0,vm->disc) == caddr)
H A Dvmstat.c65 st->extent = 0;
77 st->extent += seg->extent;
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_vstafs.c192 char extent; local
205 extent = 0;
212 extent = 1;
217 ext_size = a[extent+1].a_len * 512;
219 while (extent < FILE_INFO->extents && offset>ext_size);
225 extent = 0;
233 for (curr_ext=extent;
H A Dfsys_iso9660.c150 unsigned int extent; local
170 extent = idr->extent.l;
174 if (!iso9660_devread(extent, 0, ISO_SECTOR_SIZE, (char *)DIRREC))
179 extent++;
334 /* preserve name before loading new extent. */
343 if (!iso9660_devread(ce_ptr->u.ce.extent.l, 0, ISO_SECTOR_SIZE, RRCONT_BUF))
378 INODE->file_start = idr->extent.l;
/illumos-gate/usr/src/lib/libast/amd64/include/ast/
H A Dsfio_t.h35 Sfoff_t extent; /* current file size */ \
76 (Sfoff_t)0, /* extent */ \
104 (f)->extent = (Sfoff_t)(-1), /* extent */ \
/illumos-gate/usr/src/lib/libast/common/include/
H A Dsfio_t.h35 Sfoff_t extent; /* current file size */ \
76 (Sfoff_t)0, /* extent */ \
104 (f)->extent = (Sfoff_t)(-1), /* extent */ \
/illumos-gate/usr/src/lib/libast/i386/include/ast/
H A Dsfio_t.h35 Sfoff_t extent; /* current file size */ \
76 (Sfoff_t)0, /* extent */ \
104 (f)->extent = (Sfoff_t)(-1), /* extent */ \
/illumos-gate/usr/src/lib/libast/sparc/include/ast/
H A Dsfio_t.h35 Sfoff_t extent; /* current file size */ \
76 (Sfoff_t)0, /* extent */ \
104 (f)->extent = (Sfoff_t)(-1), /* extent */ \
/illumos-gate/usr/src/lib/libast/sparcv9/include/ast/
H A Dsfio_t.h35 Sfoff_t extent; /* current file size */ \
76 (Sfoff_t)0, /* extent */ \
104 (f)->extent = (Sfoff_t)(-1), /* extent */ \

Completed in 83 milliseconds

123