Home
last modified time | relevance | path

Searched refs:extent (Results 1 – 25 of 91) sorted by relevance

1234

/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
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 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 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)) ) )
123 { if(fr->extent < 0)
125 else if((fr->extent-fr->here) > SF_NMAP*SF_PAGE)
127 else w = (ssize_t)(fr->extent-fr->here);
134 (n < 0 || fr->extent >= 0) )
138 if(fw && fw->extent >= 0 && w <= (fw->endb-fw->next) )
159 if(n > 0 && fr->extent < 0 && (fr->flags&SF_SHARE) )
[all …]
H A Dsfrd.c46 (f->mode&SF_WRITE) && f->extent < 0 ) in _sfwrsync()
55 (f->mode&SF_WRITE) && f->extent < 0 ) in _sfwrsync()
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 < f->here)
283 f->extent = f->here;
H A Dsfwr.c178 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 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.c229 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 Dsfset.c78 if(f->extent < 0)
94 if(!(f->flags&SF_SHARE) || f->extent < 0)
H A Dsfsetfd.c105 ((f->mode&SF_READ) && f->extent < 0 &&
120 f->extent = f->here = 0;
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfdcseekable.c75 if(addr+n <= sk->extent)
95 sk->extent += p;
128 addr += sk->extent;
136 else if(addr > sk->extent)
141 while(addr > sk->extent)
144 else w = (int)(addr-sk->extent);
148 sk->extent += w;
155 if(addr > sk->extent)
186 sk->discard += sk->extent;
187 sk->extent = 0;
[all …]
H A Dsfdcsubstr.c37 Sfoff_t extent; /* size wanted */ member
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) in sfdcsubstream() argument
174 Sfio_t* sfdcsubstream(f, parent, offset, extent) in sfdcsubstream()
178 Sfoff_t extent; /* desired size */
207 su->extent = extent;
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.c62 …n %lu segments %lu busy %lu:%lu:%lu free %lu:%lu:%lu )", (size_t)obj, st.extent, st.n_seg, st.n_bu… in nomalloc()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_vstafs.c192 char extent; in vstafs_read() local
205 extent = 0; in vstafs_read()
212 extent = 1; in vstafs_read()
217 ext_size = a[extent+1].a_len * 512; in vstafs_read()
219 while (extent < FILE_INFO->extents && offset>ext_size); in vstafs_read()
225 extent = 0; in vstafs_read()
233 for (curr_ext=extent; in vstafs_read()
H A Dfsys_iso9660.c150 unsigned int extent; in iso9660_dir() local
170 extent = idr->extent.l; in iso9660_dir()
174 if (!iso9660_devread(extent, 0, ISO_SECTOR_SIZE, (char *)DIRREC)) in iso9660_dir()
179 extent++; in iso9660_dir()
343 if (!iso9660_devread(ce_ptr->u.ce.extent.l, 0, ISO_SECTOR_SIZE, RRCONT_BUF)) in iso9660_dir()
378 INODE->file_start = idr->extent.l; in iso9660_dir()
H A Diso9660.h100 iso_32bit_t extent; member
157 iso_32bit_t extent; member
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmprivate.c73 { 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 Dvmclose.c74 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 Dvmstat.c69 st->extent = 0;
84 st->extent += seg->extent;
112 /**/ASSERT(st->extent >= (st->s_busy + st->s_free));
H A Dvmwalk.c52 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 Dvmlast.c202 addr = (*vm->disc->memoryf)(vm, seg->addr, seg->extent,
203 seg->extent+ds, vm->disc);
207 seg->extent += ds;
341 s = seg->extent;
/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/
H A Dsfio_t.h35 Sfoff_t extent; /* current file size */ \
111 (f)->extent = (Sfoff_t)(-1), /* extent */ \
/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dfile.c206 size_t extent; in recover_padding() local
229 extent = gelf_getehdr(elf, &ehdr) in recover_padding()
237 if (extent > file->ar_size) in recover_padding()
240 padding = file->ar_size - extent; in recover_padding()
259 if (t > extent) in recover_padding()
260 extent = t; in recover_padding()
265 if (extent > file->ar_size) in recover_padding()
267 padding = file->ar_size - extent; in recover_padding()
286 char *p = file->ar_contents + extent; in recover_padding()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/stdio/
H A Dfflush.c38 if (f->extent > 0) in fflush()
/illumos-gate/usr/src/boot/lib/libstand/
H A Dcd9660.c328 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
417 bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
435 fp->f_bno = isonum_733(rec.extent) + isonum_711(rec.ext_attr_length); in cd9660_open()
573 d->d_fileno = isonum_733(ep->extent); in cd9660_readdir()

1234