Diffstat (limited to 'mcon/U/d_time.U')
1 files changed, 66 insertions, 0 deletions
diff --git a/mcon/U/d_time.U b/mcon/U/d_time.U
new file mode 100644
@@ -0,0 +1,66 @@
+?RCS: $Id: d_time.U,v 220.127.116.11 1995/07/25 14:07:43 ram Exp $
+?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS: $Log: d_time.U,v $
+?RCS: Revision 18.104.22.168 1995/07/25 14:07:43 ram
+?RCS: patch56: typo fix, sytem -> system
+?RCS: Revision 22.214.171.124 1994/10/29 16:16:38 ram
+?RCS: patch36: now uses new Typedef unit to compute type information (ADO)
+?RCS: Revision 3.0 1993/08/18 12:07:45 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?X: Maybe <sys/types.h> should be included?
+?MAKE:d_time timetype: Csym Setvar Findhdr Myread Typedef
+?MAKE: -pick add $@ %<
+?S: This variable conditionally defines the HAS_TIME symbol, which indicates
+?S: that the time() routine exists. The time() routine is normaly
+?S: provided on UNIX systems.
+?S: This variable holds the type returned by time(). It can be long,
+?S: or time_t on BSD sites (in which case <sys/types.h> should be
+?S: included). Anyway, the type Time_t should be used.
+?C: This symbol, if defined, indicates that the time() routine exists.
+?C: This symbol holds the type returned by time(). It can be long,
+?C: or time_t on BSD sites (in which case <sys/types.h> should be
+?H:#$d_time HAS_TIME /**/
+?H:#define Time_t $timetype /* Time type */
+: see if time exists
+echo " "
+if set time val -f d_time; eval $csym; $val; then
+ echo 'time() found.' >&4
+ set time_t timetype long stdio.h sys/types.h
+ eval $typedef
+ echo " "
+ rp="What type is returned by time() on this system?"
+ . ./myread
+ echo 'time() not found, hope that will do.' >&4