|author||rmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>||2006-08-24 12:32:52 +0000|
|committer||rmanfredi <rmanfredi@190e5f8e-a817-0410-acf6-e9863daed9af>||2006-08-24 12:32:52 +0000|
Moving project to sourceforge.
git-svn-id: https://dist.svn.sourceforge.net/svnroot/dist/trunk/dist@1 190e5f8e-a817-0410-acf6-e9863daed9af
Diffstat (limited to 'mcon/U/d_times.U')
1 files changed, 74 insertions, 0 deletions
diff --git a/mcon/U/d_times.U b/mcon/U/d_times.U
new file mode 100644
@@ -0,0 +1,74 @@
+?RCS: Copyright (c) 1991-1997, 2004-2006, 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 4.0.
+?RCS: $Log: d_times.U,v $
+?RCS: Revision 220.127.116.11 1995/07/25 14:07:50 ram
+?RCS: patch56: typo fix, sytem -> system
+?RCS: Revision 18.104.22.168 1994/08/29 16:14:00 ram
+?RCS: patch32: now uses new Typedef unit to compute type information
+?RCS: Revision 3.0 1993/08/18 12:07:46 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?X: What is the type returned by times() ?
+?X: Force inclusion of <sys/types.h>
+?MAKE:d_times clocktype: Csym Myread Typedef i_systimes
+?MAKE: -pick add $@ %<
+?S: This variable conditionally defines the HAS_TIMES symbol, which indicates
+?S: that the times() routine exists. The times() routine is normaly
+?S: provided on UNIX systems. You may have to include <sys/times.h>.
+?S: This variable holds the type returned by times(). It can be long,
+?S: or clock_t on BSD sites (in which case <sys/types.h> should be
+?C: This symbol, if defined, indicates that the times() routine exists.
+?C: Note that this became obsolete on some systems (SUNOS), which now
+?C: use getrusage(). It may be necessary to include <sys/times.h>.
+?C: This symbol holds the type returned by times(). It can be long,
+?C: or clock_t on BSD sites (in which case <sys/types.h> should be
+?H:#$d_times HAS_TIMES /**/
+?H:#define Clock_t $clocktype /* Clock time */
+: see if times exists
+echo " "
+if set times val -f d_times; eval $csym; $val; then
+ echo 'times() found.' >&4
+ case "$i_systimes" in
+ "$define") inc='sys/times.h';;
+ set clock_t clocktype long stdio.h sys/types.h $inc
+ eval $typedef
+ echo " "
+ rp="What type is returned by times() on this system?"
+ . ./myread
+ echo 'times() NOT found, hope that will do.' >&4
+?X: The following is needed for typedef (won't like an empty variable)