summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2008-02-27 03:35:47 (GMT)
committerjenglish <jenglish@flightlab.com>2008-02-27 03:35:47 (GMT)
commit1b53611f89790af211f2811b6eb6acb094e04a00 (patch)
treecc3da485b97af6db3d3b02a01c3162bf10955943 /unix/tclUnixPort.h
parentbd73b8d2cd6de4ced39064b2c152e692c2ebe342 (diff)
downloadtcl-1b53611f89790af211f2811b6eb6acb094e04a00.zip
tcl-1b53611f89790af211f2811b6eb6acb094e04a00.tar.gz
tcl-1b53611f89790af211f2811b6eb6acb094e04a00.tar.bz2
Remove dead/unused portability-related #defines and unused conditional code.
See SF#1901828 for discussion and archaeological notes.
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r--unix/tclUnixPort.h38
1 files changed, 2 insertions, 36 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index 4ee2ece..dc0fb40 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -19,7 +19,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixPort.h,v 1.61 2007/12/13 15:28:42 dgp Exp $
+ * RCS: @(#) $Id: tclUnixPort.h,v 1.62 2008/02/27 03:35:50 jenglish Exp $
*/
#ifndef _TCLUNIXPORT
@@ -174,18 +174,6 @@ typedef off_t Tcl_SeekOffset;
#endif
/*
- * HPUX needs the flag O_NONBLOCK to get the right non-blocking I/O
- * semantics, while most other systems need O_NDELAY. Define the
- * constant NBIO_FLAG to be one of these
- */
-
-#ifdef HPUX
-# define NBIO_FLAG O_NONBLOCK
-#else
-# define NBIO_FLAG O_NDELAY
-#endif
-
-/*
* The type of the status returned by wait varies from UNIX system
* to UNIX system. The macro below defines it:
*/
@@ -258,21 +246,11 @@ typedef off_t Tcl_SeekOffset;
/*
* The stuff below is needed by the "time" command. If this system has no
- * gettimeofday call, then must use times and the CLK_TCK #define (from
- * sys/param.h) to compute elapsed time. Unfortunately, some systems only
- * have HZ and no CLK_TCK, and some might not even have HZ.
+ * gettimeofday call, then must use times() instead.
*/
#ifdef NO_GETTOD
# include <sys/times.h>
-# include <sys/param.h>
-# ifndef CLK_TCK
-# ifdef HZ
-# define CLK_TCK HZ
-# else
-# define CLK_TCK 60
-# endif
-# endif
#else
# ifdef HAVE_BSDGETTIMEOFDAY
# define gettimeofday BSDgettimeofday
@@ -489,18 +467,6 @@ extern char **environ;
#endif
/*
- * At present (12/91) not all stdlib.h implementations declare strtod.
- * The declaration below is here to ensure that it's declared, so that
- * the compiler won't take the default approach of assuming it returns
- * an int. There's no ANSI prototype for it because there would end
- * up being too many conflicts with slightly-different prototypes.
- */
-
-#ifdef NO_STDLIB_H
-extern double strtod();
-#endif
-
-/*
* There is no platform-specific panic routine for Unix in the Tcl internals.
*/