Initial revision
This commit is contained in:
15
modules/src/system/modtime.c
Normal file
15
modules/src/system/modtime.c
Normal file
@@ -0,0 +1,15 @@
|
||||
/* $Header$ */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
long
|
||||
sys_modtime(path)
|
||||
char *path;
|
||||
{
|
||||
struct stat st_buf;
|
||||
|
||||
if (stat(path, &st_buf) != 0)
|
||||
return -1L;
|
||||
return (long) st_buf.st_mtime;
|
||||
}
|
||||
Reference in New Issue
Block a user