version 1.2, 2007/07/26 16:10:16 |
version 1.3, 2008/11/14 11:58:08 |
|
|
/* |
/* |
* Copyright (c) 2004-2005 Todd C. Miller <Todd.Miller@courtesan.com> |
* Copyright (c) 2004-2005, 2008 Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
|
|
#include <compat.h> |
#include <compat.h> |
|
|
#ifndef lint |
#ifndef lint |
__unused static const char rcsid[] = "$Sudo: gettime.c,v 1.6.2.5 2007/06/12 01:28:41 millert Exp $"; |
__unused static const char rcsid[] = "$Sudo: gettime.c,v 1.8 2008/11/09 14:13:12 millert Exp $"; |
#endif /* lint */ |
#endif /* lint */ |
|
|
/* |
/* |
* Get the current time via gettimeofday() for systems with |
* Get the current time via gettimeofday() for systems with |
* timespecs in struct stat or, otherwise, using time(). |
* timespecs in struct stat or, otherwise, using time(). |
* XXX - configure check for gettimeofday() - XXX |
|
*/ |
*/ |
int |
int |
gettime(ts) |
gettime(ts) |