Rechercher une page de manuel
utime
Langue: ru
Version: 1995-06-10 (openSuse - 09/10/07)
Section: 2 (Appels système)
éíñ
utime, utimes - ÉÚÍÅÎÉÔØ ×ÒÅÍÑ ÄÏÓÔÕÐÁ É/ÉÌÉ ÍÏÄÉÆÉËÁÃÉÉ inodeïâúïò
#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);
ïðéóáîéå
utime ÉÚÍÅÎÑÅÔ ×ÒÅÍÑ ÄÏÓÔÕÐÁ ÉÌÉ ÍÏÄÉÆÉËÁÃÉÉ inode, ÕËÁÚÁÎÎÏÇÏ Ó ÐÏÍÏÝØÀ filename, ÄÅÌÁÑ ÅÇÏ ÒÁ×ÎÙÍ ÐÏÌÑÍ actime É modtime ÂÕÆÅÒÁ buf, ÓÏÏÔ×ÅÔÓÔ×ÅÎÎÏ. åÓÌÉ buf ÒÁ×ÅÎ NULL, ÔÏ ×ÒÅÍÑ ÄÏÓÔÕÐÁ É ÍÏÄÉÆÉËÁÃÉÉ ÕÓÔÁÎÁ×ÌÉ×ÁÀÔÓÑ × ÔÅËÕÝÅÅ ×ÒÅÍÑ. óÔÒÕËÔÕÒÁ utimbuf ×ÙÇÌÑÄÉÔ ÔÁË:-
struct utimbuf { time_t actime; /* ×ÒÅÍÑ ÄÏÓÔÕÐÁ */ time_t modtime; /* ×ÒÅÍÑ ÍÏÄÉÆÉËÁÃÉÉ */ };
÷ ÂÉÂÌÉÏÔÅËÁÈ Linux DLL 4.4.1 utimes Ñ×ÌÑÅÔÓÑ ÐÒÏÓÔÏ ÏÂÅÒÔËÏÊ ÄÌÑ utime: tvp[0].tv_sec ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ actime, Á tvp[1].tv_sec ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ modtime. óÔÒÕËÔÕÒÁ timeval ×ÙÇÌÑÄÉÔ ÔÁË:
-
struct timeval { long tv_sec; /* ÓÅËÕÎÄÙ */ long tv_usec; /* ÍÉËÒÏÓÅËÕÎÄÙ */ };
÷ïú÷òáýáåíïå úîáþåîéå
÷ ÓÌÕÞÁÅ ÕÓÐÅÈÁ ×ÏÚ×ÒÁÝÁÅÔÓÑ ÎÏÌØ. ðÒÉ ÏÛÉÂËÅ ×ÏÚ×ÒÁÝÁÅÔÓÑ -1, Á errno ÕÓÔÁÎÁ×ÌÉ×ÁÅÔÓÑ ÄÏÌÖÎÙÍ ÏÂÒÁÚÏÍ.ïûéâëé
íÏÇÕÔ ÔÁËÖÅ ÐÒÏÉÚÏÊÔÉ ÄÒÕÇÉÅ ÏÛÉÂËÉ.- EACCES
- îÅ ÒÁÚÒÅÛÅÎÁ ÚÁÐÉÓØ × ÆÁÊÌ.
- ENOENT
- filename ÎÅ ÓÕÝÅÓÔ×ÕÅÔ.
óïïô÷åôóô÷éå óôáîäáòôáí
utime: SVr4, SVID, POSIX. SVr4 ÄÏËÕÍÅÎÔÉÒÕÅÔ ÄÏÐÏÌÎÉÔÅÌØÎÙÅ ËÏÄÙ ÏÛÉÂÏË EFAULT, EINTR, ELOOP, EMULTIHOP, ENAMETOOLONG, ENOLINK, ENOTDIR, ENOLINK, ENOTDIR, EPERM, EROFS.utimes: BSD 4.3
óíïôòé ôáëöå
stat(2)ðåòå÷ïä
Copyright (C) Alexey Mahotkin <alexm@hsys.msk.ru> 1999Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre