+2001-03-08 John Hughes <john@Calva.COM>
+
+ * defs.h: rename wimpy get64 as powerful new LONG_LONG
+ * file.c: use LONG_LONG
+ * io.c: use LONG_LONG
+ * mem.c use LONG_LONG
+
2001-03-08 John Hughes <john@Calva.COM>
* acconfig.h: new #defines HAVE_LONG_LONG_OFF_T and HAVE_LONG_LONG_RLIM_T.
#define ALIGN64(tcp,arg) do { } while (0)
#endif
-#if _LFS64_LARGEFILE || FREEBSD
+#if HAVE_LONG_LONG
/* _l refers to the lower numbered u_arg,
* _h refers to the higher numbered u_arg
* if not we'll have to figure out how which of the other versions to use.
*/
-#define get64(_l,_h) (*(long long *) &(_l))
+#define LONG_LONG(_l,_h) (*(long long *) &(_l))
#else
#if _LITTLE_ENDIAN
-#define get64(_l,_h) ((long long)((unsigned long long)(_l) | ((unsigned long long)(_h)<<32)))
+#define LONG_LONG(_l,_h) \
+ ((long long)((unsigned long long)(_l) | ((unsigned long long)(_h)<<32)))
#else
-#define get64(_l,_h) ((long long)((unsigned long long)(_h) | ((unsigned long long)(_l)<<32)))
+#define LONG_LONG(_l,_h) \
+ ((long long)((unsigned long long)(_h) | ((unsigned long long)(_l)<<32)))
#endif
#endif
#endif
-
if (entering(tcp)) {
long long offset;
ALIGN64 (tcp, 1); /* FreeBSD aligns off_t args */
- offset = get64(tcp->u_arg [1], tcp->u_arg[2]);
+ offset = LONG_LONG(tcp->u_arg [1], tcp->u_arg[2]);
if (tcp->u_arg[3] == SEEK_SET)
tprintf("%ld, %llu, ", tcp->u_arg[0], offset);
else
if (entering(tcp)) {
ALIGN64 (tcp, 1);
printpath(tcp, tcp->u_arg[0]);
- tprintf(", %llu", get64(tcp->u_arg[1],tcp->u_arg[2]));
+ tprintf(", %llu", LONG_LONG(tcp->u_arg[1],tcp->u_arg[2]));
}
return 0;
}
if (entering(tcp)) {
ALIGN64 (tcp, 1);
tprintf("%ld, %llu", tcp->u_arg[0],
- get64(tcp->u_arg[1] ,tcp->u_arg[2]));
+ LONG_LONG(tcp->u_arg[1] ,tcp->u_arg[2]));
}
return 0;
}
else
printstr(tcp, tcp->u_arg[1], tcp->u_rval);
tprintf(", %lu, %#llx", tcp->u_arg[2],
- get64(tcp->u_arg[3], tcp->u_arg[4]));
+ LONG_LONG(tcp->u_arg[3], tcp->u_arg[4]));
}
return 0;
}
tprintf("%ld, ", tcp->u_arg[0]);
printstr(tcp, tcp->u_arg[1], tcp->u_arg[2]);
tprintf(", %lu, %#llx", tcp->u_arg[2],
- get64(tcp->u_arg[3], tcp->u_arg[4]));
+ LONG_LONG(tcp->u_arg[3], tcp->u_arg[4]));
}
return 0;
}
/* fd */
tprintf(", %ld, ", u_arg[4]);
/* offset */
- tprintf("%#llx", get64(u_arg[5], u_arg[6]));
+ tprintf("%#llx", LONG_LONG(u_arg[5], u_arg[6]));
}
return RVAL_HEX;
}