#include <sys/uio.h>
#endif
-#ifdef HAVE_LONG_LONG_OFF_T
-/*
- * Hacks for systems that have a long long off_t
- */
-
-#define sys_pread64 sys_pread
-#define sys_pwrite64 sys_pwrite
-#endif
-
int
sys_read(struct tcb *tcp)
{
}
return 0;
}
+
+#if _LFS64_LARGEFILE
+int
+sys_pread64(struct tcb *tcp)
+{
+ if (entering(tcp)) {
+ printfd(tcp, tcp->u_arg[0]);
+ tprints(", ");
+ } else {
+ if (syserror(tcp))
+ tprintf("%#lx", tcp->u_arg[1]);
+ else
+ printstr(tcp, tcp->u_arg[1], tcp->u_rval);
+ tprintf(", %lu, ", tcp->u_arg[2]);
+ printllval(tcp, "%#llx", 3);
+ }
+ return 0;
+}
+
+int
+sys_pwrite64(struct tcb *tcp)
+{
+ if (entering(tcp)) {
+ printfd(tcp, tcp->u_arg[0]);
+ tprints(", ");
+ printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]);
+ tprintf(", %lu, ", tcp->u_arg[2]);
+ printllval(tcp, "%#llx", 3);
+ }
+ return 0;
+}
+#endif /* _LFS64_LARGEFILE */
+
#endif /* SVR4 */
#ifdef FREEBSD
}
#endif /* LINUX */
-#if _LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T
-int
-sys_pread64(struct tcb *tcp)
-{
- if (entering(tcp)) {
- printfd(tcp, tcp->u_arg[0]);
- tprints(", ");
- } else {
- if (syserror(tcp))
- tprintf("%#lx", tcp->u_arg[1]);
- else
- printstr(tcp, tcp->u_arg[1], tcp->u_rval);
- tprintf(", %lu, ", tcp->u_arg[2]);
- printllval(tcp, "%#llx", 3);
- }
- return 0;
-}
-
-int
-sys_pwrite64(struct tcb *tcp)
-{
- if (entering(tcp)) {
- printfd(tcp, tcp->u_arg[0]);
- tprints(", ");
- printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]);
- tprintf(", %lu, ", tcp->u_arg[2]);
- printllval(tcp, "%#llx", 3);
- }
- return 0;
-}
-#endif
-
int
sys_ioctl(struct tcb *tcp)
{
{ 4, TS, sys_rt_sigaction, "rt_sigaction" }, /* 5013 */
{ 4, TS, sys_rt_sigprocmask, "rt_sigprocmask"}, /* 5014 */
{ 3, 0, sys_ioctl, "ioctl" }, /* 5015 */
- { 6, TF, sys_pread64, "pread" }, /* 5016 */
+ { 6, TF, sys_pread, "pread" }, /* 5016 */
{ 6, TF, sys_pwrite64, "pwrite" }, /* 5017 */
{ 3, 0, sys_readv, "readv" }, /* 5018 */
{ 3, 0, sys_writev, "writev" }, /* 5019 */
{ 4, TS, sys_rt_sigaction, "rt_sigaction" }, /* 6013 */
{ 4, TS, sys_rt_sigprocmask, "rt_sigprocmask"}, /* 6014 */
{ 3, 0, sys_ioctl, "ioctl" }, /* 6015 */
- { 6, TF, sys_pread64, "pread" }, /* 6016 */
- { 6, TF, sys_pwrite64, "pwrite" }, /* 6017 */
+ { 6, TD, sys_pread, "pread" }, /* 6016 */
+ { 6, TD, sys_pwrite, "pwrite" }, /* 6017 */
{ 3, 0, sys_readv, "readv" }, /* 6018 */
{ 3, 0, sys_writev, "writev" }, /* 6019 */
{ 2, TF, sys_access, "access" }, /* 6020 */
int sys_ppoll();
int sys_prctl();
int sys_pread();
-int sys_pread64();
int sys_preadv();
int sys_pselect6();
int sys_ptrace();
int sys_process_vm_readv();
int sys_putpmsg();
int sys_pwrite();
-int sys_pwrite64();
int sys_pwritev();
int sys_query_module();
int sys_quotactl();
if (qual_flags[tcp->u_arg[0]] & QUAL_READ) {
if (sysent[tcp->scno].sys_func == sys_read ||
sysent[tcp->scno].sys_func == sys_pread ||
+#ifdef SVR4
+#if _LFS64_LARGEFILE
sysent[tcp->scno].sys_func == sys_pread64 ||
+#endif
+#endif
sysent[tcp->scno].sys_func == sys_recv ||
sysent[tcp->scno].sys_func == sys_recvfrom)
dumpstr(tcp, tcp->u_arg[1], tcp->u_rval);
if (qual_flags[tcp->u_arg[0]] & QUAL_WRITE) {
if (sysent[tcp->scno].sys_func == sys_write ||
sysent[tcp->scno].sys_func == sys_pwrite ||
+#ifdef SVR4
+#if _LFS64_LARGEFILE
sysent[tcp->scno].sys_func == sys_pwrite64 ||
+#endif
+#endif
sysent[tcp->scno].sys_func == sys_send ||
sysent[tcp->scno].sys_func == sys_sendto)
dumpstr(tcp, tcp->u_arg[1], tcp->u_arg[2]);