Searched defs:offset (Results 1 - 25 of 121) sorted by relevance

12345

/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/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...]
/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;
H A Dttell.c49 static Sfoff_t discseek(Sfio_t* f, Sfoff_t offset, int type, Sfdisc_t* disc) argument
51 static Sfoff_t discseek(f, offset, type, disc)
53 Sfoff_t offset;
H A Dtmmap2read.c38 void* mmap(void* addr, size_t size, int x, int y, int z, off_t offset) argument
50 void* mmap64(void* addr, size_t size, int x, int y, int z, Sfoff_t offset) argument
/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/lib/libast/comp/
H A Dwordexp.c70 int offset; local
72 if(offset=staktell())
181 memcpy((void*)cp,stakptr(offset),c);
191 if(offset)
192 stakset(savebase,offset);
/ast/src/lib/libast/disc/
H A Dsfdcfilter.c115 static Sfoff_t filterseek(Sfio_t* f, Sfoff_t addr, int offset, Sfdisc_t* disc) argument
117 static Sfoff_t filterseek(f, addr, offset, disc)
120 int offset;
125 offset = 0;
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/vmalloc/
H A Dvmpool.c126 long offset; local
131 offset = -1L;
148 offset = (Vmuchar_t*)addr - (Vmuchar_t*)tp;
155 return offset;
H A Dvmlast.c279 long offset; local
285 offset = -1L;
286 else offset = (long)((Vmuchar_t*)addr - (Vmuchar_t*)vd->free);
290 return offset;
/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);
/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-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...]
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...]
/ast/src/lib/libast/astsa/
H A Doption.h68 int offset; /* char offset in argv[index] */ member in struct:Opt_s
/ast/src/lib/libast/include/
H A Doption.h67 int offset; /* char offset in argv[index] */ member in struct:Opt_s
/ast/src/lib/libdss/
H A Ddssfile.c285 file->offset += file->length;
293 file->length = sftell(file->io) - file->offset;
314 return file->seekf ? (*file->seekf)(file, DSS_TELL, file->dss->disc) : file->offset;
322 dssfseek(Dssfile_t* file, Sfoff_t offset) argument
324 return (file->seekf ? (*file->seekf)(file, offset, file->dss->disc) : sfseek(file->io, offset, SEEK_SET)) == offset ? 0 : -1;
368 dss_no_fseek(Dssfile_t* file, Sfoff_t offset, Dssdisc_t* disc) argument
/ast/src/lib/libodelta/
H A Dupdate.c131 update(int srcfd, long offset, int delfd, int tarfd) argument
155 lseek(srcfd,offset,0);
193 if(lseek(srcfd,offset+addr,0) < 0)
/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 DtkTextMark.c40 int offset, int maxX, int maxChars,
450 MarkLayoutProc(textPtr, indexPtr, segPtr, offset, maxX, maxChars,
455 int offset; /* Offset within segPtr corresponding to
661 int offset;
681 for (offset = 0, segPtr = index.linePtr->segPtr;
682 segPtr != NULL && offset < index.charIndex;
683 offset += segPtr->size, segPtr = segPtr->nextPtr) {
736 int offset;
755 for (offset = 0, segPtr = index.linePtr->segPtr;
756 segPtr != NULL && offset < inde
650 int offset; local
724 int offset; local
[all...]
/ast/src/cmd/pax/
H A Dpax-tnef.c35 off_t offset; member in struct:Tnef_s
101 tnef->offset = paxseek(pax, ap, (off_t)0, SEEK_CUR, 0);
132 tnef->offset = paxseek(pax, ap, (off_t)0, SEEK_CUR, 0) - size - 2;
195 n = tnef->offset;
196 tnef->offset = paxseek(pax, ap, (off_t)0, SEEK_CUR, 0);
234 if (paxseek(pax, ap, tnef->offset, SEEK_SET, 1) != tnef->offset)
/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/cmd/cs/
H A Dfs_env.c61 off_t offset; member in struct:__anon77
171 con->offset = 0;
189 else if ((n = con->size - con->offset) > 0)
197 op = con->data + con->offset;
198 con->offset += n;
210 n = con->offset + msg.argv[1].number;
222 ret = con->offset = n;

Completed in 289 milliseconds

12345