Codul cu pricina 

#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>

main(int argc, char * * argv)
{
struct stat buf;

 if (stat(argv[1], &buf) == -1)
 {
   perror(argv[1]);
   exit(errno);
 }

 printf(" access time is %s modify time is %s change time is %s file size is %d
\n"
       , ctime(&(buf.st_atime))
       , ctime(&(buf.st_mtime))
       , ctime(&(buf.st_ctime))
       , buf.st_size);
}

Cand modific timpul de acces cu cat ( timpul de acces) nimic nu se
modifica . Cand folosesc touch -a toate campurile se modifica. Vreo
idee unde e problema in cod ?

--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui