mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-12-21 07:30:05 +00:00
- utime(2) test: print access and modification times before exiting
This commit is contained in:
parent
c3959c4d16
commit
4b239cd6da
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Test by Devin Reade
|
* Test by Devin Reade
|
||||||
*
|
*
|
||||||
* $Id: utime.c,v 1.1 1997/02/28 05:12:52 gdr Exp $
|
* $Id: utime.c,v 1.2 1998/02/04 07:26:53 gdr-ftp Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -27,5 +27,7 @@ int main(int argc, char **argv) {
|
|||||||
err(1, "utime for %s failed", argv[1]);
|
err(1, "utime for %s failed", argv[1]);
|
||||||
}
|
}
|
||||||
printf("passed\n");
|
printf("passed\n");
|
||||||
|
printf("access time: %s\n", ctime(&utb.actime));
|
||||||
|
printf("modification time: %s\n", ctime(&utb.modtime));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user