Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make usr.bin/make: remove dead code
details: https://anonhg.NetBSD.org/src/rev/043e381cb1d0
branches: trunk
changeset: 968231:043e381cb1d0
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Jan 07 21:24:16 2020 +0000
description:
usr.bin/make: remove dead code
The preprocessor conditions contradicted each other: __hpux__ or __hpux
would need to be defined, and at the same time none of them would need to
be defined.
diffstat:
usr.bin/make/util.c | 32 +++-----------------------------
1 files changed, 3 insertions(+), 29 deletions(-)
diffs (56 lines):
diff -r 99026d4bf9cc -r 043e381cb1d0 usr.bin/make/util.c
--- a/usr.bin/make/util.c Tue Jan 07 21:18:24 2020 +0000
+++ b/usr.bin/make/util.c Tue Jan 07 21:24:16 2020 +0000
@@ -1,4 +1,4 @@
-/* $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
@@ -8,11 +8,11 @@
#endif
#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
#include <sys/cdefs.h>
#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 @@
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
Home |
Main Index |
Thread Index |
Old Index