Re: gmc: atime == ctime ?!



Sam Steingold wrote:
> 
> put both atime & ctime in the custom view of gmc and observe that they
> are reported to be identical for all files.
> is this a bug?

Check your files with 

===============8<----------------------------------------------------
#include <stdio.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>

int main (argc, argv)
int     argc;
char    *argv[];
{
    struct stat buf;
    
    while (--argc > 0)
       {
        stat(argv[argc], &buf);
        printf("\"%s\": atime - %s", argv[argc], ctime(&buf.st_atime));
        printf("\"%s\": mtime - %s", argv[argc], ctime(&buf.st_mtime));
        printf("\"%s\": ctime - %s", argv[argc], ctime(&buf.st_ctime));
        }
   return 0;
}
===============8<----------------------------------------------------

to see what your real m and c times are. Emacs creates new file
everytime you save file but vi should not. May be it is a glibc [or
Linux:)] problem

 Sergey



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]