Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
/*******************************************************************************
**
** getdate.h
**
** static char sccsid[] = "@(#)getdate.h 1.6 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
**
** $XConsortium: getdate.h /main/3 1995/11/03 10:37:54 rswiston $
**
** RESTRICTED CONFIDENTIAL INFORMATION:
**
** The information in this document is subject to special
** restrictions in a confidential disclosure agreement between
** HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
** document outside HP, IBM, Sun, USL, SCO, or Univel without
** Sun's specific written approval. This document and all copies
** and derivative works thereof must be returned or destroyed at
** Sun's request.
**
** Copyright 1993 Sun Microsystems, Inc. All rights reserved.
**
*******************************************************************************/
/* *
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifndef _GETDATE_H
#define _GETDATE_H
#ifdef USG
struct timeb
{
time_t time;
unsigned short millitm;
short timezone;
short dstflag;
};
#else
#include <sys/timeb.h>
#endif
#include <time.h>
#include "ansi_c.h"
#define BOT_YEAR 1970
#define EOT_YEAR 2037
#define DATE_PARSE -1 /* date simply did not parse */
#define DATE_BBOT -2 /* date was before beginning of time */
#define DATE_AEOT -3 /* date was after end of time */
#define DATE_BMONTH -4 /* date had a bad month number */
#define DATE_BDAY -5 /* date had a bad day number */
#define DATE_BMIN -6 /* date had a bad minute number */
#define DATE_BHOUR -7 /* date had a bad hour number */
#define DATE_CONV -8 /* date converted poorly for am/pm/24hr */
extern time_t dateconv P((int, int, int, int, int, int, int, int, int));
extern time_t dayconv P((int, int, time_t));
extern time_t timeconv P((int, int, int, int));
extern time_t monthadd P((time_t, time_t));
extern time_t daylcorr P((time_t, time_t));
extern time_t cm_getdate P((char*, struct timeb *));
#endif