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

/sendmail/libsmutil/
H A Dsafefile.c386 ** offset -- offset into fn to start checking from.
394 safedirpath(fn, uid, gid, user, flags, level, offset)
401 int offset;
416 if (level < 0 || offset < 0 || offset > strlen(fn))
424 sm_dprintf("safedirpath(%s, uid=%ld, gid=%ld, flags=%lx, level=%d, offset=%d):\n",
425 fn, (long) uid, (long) gid, flags, level, offset);
434 p = s + offset;
508 offset
[all...]
/sendmail/libsm/
H A Dsyslogio.c114 ** SM_SYSLOGSEEK -- position the syslog file offset
121 ** offset -- the new offset position relative to 'whence'
122 ** whence -- flag indicating start of 'offset'
129 sm_syslogseek(fp, offset, whence)
131 off_t offset;
H A Dfseek.c68 ** offset -- seek offset based on 'whence'
77 sm_io_seek(fp, timeout, offset, whence)
80 long SM_NONVOLATILE offset;
139 ** In order to seek relative to the current stream offset,
140 ** we have to first find the current stream offset a la
144 /* may adjust seek offset on append stream */
167 offset += curoff;
216 target = offset;
221 target = st.st_size + offset;
[all...]
H A Dsmstdio.c193 ** offset -- new location based on 'whence'
194 ** whence -- indicates "base" for 'offset'
201 sm_stdioseek(fp, offset, whence)
203 off_t offset;
211 return fseek(s, offset, whence);
H A Dstrio.c148 ** SM_STRSEEK -- position the offset pointer for the string
155 ** offset -- number of bytes offset from "base"
156 ** whence -- determines "base" for 'offset'
164 sm_strseek(fp, offset, whence)
166 off_t offset;
176 ret = offset;
179 ret = s->strio_offset + offset;
H A Dstdio.c38 ** These maintain the `known seek offset' for seek optimization.
121 ** Updates internal offset into file.
134 /* if the read succeeded, update the current offset */
163 ** SM_STDSEEK -- set the file offset position
167 ** offset -- how far to position from "base" (set by 'whence')
168 ** whence -- indicates where the "base" of the 'offset' to start
172 ** Success: the current offset
175 ** Updates the internal value of the offset.
179 sm_stdseek(fp, offset, whence)
181 off_t offset;
[all...]
/sendmail/libmilter/
H A Dsmfi.c45 size_t len, l1, l2, offset; local
63 offset = 0;
68 offset += MILTER_LEN_BYTES;
70 (void) memcpy(buf + offset, headerf, l1);
71 (void) memcpy(buf + offset + l1, headerv, l2);
179 size_t len, l0, l1, offset;
202 offset = l0;
208 SM_ASSERT(offset < len);
209 SM_ASSERT(offset + l1 <= len);
210 (void) memcpy(buf + offset, ar
244 size_t len, l0, l1, offset; local
[all...]
H A Dengine.c498 size_t offset; local
506 offset = MILTER_OPTLEN;
514 SM_ASSERT(offset + MILTER_LEN_BYTES < len);
516 (void) memcpy(buffer + offset, (void *) &v,
518 offset += MILTER_LEN_BYTES;
520 SM_ASSERT(offset + l <= len);
521 (void) memcpy(buffer + offset,
523 offset += l;
/sendmail/rmail/
H A Drmail.c97 off_t offset; local
133 for (offset = 0; ; )
148 else if (offset == 0)
267 if (offset != -1)
268 offset = (off_t)sm_io_tell(smioin, SM_TIME_DEFAULT);
345 if (lseek(STDIN_FILENO, offset, SEEK_SET) != offset)
/sendmail/sendmail/
H A Dsfsasl.c199 static unsigned int offset = 0; local
231 offset = 0;
243 if (outlen - offset > size)
246 (void) memcpy(buf, outbuf + offset, size);
247 offset += size;
253 len = outlen - offset;
254 (void) memcpy(buf, outbuf + offset, (size_t) len);
259 offset = 0;
H A Dbf.c64 off_t bf_offset; /* Currect file offset */
425 ** offset -- position to seek to
429 ** new file offset or -1 indicate failure
437 sm_bfseek(fp, offset, whence)
439 off_t offset;
451 bfp->bf_offset = offset;
455 bfp->bf_offset += offset;
459 bfp->bf_offset = bfp->bf_size + offset;
H A Dmime.c112 off_t offset; local
441 offset = sm_io_tell(e->e_dfp, SM_TIME_DEFAULT);
442 if (offset == -1)
471 /* return to the original offset for processing */
473 if (sm_io_seek(e->e_dfp, SM_TIME_DEFAULT, offset, SEEK_SET) < 0)
H A Dmilter.c2295 milter_getsymlist(m, buf, rlen, offset)
2299 int offset;
2307 while (offset + MILTER_LEN_BYTES < rlen)
2313 (void) memcpy((char *) &v, buf + offset, MILTER_LEN_BYTES);
2317 offset += MILTER_LEN_BYTES;
2332 len = strlen(buf + offset);
2336 buf + offset, nummac);
2341 m->mf_name, buf + offset, r);
2350 offset += len + 1;

Completed in 60 milliseconds