File:  [MW Coherent from dump] / coherent / f / usr / include.78 / sys / __time.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * /usr/include/sys/__time.h
 *
 * Definition of __time_t.
 *
 * Revised: Wed May 19 10:27:34 1993 CDT
 */
#ifndef	__SYS___TIME_H__
#define	__SYS___TIME_H__

/*
 * This internal header file is intended as the sole point of definition for
 * the internal data type "__time_t", exactly equivalent to the ISO C data
 * type "time_t" but given an internal name so that header files may refer
 * to the type without exporting the user-level type unnecessarily.
 *
 * The System V ABI and the iBCS2 specification set define "time_t" as a long.
 * A POSIX.1 system is permitted to use "unsigned long" to extend the range of
 * time values since the POSIX.1 epoch, since comforming applications should
 * be using ((time_t) -1) to detect errors.
 *
 * For now, we resolve this conflict by use of the _POSIX_SOURCE feature-test
 * macro. If _POSIX_SOURCE is defined, then we use the "unsigned long" form as
 * the client has contracted us in a POSIX guise.
 */

#if	defined(_POSIX_SOURCE)

typedef	unsigned long	__time_t;

#else

typedef	long		__time_t;

#endif


#endif	/* ! defined (__SYS___TIME_H__) */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.