date.c (32756) | date.c (35773) |
---|---|
1/* 2 * Copyright (c) 1985, 1987, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. | 1/* 2 * Copyright (c) 1985, 1987, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. |
32 * 33 * $Id: date.c,v 1.22 1997/12/11 02:38:56 brian Exp $ | |
34 */ 35 36#ifndef lint 37static char const copyright[] = 38"@(#) Copyright (c) 1985, 1987, 1988, 1993\n\ 39 The Regents of the University of California. All rights reserved.\n"; 40#endif /* not lint */ 41 42#ifndef lint | 32 */ 33 34#ifndef lint 35static char const copyright[] = 36"@(#) Copyright (c) 1985, 1987, 1988, 1993\n\ 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint |
41#if 0 |
|
43static char const sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95"; | 42static char const sccsid[] = "@(#)date.c 8.2 (Berkeley) 4/28/95"; |
43#endif 44static const char rcsid[] = 45 "$Id$"; |
|
44#endif /* not lint */ 45 | 46#endif /* not lint */ 47 |
46#include <sys/param.h> | |
47#include <sys/time.h> 48 49#include <ctype.h> 50#include <err.h> | 48#include <sys/time.h> 49 50#include <ctype.h> 51#include <err.h> |
51#include <fcntl.h> | |
52#include <stdio.h> 53#include <stdlib.h> | 52#include <stdio.h> 53#include <stdlib.h> |
54#include <string.h> | |
55#include <syslog.h> 56#include <unistd.h> 57#include <locale.h> 58 59#include "extern.h" 60#include "vary.h" 61 62time_t tval; --- 221 unchanged lines hidden --- | 54#include <syslog.h> 55#include <unistd.h> 56#include <locale.h> 57 58#include "extern.h" 59#include "vary.h" 60 61time_t tval; --- 221 unchanged lines hidden --- |