Searched refs:offset (Results 1 - 25 of 182) sorted by relevance

12345678

/ast/src/cmd/pzip/
H A Drectify.c51 " [+T idlen id size unit [offset]]?Defines a sized record"
55 " [+id?type identifier, starting at record offset 0]"
59 " [+offset?if \aunit\a > 0 then this byte multiplied by"
68 "[o:offset?Start description listing at \aoffset\a.]#[offset:=0]"
85 unsigned long offset; member in struct:Item_s
97 int offset; member in struct:__anon196
102 Sfoff_t offset; member in struct:__anon197
111 Sfoff_t offset; member in struct:__anon198
155 register unsigned long offset; local
262 Sfoff_t offset; local
[all...]
/ast/src/lib/libcmd/
H A Drevlib.c33 * copy the lines starting at offset <start> from in <in> to <out>
41 off_t offset; local
54 if((offset = sfseek(in,(off_t)0,SEEK_END)) <= start)
56 offset = rounddown(offset,BUFSIZE);
60 if(offset < start)
62 n -= (start-offset);
63 offset = start;
65 sfseek(in, offset, SEEK_SET);
101 if(offset <
[all...]
H A Dtail.c42 "as the current offset.]"
57 "for \alines\a indicates an offset from the end of the file.]"
60 "for \achars\a indicates an offset from the end of the file.]"
149 * if file is seekable, position file to tail location and return offset
157 register Sfoff_t offset; local
169 if ((offset = last - number) < first)
171 return offset;
175 if ((offset = last - SF_BUFSIZE) < first)
176 offset = first;
177 sfseek(fp, offset, SEEK_SE
208 Sfoff_t offset[2]; local
259 Sfoff_t offset; local
413 Sfoff_t offset; local
[all...]
H A Dhead.c92 if (opt_info.offset && argv[opt_info.index][opt_info.offset] == 'c')
95 opt_info.offset++;
/ast/src/lib/libast/misc/
H A Doptjoin.c32 * possible starting at (opt_info.index,opt_info.offset) using
75 last_offset = opt_info.offset;
102 if (opt_info.again > 0 && (!err || err_index < opt_info.index || err_index == opt_info.index && err_offset < opt_info.offset))
106 err_offset = opt_info.offset;
110 opt_info.offset = state->poffset;
112 if (!rep || opt_info.index != last_index || opt_info.offset != last_offset)
123 opt_info.offset = 0;
H A Dcmdlib.h43 int offset; /* post arg offset */ \
/ast/src/lib/libast/disc/
H A Dsfdcdos.c83 static struct map *getmapping(Dosdisc_t *dp, Sfoff_t offset, register int whence) argument
85 static struct map *getmapping(dp, offset, whence)
87 Sfoff_t offset;
93 if(offset <= dp->begin)
95 dummy.logical = dummy.physical = offset;
104 while((++mp)->logical && (whence==SEEK_CUR?mp->physical:mp->logical) <= offset);
224 * returns the current offset
225 * <offset> must be in the current buffer
226 * if <whence> is SEEK_CUR, physical offset converted to logical offset
230 cur_offset(Dosdisc_t *dp, Sfoff_t offset,Sfio_t *iop,register int whence) argument
276 dos_seek(Sfio_t *iop, Sfoff_t offset, register int whence, Sfdisc_t* disc) argument
[all...]
H A Dsfdcsubstr.c36 Sfoff_t offset; /* starting offset */ member in struct:_subfile_s
68 here = su->here + su->offset;
141 else here -= su->offset;
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)
177 Sfoff_t offset; /* offset in f */
185 /* establish that we can seek to offset */
186 if((here = sfseek(parent,(Sfoff_t)0,SEEK_CUR)) < 0 || sfseek(parent,offset,SEEK_SE
[all...]
/ast/src/lib/libast/tm/
H A Dtmweek.c32 static unsigned char offset[7][3] = variable
63 week = (tm->tm_yday + offset[day][type]) / 7;
79 tm->tm_mday = week * 7 - offset[d][type] + ((day || type != 2) ? day : 7);
/ast/src/cmd/builtin/
H A Dstrings.c47 "[t:radix|format?Write each string preceded by its byte offset from the"
48 " start of the file. The offset radix is determined by:]:[format]{"
136 off_t offset; local
147 if ((offset = sfseek(in, (off_t)0, SEEK_CUR)) < 0)
148 offset = 0;
149 offset--;
156 offset += c;
167 if (sfprintf(out, fmt, sizeof(offset), offset - (inend - inp) - n) < 0)
172 n = sfprintf(out, fmt, sizeof(offset), offse
[all...]
/ast/src/lib/libardir/
H A Dar-pdp11.c45 off_t current; /* current dirent offset */
46 off_t offset; /* next dirent offset */ member in struct:State_s
88 state->offset = MAGIC_SIZE;
103 state->current = state->offset;
104 if (lseek(ar->fd, state->offset, SEEK_SET) != state->offset)
123 ar->dirent.offset = state->offset += sizeof(state->header);
125 state->offset
[all...]
H A Dar-s5r0.c59 off_t current; /* current dirent offset */
60 off_t offset; /* next dirent offset */ member in struct:State_s
61 off_t patch; /* symdir time patch offset */
118 state->offset = sizeof(Header_t) + swapget(0, hdr->ar_syms, sizeof(hdr->ar_syms)) * sizeof(Symbol_t);
133 state->current = state->offset;
134 if (lseek(ar->fd, state->offset, SEEK_SET) != state->offset)
153 ar->dirent.offset = state->offset
[all...]
H A Dar-port.c57 off_t current; /* current dirent offset */
58 off_t offset; /* next dirent offset */ member in struct:State_s
59 off_t patch; /* symdir time patch offset */
138 state->offset = MAGIC_SIZE;
154 state->offset += sizeof(Header_t) + size + (size & 01);
173 if (lseek(ar->fd, state->offset, SEEK_SET) < 0)
199 state->offset += sizeof(state->header) + size;
251 state->current = state->offset;
252 if (lseek(ar->fd, state->offset, SEEK_SE
[all...]
H A Dar-aix.c61 off_t current; /* current dirent offset */
62 off_t offset; /* next dirent offset */ member in struct:State_s
63 off_t last; /* last member offset */
111 state->offset = m;
132 if ((state->current = state->offset) >= state->last)
134 if (lseek(ar->fd, state->offset, SEEK_SET) != state->offset)
178 ar->dirent.offset = state->offset
[all...]
H A Dar-aixbig.c62 off_t current; /* current dirent offset */
63 off_t offset; /* next dirent offset */ member in struct:State_s
64 off_t last; /* last member offset */
112 state->offset = m;
133 if ((state->current = state->offset) >= state->last)
135 if (lseek(ar->fd, state->offset, SEEK_SET) != state->offset)
179 ar->dirent.offset = state->offset
[all...]
/ast/src/lib/libast/dir/
H A Dseekdir.c44 off_t offset; /* offset within block */
/ast/src/cmd/3d/
H A Dcopy.c63 off_t offset; local
77 offset = 0;
88 offset += mapsize;
90 if (mmap(mapbuf, mapsize, PROT_READ, MAP_SHARED|MAP_FIXED, rfd, offset) == (caddr_t)-1)
/ast/src/cmd/tests/sfio/
H A Dtnoseek.c27 Sfoff_t discseek(Sfio_t* f, Sfoff_t offset, int type, Sfdisc_t* disc) argument
29 Sfoff_t discseek(f,offset,type,disc)
31 Sfoff_t offset;
/ast/src/lib/libtk/generic/
H A DtkTextIndex.c109 * offset within segment for the index.
115 * integer offset within the segment of the character
127 int *offsetPtr; /* Where to store offset within
128 * segment, or NULL if offset isn't
132 int offset;
134 for (offset = indexPtr->charIndex, segPtr = indexPtr->linePtr->segPtr;
135 offset >= segPtr->size;
136 offset -= segPtr->size, segPtr = segPtr->nextPtr) {
140 *offsetPtr = offset;
152 * procedure returns the offset o
130 int offset; local
168 int offset; local
738 int c, offset; local
[all...]
H A DtkImgPPM.c175 block.offset[0] = 0;
176 block.offset[1] = 0;
177 block.offset[2] = 0;
181 block.offset[0] = 0;
182 block.offset[1] = 1;
183 block.offset[2] = 2;
274 pixLinePtr = blockPtr->pixelPtr + blockPtr->offset[0];
275 greenOffset = blockPtr->offset[1] - blockPtr->offset[0];
276 blueOffset = blockPtr->offset[
[all...]
H A DtkClipboard.c25 int offset, char *buffer, int maxBytes));
27 int offset, char *buffer, int maxBytes));
29 ClientData clientData, int offset, char *buffer,
54 ClipboardHandler(clientData, offset, buffer, maxBytes)
56 int offset; /* Return selection bytes starting at this
57 * offset. */
69 * Skip to buffer containing offset byte
76 if (scanned + cbPtr->length > offset) {
87 srcPtr = cbPtr->buffer + (offset - scanned);
89 length = cbPtr->length - (offset
[all...]
/ast/src/cmd/ksh93/sh/
H A Dstreval.c59 #define stakpush(v,val,type) ((((v)->offset=round(staktell(),pow2size(sizeof(type)))),\
60 stakseek((v)->offset+sizeof(type)), \
61 *((type*)stakptr((v)->offset)) = (val)),(v)->offset)
74 int offset; /* offset for pushchr macro */ member in struct:vars
806 int offset; local
812 offset = stakpush(vp,0,short);
816 *((short*)stakptr(offset)) = staktell();
904 int offset; local
959 int offset; local
[all...]
/ast/src/cmd/dsslib/ip_t/
H A Dbgp.h181 #define BGPCLUSTER(r) ((Bgpnum_t*)((r)->data+(r)->cluster.offset))
182 #define BGPCOMMUNITY(r) ((Bgpasn_t*)((r)->data+(r)->community.offset))
183 #define BGPEXTENDED(r) ((Bgpasn_t*)((r)->data+(r)->extended.offset))
184 #define BGPLABELS(r) ((Bgpasn_t*)((r)->data+(r)->labels.offset))
185 #define BGPPATH(r) ((Bgpasn_t*)((r)->data+(r)->path.offset))
186 #define BGPPATH32(r) ((Bgpnum_t*)((r)->data+(r)->path32.offset))
197 Bgpasn_t offset; /* Bgproute_t.data[] offset */ member in struct:Bgpvec_s
/ast/src/cmd/dsslib/bgp/
H A Dbgp-fixed.c133 swapmem(state->swap, rp->data + rp->cluster.offset, rp->data + rp->cluster.offset, rp->cluster.size * sizeof(Bgpnum_t));
138 swapmem(state->swap & 1, rp->data + rp->path.offset, rp->data + rp->path.offset, rp->path.size * sizeof(Bgpasn_t));
140 swapmem(state->swap & 1, rp->data + rp->community.offset, rp->data + rp->community.offset, rp->community.size * sizeof(Bgpasn_t));
/ast/src/lib/libvcodex/Vcmisc/
H A Dvcbwt.c104 ssize_t base[256], *offset; local
131 if(!(offset = (ssize_t*)malloc((sz+1)*sizeof(ssize_t))) )
134 /* base and offset vector for bytes */
139 offset[n] = 0;
141 { offset[n] = base[dt[n]];
154 n = base[*o] + offset[n];
157 free(offset);

Completed in 1257 milliseconds

12345678