summaryrefslogtreecommitdiff
path: root/usr/src/make_src/Make/lib/vroot
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-06-30 02:31:13 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-06-30 02:40:02 +0000
commitd20e6398e288393720f762d011dc332cf2262fd7 (patch)
tree15e1178bbe2f05d550b51ba8b4c61627243fc09b /usr/src/make_src/Make/lib/vroot
parentb1c201156117c01a64e893fd5a69a5dd044ed09d (diff)
downloadsunmake-d20e6398e288393720f762d011dc332cf2262fd7.tar.gz
Ported to modern libc
Diffstat (limited to 'usr/src/make_src/Make/lib/vroot')
-rw-r--r--usr/src/make_src/Make/lib/vroot/src/lock.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/usr/src/make_src/Make/lib/vroot/src/lock.cc b/usr/src/make_src/Make/lib/vroot/src/lock.cc
index c49a980..1e95643 100644
--- a/usr/src/make_src/Make/lib/vroot/src/lock.cc
+++ b/usr/src/make_src/Make/lib/vroot/src/lock.cc
@@ -42,11 +42,6 @@
#include <signal.h>
#include <errno.h> /* errno */
-#if !defined(linux)
-extern char *sys_errlist[];
-extern int sys_nerr;
-#endif
-
static void file_lock_error(char *msg, char *file, char *str, char* arg1, char* arg2);
#define BLOCK_INTERUPTS sigfillset(&newset) ; \
@@ -177,20 +172,6 @@ file_lock_error(char *msg, char *file, char *str, char* arg1, char* arg2)
len = strlen(msg);
sprintf(&msg[len], str, arg1, arg2);
strcat(msg, catgets(libmksdmsi18n_catd, 1, 146, " failed - "));
-#if !defined(linux)
- if (errno < sys_nerr) {
-#ifdef SUN4_x
- strcat(msg, sys_errlist[errno]);
-#endif
-#ifdef SUN5_0
- strcat(msg, strerror(errno));
-#endif
- } else {
- len = strlen(msg);
- sprintf(&msg[len], NOCATGETS("errno %d"), errno);
- }
-#else
strcat(msg, strerror(errno));
-#endif
}