Provided by: manpages-it_0.3.4-5_all bug

NOME

       utime, utimes - cambia la data di accesso e/o di modifica di un inode

SINTASSI

       #include <sys/types.h>
       #include <utime.h>

       int utime(const char *filename, struct utimbuf *buf);

       #include <sys/time.h>

       int utimes(char *filename, struct timeval *tvp);

DESCRIZIONE

       utime  cambia  le date di accesso e modifica di un inode specificato da
       filename nelle date contenute nei campi actime e modtime  di  buf.   Se
       buf  è NULL, allora le date di accesso e modifica sono settate a quella
       corrente.  La struttura utimbuf è la seguente:

              struct utimbuf {
                      time_t actime;  /* access time */
                      time_t modtime; /* modification time */
              };

       Nelle librerie  Linux DLL 4.4.1, utimes è solo un  wrapper  per  utime:
       tvp[0].tv_sec  è  actime,  e  tvp[1].tv_sec  è  modtime.   La struttura
       timeval è la seguente:

              struct timeval {
                      long    tv_sec;         /* seconds */
                      long    tv_usec;        /* microseconds */
              };

VALORI RESTITUITI

       In caso di successo  viene  restituito  zero,  altrimento  -1  e  errno
       contiene il codice di errore verificatosi.

ERRORI

       Altri errori possono avvenire ( ndt : ? ).

       EACCES  Manca il privilegio di accesso in scrittura.

       ENOENT  filename non esiste.

CONFORME AGLI STANDARD

       utime:  SVr4,  SVID,  POSIX.   SVr4 documenta errori aggiuntivi EFAULT,
       EINTR, ELOOP,  EMULTIHOP,   ENAMETOOLONG,  ENOLINK,  ENOTDIR,  ENOLINK,
       ENOTDIR, EPERM, EROFS.
       utimes: BSD 4.3

VEDI ANCHE

       stat(2)