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

/netbsd-current/tools/compat/
H A Dpread.c40 off_t oldoff = lseek(d, offset, SEEK_SET); local
44 if (oldoff < 0)
50 lseek(d, oldoff, SEEK_SET);
H A Dpwrite.c40 off_t oldoff = lseek(d, offset, SEEK_SET); local
44 if (oldoff < 0)
50 lseek(d, oldoff, SEEK_SET);
/netbsd-current/sys/rump/net/lib/libshmif/
H A Dshmif_busops.c52 shmif_advance(uint32_t oldoff, uint32_t delta) argument
56 newoff = oldoff + delta;
135 shmif_nextpktoff(struct shmif_mem *busmem, uint32_t oldoff) argument
140 shmif_busread(busmem, &sp, oldoff, sizeof(sp), &dummy);
143 return shmif_advance(oldoff, sizeof(sp) + sp.sp_len);
/netbsd-current/usr.bin/shmif_dumpbus/
H A Dshmif_dumpbus.c224 uint32_t oldoff; local
232 oldoff = curbus;
238 &sp, oldoff, sizeof(sp), &wrap);
246 &sp2, oldoff, sizeof(sp2), &wrap);
/netbsd-current/sys/ufs/ext2fs/
H A Dext2fs_readwrite.c272 off_t oldoff = 0; /* XXX */ local
306 oldoff = uio->uio_offset;
310 if (vp->v_size < oldoff + bytelen) {
311 uvm_vnp_setwritesize(vp, oldoff + bytelen);
336 if (!async && oldoff >> 16 != uio->uio_offset >> 16) {
338 error = VOP_PUTPAGES(vp, (oldoff >> 16) << 16,
345 error = VOP_PUTPAGES(vp, trunc_page(oldoff),
/netbsd-current/sbin/svhlabel/
H A Dsvhlabel.c207 off_t oldoff; local
209 if ((oldoff = lseek(sd, 0, SEEK_CUR)) == -1) {
225 if (lseek(sd, oldoff, SEEK_SET) == -1) {
/netbsd-current/sys/ufs/ufs/
H A Dufs_readwrite.c245 off_t osize, origoff, oldoff, preallocoff, endallocoff, nsize; local
356 oldoff = uio->uio_offset;
385 newoff = oldoff + bytelen;
431 if (!async && oldoff >> 16 != uio->uio_offset >> 16) {
433 error = VOP_PUTPAGES(vp, (oldoff >> 16) << 16,
H A Dufs_dirhash.c712 ufsdirhash_move(struct inode *ip, struct direct *dirp, doff_t oldoff, argument
727 KASSERT(oldoff < dh->dh_dirblks * ip->i_ump->um_dirblksiz &&
730 slot = ufsdirhash_findslot(dh, dirp->d_name, dirp->d_namlen, oldoff);
/netbsd-current/sys/kern/
H A Dvfs_vnops.c1159 off_t oldoff, newoff; local
1175 oldoff = fp->f_offset;
1181 if (oldoff > 0 && delta > OFF_MAX - oldoff) {
1186 if (oldoff < 0 && delta < OFF_MIN - oldoff) {
1191 newoff = oldoff + delta;
1213 error = VOP_SEEK(vp, oldoff, newoff, cred);
H A Dvfs_wapbl.c1412 * wapbl_advance(size, off, oldoff, delta)
1414 * Given a byte offset oldoff into a circular queue of size bytes
1415 * starting at off, return a new byte offset oldoff + delta into
1419 wapbl_advance(size_t size, size_t off, off_t oldoff, size_t delta) argument
1425 KASSERT((oldoff == 0) || ((size_t)oldoff >= off));
1426 KASSERT(oldoff < (off_t)(size + off));
1428 if ((oldoff == 0) && (delta != 0))
1430 else if ((oldoff + delta) < (size + off))
1431 newoff = oldoff
3146 wapbl_replay_process_inodes(struct wapbl_replay *wr, off_t oldoff, off_t newoff) argument
[all...]
H A Dvnode_if.c1164 off_t oldoff,
1174 a.a_oldoff = oldoff;
1163 VOP_SEEK(struct vnode *vp, off_t oldoff, off_t newoff, kauth_cred_t cred) argument
/netbsd-current/sys/ufs/lfs/
H A Dulfs_readwrite.c239 off_t osize, origoff, oldoff, preallocoff, endallocoff, nsize; local
321 oldoff = uio->uio_offset;
350 newoff = oldoff + bytelen;
H A Dulfs_dirhash.c720 ulfsdirhash_move(struct inode *ip, LFS_DIRHEADER *dirp, doff_t oldoff, argument
736 KASSERT(oldoff < dh->dh_dirblks * ip->i_lfs->um_dirblksiz &&
740 lfs_dir_getnamlen(fs, dirp), oldoff);
/netbsd-current/sys/fs/msdosfs/
H A Dmsdosfs_vnops.c555 off_t oldoff; local
633 oldoff = uio->uio_offset;
646 if (!async && oldoff >> 16 != uio->uio_offset >> 16) {
648 error = VOP_PUTPAGES(vp, (oldoff >> 16) << 16,
658 error = VOP_PUTPAGES(vp, trunc_page(oldoff),
659 round_page(oldoff + bytelen), PGO_CLEANIT | PGO_SYNCIO);
/netbsd-current/sys/rump/librump/rumpvfs/
H A Drumpvnode_if.c370 off_t oldoff,
377 error = VOP_SEEK(vp, oldoff, newoff, cred);
369 RUMP_VOP_SEEK(struct vnode *vp, off_t oldoff, off_t newoff, struct kauth_cred *cred) argument
/netbsd-current/sys/nfs/
H A Dnfs_bio.c454 voff_t oldoff, origoff; local
506 oldoff = uio->uio_offset;
557 if ((oldoff & ~(nmp->nm_wsize - 1)) !=
561 trunc_page(oldoff & ~(nmp->nm_wsize - 1)),
/netbsd-current/sys/ufs/chfs/
H A Dchfs_vnops.c772 off_t osize, origoff, oldoff, preallocoff, endallocoff, nsize; local
881 oldoff = uio->uio_offset;
910 newoff = oldoff + bytelen;
957 if (!async && oldoff >> 16 != uio->uio_offset >> 16) {
959 error = VOP_PUTPAGES(vp, (oldoff >> 16) << 16,
/netbsd-current/sys/arch/arm/broadcom/
H A Dbcm53xx_eth.c1508 size_t oldoff = m->m_data - m->m_pktdat; local
1511 off = (oldoff + hlen > MHLEN) ? 0 : oldoff;
1516 if (((oldoff ^ off) & arm_dcache_align) != 0 || off < oldoff) {
/netbsd-current/external/gpl3/binutils/dist/gas/
H A Dwrite.c2946 addressT oldoff, newoff; local
2948 oldoff = relax_align (was_address + fragP->fr_fix,
2955 if (oldoff > fragP->fr_subtype)
2956 oldoff = 0;
2961 growth = newoff - oldoff;
/netbsd-current/external/gpl3/gdb.old/dist/gas/
H A Dwrite.c2889 addressT oldoff, newoff; local
2891 oldoff = relax_align (was_address + fragP->fr_fix,
2898 if (oldoff > fragP->fr_subtype)
2899 oldoff = 0;
2904 growth = newoff - oldoff;
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dlog.c2215 off_t oldoff; local
2219 oldoff = krb5_storage_seek(sp, 0, SEEK_CUR);
2220 if (oldoff == -1)
2229 (void) krb5_storage_seek(sp, oldoff, SEEK_SET);
2240 (void) krb5_storage_seek(sp, oldoff, SEEK_SET);
/netbsd-current/external/gpl3/binutils.old/dist/gas/
H A Dwrite.c2946 addressT oldoff, newoff; local
2948 oldoff = relax_align (was_address + fragP->fr_fix,
2955 if (oldoff > fragP->fr_subtype)
2956 oldoff = 0;
2961 growth = newoff - oldoff;
/netbsd-current/sbin/mount_portal/
H A Dpuffs_portal.c773 off_t oldoff, off_t newoff, const struct puffs_cred *pcr)
772 portal_node_seek(struct puffs_usermount *pu, puffs_cookie_t opc, off_t oldoff, off_t newoff, const struct puffs_cred *pcr) argument
/netbsd-current/lib/libp2k/
H A Dp2k.c1001 off_t oldoff, off_t newoff, const struct puffs_cred *pcr)
1009 rv = RUMP_VOP_SEEK(vp, oldoff, newoff, cred);
1000 p2k_node_seek(struct puffs_usermount *pu, puffs_cookie_t opc, off_t oldoff, off_t newoff, const struct puffs_cred *pcr) argument
/netbsd-current/sys/fs/puffs/
H A Dpuffs_vnops.c2338 off_t oldoff, newoff, origoff; local
2369 oldoff = uio->uio_offset;
2372 newoff = oldoff + bytelen;
2406 if (oldoff >> 16 != uio->uio_offset >> 16) {
2408 error = VOP_PUTPAGES(vp, oldoff & ~0xffff,

Completed in 608 milliseconds