* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
+/** @file lib/syscalls.c
+ * @brief Error-checking library call wrappers
+ */
#include "common.h"
#include <unistd.h>
mustnotbeminus1("gettimeofday", gettimeofday(tv, tz));
}
+time_t xtime(time_t *whenp) {
+ struct timeval tv;
+
+ xgettimeofday(&tv, NULL);
+ if(whenp)
+ *whenp = tv.tv_sec;
+ return tv.tv_sec;
+}
+
/*
Local Variables:
c-basic-offset:2