/* Field names for the lseek(2) call. */
#define VFS_LSEEK_FD m2_i1 /* int */
-#define VFS_LSEEK_OFF_LO m2_l1 /* off_t (low 32 bits) */
-#define VFS_LSEEK_OFF_HI m2_l2 /* off_t (high 32 bits) */
+#define VFS_LSEEK_OFF m2_ll1 /* off_t */
#define VFS_LSEEK_WHENCE m2_i2 /* int */
/* Field names for the truncate(2) and ftruncate(2) calls. */
memset(&m, 0, sizeof(m));
m.VFS_LSEEK_FD = fd;
- m.VFS_LSEEK_OFF_LO = ex64lo(offset);
- m.VFS_LSEEK_OFF_HI = ex64hi(offset);
+ m.VFS_LSEEK_OFF = offset;
m.VFS_LSEEK_WHENCE = whence;
if (_syscall(VFS_PROC_NR, VFS_LSEEK, &m) < 0) return( (off_t) -1);
- return( (off_t) make64(m.VFS_LSEEK_OFF_LO, m.VFS_LSEEK_OFF_HI));
+ return( (off_t) m.VFS_LSEEK_OFF);
}
int r;
if ((r = actual_lseek(fp, job_m_in.VFS_LSEEK_FD,
- job_m_in.VFS_LSEEK_WHENCE, make64(job_m_in.VFS_LSEEK_OFF_LO,
- job_m_in.VFS_LSEEK_OFF_HI), &newpos)) != OK)
+ job_m_in.VFS_LSEEK_WHENCE, job_m_in.VFS_LSEEK_OFF,
+ &newpos)) != OK)
return r;
/* insert the new position into the output message */
- job_m_out.VFS_LSEEK_OFF_LO = ex64lo(newpos);
- job_m_out.VFS_LSEEK_OFF_HI = ex64hi(newpos);
+ job_m_out.VFS_LSEEK_OFF = newpos;
return OK;
}