aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/util.c')
-rw-r--r--contrib/bmake/util.c34
1 files changed, 4 insertions, 30 deletions
diff --git a/contrib/bmake/util.c b/contrib/bmake/util.c
index c79f645bdfba..31d2b9a06080 100644
--- a/contrib/bmake/util.c
+++ b/contrib/bmake/util.c
@@ -1,9 +1,9 @@
-/* $NetBSD: util.c,v 1.54 2013/11/26 13:44:41 joerg Exp $ */
+/* $NetBSD: util.c,v 1.55 2020/01/07 21:24:16 rillig Exp $ */
/*
* Missing stuff from OS's
*
- * $Id: util.c,v 1.33 2014/01/02 02:29:49 sjg Exp $
+ * $Id: util.c,v 1.34 2020/01/22 01:19:25 sjg Exp $
*/
#if defined(__MINT__) || defined(__linux__)
#include <signal.h>
@@ -12,10 +12,10 @@
#include "make.h"
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: util.c,v 1.54 2013/11/26 13:44:41 joerg Exp $";
+static char rcsid[] = "$NetBSD: util.c,v 1.55 2020/01/07 21:24:16 rillig Exp $";
#else
#ifndef lint
-__RCSID("$NetBSD: util.c,v 1.54 2013/11/26 13:44:41 joerg Exp $");
+__RCSID("$NetBSD: util.c,v 1.55 2020/01/07 21:24:16 rillig Exp $");
#endif
#endif
@@ -229,32 +229,6 @@ killpg(int pid, int sig)
return kill(-pid, sig);
}
-#if !defined(__hpux__) && !defined(__hpux)
-void
-srandom(long seed)
-{
- srand48(seed);
-}
-
-long
-random(void)
-{
- return lrand48();
-}
-#endif
-
-#if !defined(__hpux__) && !defined(__hpux)
-int
-utimes(char *file, struct timeval tvp[2])
-{
- struct utimbuf t;
-
- t.actime = tvp[0].tv_sec;
- t.modtime = tvp[1].tv_sec;
- return(utime(file, &t));
-}
-#endif
-
#if !defined(BSD) && !defined(d_fileno)
# define d_fileno d_ino
#endif