#include <sys/param.h>
#include <sys/mount.h>
#include <sys/stat.h>
+
+#define stat64 stat
+#define HAVE_STAT64 1 /* Ugly hack */
#endif
#ifdef MAJOR_IN_SYSMACROS
}
#endif
+#ifndef FREEBSD
static void
realprintstat(tcp, statbuf)
struct tcb *tcp;
if (!abbrev(tcp)) {
tprintf("st_atime=%s, ", sprinttime(statbuf->st_atime));
tprintf("st_mtime=%s, ", sprinttime(statbuf->st_mtime));
-#ifndef FREEBSD
tprintf("st_ctime=%s}", sprinttime(statbuf->st_ctime));
-#else /* FREEBSD */
- tprintf("st_ctime=%s, ", sprinttime(statbuf->st_ctime));
- tprintf("st_flags=");
- if (statbuf->st_flags) {
- printflags(fileflags, statbuf->st_flags);
- } else
- tprintf("0");
- tprintf(", st_gen=%u}", statbuf->st_gen);
-#endif /* FREEBSD */
}
else
tprintf("...}");
realprintstat(tcp, &statbuf);
}
+#endif /* !FREEBSD */
#ifdef HAVE_STAT64
static void
if (!abbrev(tcp)) {
tprintf("st_atime=%s, ", sprinttime(statbuf.st_atime));
tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime));
+#ifndef FREEBSD
tprintf("st_ctime=%s}", sprinttime(statbuf.st_ctime));
+#else /* FREEBSD */
+ tprintf("st_ctime=%s, ", sprinttime(statbuf.st_ctime));
+ tprintf("st_flags=");
+ if (statbuf.st_flags) {
+ printflags(fileflags, statbuf.st_flags);
+ } else
+ tprintf("0");
+ tprintf(", st_gen=%u}", statbuf.st_gen);
+#endif /* FREEBSD */
}
else
tprintf("...}");
}
#endif /* linux && !IA64 */
-
+#ifndef FREEBSD
int
sys_stat(tcp)
struct tcb *tcp;
}
return 0;
}
+#endif
int
sys_stat64(tcp)
# endif /* !IA64 */
#endif /* linux */
+#ifndef FREEBSD
int
sys_fstat(tcp)
struct tcb *tcp;
}
return 0;
}
+#endif
int
sys_fstat64(tcp)
# endif /* !IA64 */
#endif
+#ifndef FREEBSD
int
sys_lstat(tcp)
struct tcb *tcp;
}
return 0;
}
+#endif
int
sys_lstat64(tcp)
/*
- * Automatically generated by ./../syscalls.pl on Wed Mar 7 12:22:58 2001
+ * Automatically generated by ./../syscalls.pl on Wed Mar 7 17:11:33 2001
*/
{ 1, 0, sys_syscall, "syscall" }, /* 0 */
{ 2, TF, sys_fchflags, "fchflags" }, /* 35 */
{ 1, 0, sys_sync, "sync" }, /* 36 */
{ 2, TS, sys_kill, "kill" }, /* 37 */
- { 2, TF, sys_stat, "stat" }, /* 38 */
+ { 2, TF, sys_stat64, "stat" }, /* 38 */
{ 1, 0, sys_getppid, "getppid" }, /* 39 */
- { 2, TF, sys_lstat, "lstat" }, /* 40 */
+ { 2, TF, sys_lstat64, "lstat" }, /* 40 */
{ 1, 0, sys_dup, "dup" }, /* 41 */
{ 1, 0, sys_pipe, "pipe" }, /* 42 */
{ 1, 0, sys_getegid, "getegid" }, /* 43 */
{ 3, TF|TP, sys_execve, "execve" }, /* 59 */
{ 1, 0, sys_umask, "umask" }, /* 60 */
{ 1, TF, sys_chroot, "chroot" }, /* 61 */
- { 2, TF, sys_fstat, "fstat" }, /* 62 */
+ { 2, TF, sys_fstat64, "fstat" }, /* 62 */
{ 4, 0, sys_getkerninfo, "getkerninfo" }, /* 63 */
{ 1, 0, sys_getpagesize, "getpagesize" }, /* 64 */
{ 3, 0, sys_msync, "msync" }, /* 65 */
{ -1, 0, printargs, "SYS_185" }, /* 185 */
{ -1, 0, printargs, "SYS_186" }, /* 186 */
{ -1, 0, printargs, "SYS_187" }, /* 187 */
- { 2, TF, sys_stat, "stat" }, /* 188 */
- { 2, TF, sys_fstat, "fstat" }, /* 189 */
- { 2, TF, sys_lstat, "lstat" }, /* 190 */
+ { 2, TF, sys_stat64, "stat" }, /* 188 */
+ { 2, TF, sys_fstat64, "fstat" }, /* 189 */
+ { 2, TF, sys_lstat64, "lstat" }, /* 190 */
{ 2, TF, sys_pathconf, "pathconf" }, /* 191 */
{ 2, 0, sys_fpathconf, "fpathconf" }, /* 192 */
{ -1, 0, printargs, "SYS_193" }, /* 193 */