From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5089c8e9bc1450e9daa3c49c15181680.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199602181512.QAA24465@mother.ludd.luth.se> Date: Sun, 18 Feb 1996 10:27:28 -0500 From: Noah Lee Gibbs Subject: Kernel Bug? I have a 1.3.43 kernel, so this may be fixed, but I don't have time to upgrade and check a new version right now. I did check against an older 1.1.XX Intel kernel, where this problem does not occur. Looking at the kernel, this seems to be because time.h defines time_t to be a long (or unsigned long, I forget) while asm/stat.h defines it to be an unsigned int for both new_stat and old_stat. I include the code that I found this bug with below. >From Mindy (CMU's Dylan bytecode interpreter), file comp/dump.c: void dump_setup_output(char *source, FILE *file) { struct stat buf; time_t tv; int statres; /* ---- Snip! ---- */ statres = stat(source, &buf); if(statres >= 0) fprintf(File, "# last modified on %s", ctime(&buf.st_mtime)); /* ---- Et cetera ---- */ The 1.1.XX intel kernel has no problem with this. However, my 1.3.43 with GCC 2.7.0 warns "passing arg 1 of ctime from incompatible pointer type".