Searched defs:resid (Results 1 - 25 of 118) sorted by relevance

12345

/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfread.c49 register size_t resid = size; local
67 if (resid == 0)
72 while ((int) resid > (r = fp->f_r))
78 resid -= r;
90 return size - resid;
95 return size - resid;
98 (void) memcpy((void *) p, (void *) fp->f_p, resid);
99 fp->f_r -= resid;
100 fp->f_p += resid;
/illumos-gate/usr/src/boot/lib/libstand/
H A Dwrite.c72 size_t resid; local
82 &resid);
85 f->f_offset += resid;
86 return (resid);
88 resid = bcount;
89 if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid)))
91 return (bcount - resid);
H A Dread.c72 size_t resid; local
81 btodb(f->f_offset), bcount, dest, &resid);
84 f->f_offset += resid;
85 return (resid);
94 resid = bcount;
98 ccount = imin(f->f_ralen, resid);
103 resid -= ccount;
104 if (resid == 0)
110 if (f->f_rabuf == NULL || resid >= SOPEN_RASIZE) {
115 errno = (f->f_ops->fo_read)(f, dest, resid,
[all...]
H A Dsplitfs.c50 static int splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid);
193 splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) argument
228 if (resid != NULL)
229 *resid = size - totread;
238 size_t resid; local
275 resid = 0;
276 errno = splitfs_read(f, tmp, min(seek_by, SEEK_BUF), &resid);
277 nread = min(seek_by, SEEK_BUF) - resid;
/illumos-gate/usr/src/lib/sun_fc/common/
H A DSun_fcAdapterCreateWWN.cc42 size_t resid = len; local
45 while (resid != 0) {
46 bytes = read(fd, ptr, resid);
48 resid -= bytes;
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_file.c199 ssize_t resid; local
204 UIO_SYSSPACE, 0, RLIM64_INFINITY, kcred, &resid);
207 bp->b_resid = resid;
H A Ddmu_diff.c53 ssize_t resid; /* have to get resid to get detailed errno */ local
62 RLIM64_INFINITY, CRED(), &resid);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/
H A Dccbase.c184 const char *resid; local
210 resid = name;
212 resid = name + pfxlen + 1;
230 return ops->resolve(context, cache, resid);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/
H A Dktbase.c135 const char *cp, *resid; local
151 resid = name;
153 resid = name + pfxlen + 1;
176 return (*tlist->ops->resolve)(context, resid, ktid);
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_strtab.c150 size_t resid, n; local
157 resid = sp->str_bufs[b] + sp->str_bufsz - buf;
158 n = MIN(resid, len);
178 size_t resid, n; local
187 resid = sp->str_bufs[b] + sp->str_bufsz - sp->str_ptr;
188 n = MIN(resid, len);
/illumos-gate/usr/src/uts/sun/sys/dada/targets/
H A Ddadpriv.h60 ulong_t resid; member in struct:dadkio_status
70 uint32_t resid; member in struct:dadkio_status32
/illumos-gate/usr/src/uts/common/exec/intp/
H A Dintp.c107 ssize_t resid; local
113 UIO_SYSSPACE, 0, (rlim64_t)0, CRED(), &resid))
115 if (resid > INTPSZ-2 || linep[0] != '#' || linep[1] != '!')
/illumos-gate/usr/src/uts/common/exec/shbin/
H A Dshbin.c138 ssize_t resid; local
145 UIO_SYSSPACE, 0, (rlim64_t)0, CRED(), &resid))
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dmisc.c101 size_t chunk, resid; local
104 resid = len;
105 while (resid > 0) {
106 chunk = min(sizeof(buf), resid);
108 resid -= chunk;
/illumos-gate/usr/src/lib/libproc/common/
H A DPidle.c45 size_t resid = n; local
47 while (resid > 0) {
57 len = MIN(resid, mp->map_pmap.pr_size - mapoff);
63 resid -= len;
68 return (n - resid);
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb3_encrypt.c184 int offset, resid, tlen, rc; local
195 resid = mbc->max_bytes - offset;
197 if (resid < (sr->msgsize + tlen)) {
207 resid -= tlen;
248 if (tlen > resid)
249 tlen = resid;
255 resid -= tlen;
260 while (resid > 0) {
267 if (tlen > resid)
268 tlen = resid;
317 int resid, tlen, rc; local
[all...]
/illumos-gate/usr/src/uts/common/io/comstar/lu/stmf_sbd/
H A Dsbd_zvol.c345 uint64_t resid, len = dbuf->db_data_size; local
363 resid = len;
373 resid -= size;
375 ASSERT(resid == 0);
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_demangle.c93 size_t resid; local
167 resid = (dmp->dm_buf + dmp->dm_len) - (dmp->dm_dem + len);
173 if ((dmp->dm_flags & MDB_DM_MANGLED) && resid > 3) {
177 (void) strncpy(p, name, resid - 3);
178 p[resid - 3] = '\0';
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioBuffer.cc312 off_t resid; local
338 resid = GetHeader().Time_to_Bytes(GetLength()) - offset;
339 if (resid <= 0) {
344 if (cnt > resid)
345 cnt = resid;
377 off_t resid; local
403 resid = (off_t)bufsize - offset;
404 if (resid <= 0) {
409 if (cnt > resid)
410 cnt = resid;
[all...]
/illumos-gate/usr/src/uts/common/exec/aout/
H A Daout.c282 ssize_t resid; local
288 (rlim64_t)0, CRED(), &resid))
291 if (resid != 0)
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_rmpp.c1783 uint32_t num_pkts, resid; local
1801 if ((resid = (buf_sz % cl_data_sz)) != 0)
1823 (resid == 0) ? ((buf_sz == 0) ? 0 : cl_data_sz) : resid;
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dcprboot.c344 size_t alsize, len, resid; local
410 for (resid = cdump.cdd_filesize; resid; resid -= len) {
430 len = min(PROM_MAX_READ, resid);
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_output.c278 uint_t resid; local
431 resid = fragfr;
433 uint_t part = min(resid, eng->e_nframes - eng->e_hidx);
434 eng->e_export(eng, part, fragfr - resid);
439 resid -= part;
440 } while (resid);
/illumos-gate/usr/src/uts/common/os/
H A Dacct.c383 ssize_t resid = 0; local
436 (rlim64_t)MAXOFF32_T, kcred, &resid);
437 if (error || resid)
H A Dinst_sync.c210 ssize_t resid; local
214 UIO_SYSSPACE, 0, rlimit, CRED(), &resid);
216 *vo += (offset_t)(count - resid);

Completed in 485 milliseconds

12345