time.c revision bc298cd0f77dce2d452efd3e3d3153e2a9a17dbf
3711866d8b0d21676f3a900a03b566f7476912b8Tinderbox User * Copyright (C) 2004, 2005, 2007, 2009-2011 Internet Systems Consortium, Inc. ("ISC")
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews * Copyright (C) 1998-2003 Internet Software Consortium.
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews * Permission to use, copy, modify, and/or distribute this software for any
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews * purpose with or without fee is hereby granted, provided that the above
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews * copyright notice and this permission notice appear in all copies.
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews * PERFORMANCE OF THIS SOFTWARE.
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews/* $Id: time.c,v 1.38 2012/01/27 01:43:51 marka Exp $ */
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews#include <isc/string.h> /* Required for HP/UX (and others?) */
15bee593e70faca91a00331184fbbbc66080d422Mark Andrewsstatic int days[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
15bee593e70faca91a00331184fbbbc66080d422Mark Andrewsdns_time64_totext(isc_int64_t t, isc_buffer_t *target) {
return (ISC_R_RANGE);
t += secs;
t -= secs;
return (ISC_R_RANGE);
t -= secs;
return (ISC_R_NOSPACE);
return (ISC_R_SUCCESS);
isc_int64_t t;
int secs;
return (ISC_R_RANGE); \
return (DNS_R_SYNTAX);
return (DNS_R_SYNTAX);
return (DNS_R_SYNTAX);
return (ISC_R_SUCCESS);
return (result);
return (ISC_R_SUCCESS);