diff options
Diffstat (limited to 'usr/src/lib/libbc/inc/5include/time.h')
-rw-r--r-- | usr/src/lib/libbc/inc/5include/time.h | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/usr/src/lib/libbc/inc/5include/time.h b/usr/src/lib/libbc/inc/5include/time.h deleted file mode 100644 index 18902b668d..0000000000 --- a/usr/src/lib/libbc/inc/5include/time.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ -/* - * Copyright 1987 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* Copyright (c) 1984 AT&T */ -/* All Rights Reserved */ - -#ifndef __5include_time_h -#define __5include_time_h - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include <sys/stdtypes.h> - -#ifndef NULL -#define NULL 0 -#endif - -struct tm { /* see ctime(3) */ - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; - char *tm_zone; - long tm_gmtoff; -}; - -/* - * Following 2 lines are required to make CLK_TCK work. - * If they change here they have to change in <sys/unistd.h> as well. - */ -extern long sysconf(/* int name */); -#define _SC_CLK_TCK 3 /* clock ticks/sec */ -/* - * POSIX.1 uses CLK_TCK to specify units used by times(3). - * POSIX.1a doesn't use a name for this and says CLK_TCK is obsolescent, but - * we'll probably have to support it for a long time. - */ -#define CLK_TCK (sysconf(_SC_CLK_TCK)) -/* 881207 ANSI C draft uses CLOCKS_PER_SEC to specify units used by clock(3). */ -#define CLOCKS_PER_SEC 1000000L - -extern char * asctime(/* const struct tm *t */); -extern char * ctime(/* const time_t *t */); -extern struct tm * gmtime(/* const time_t *t */); -extern struct tm * localtime(/* const time_t *t */); -extern time_t mktime(/* struct tm *timeptr */); -extern size_t strftime(/* char *s, size_t maxsize, const char *format, - const struct tm *timeptr */); -extern time_t time(/* time_t *t */); -extern void tzset(/* void */); - -extern char *tzname[]; -#ifndef _POSIX_SOURCE -extern int daylight; -extern long timezone; -extern void tzsetwall(/* void */); -#endif /* !_POSIX_SOURCE */ - -#endif /* !__5include_time_h */ |