bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coreutils 5.0 on Tru64 Unix


From: Tony Leneis
Subject: coreutils 5.0 on Tru64 Unix
Date: Fri, 4 Apr 2003 23:51:30 -0800
User-agent: Mutt/1.5.3i

        Tru64 Unix declares __sys_siglist in signal.h.  It works just like
_sys_siglist and sys_siglist on other systems.  I'm not sure what the
rationale was behind it, but it would be nice if configure could detect
this and use the same work-around in kill.c that _sys_siglist does.  (It's
necessary because Tru64 Unix doesn't have strsignal().)

        Assuming you want to follow the same naming scheme, I guess config.h
would set HAVE_DECL___SYS_SIGLIST to indicate there's a __sys_siglist.  Here
is the patch for src/kill.c:

--- kill.c      2002-09-02 00:29:44.000000000 -0700
+++ patchedkill.c       2003-04-04 22:20:43.000000000 -0800
@@ -52,6 +52,9 @@
 #  if HAVE_DECL__SYS_SIGLIST || defined _sys_siglist
 #   define sys_siglist _sys_siglist
 #  endif
+#  if HAVE_DECL___SYS_SIGLIST || defined __sys_siglist
+#   define sys_siglist __sys_siglist
+#  endif
 # endif
 # if HAVE_DECL_SYS_SIGLIST || defined sys_siglist
 #  define strsignal(signum) (0 <= (signum) && (signum) <= SIGNUM_BOUND \

I'm not an autoconf person, but here's a test program for __sig_siglist:

/* end confdefs.h.  */
$ac_includes_default
int
main ()
{
#ifndef __sys_siglist
  char *p = (char *) __sys_siglist;
#endif

  ;
  return 0;
}

        There's one other thing: I'm not sure why, but GNU Make 3.80 seems
to choke on the coreutils 5.0 distribution (mostly it denies that various
targets, such as check, exist.)  I'll have to investigate the problem further.

-Tony

-- 
e-mail: address@hidden                 Computerized Vehicle Registration
phone : 503 402-3531                    2525 SW 1st Ave, Suite 450
FAX   : 503 294-1526                    Portland, OR 97201-4760
PGP   : 1024D/145E65E0  456A 740F F14C 64D6 EB07 E70E 037A 1601 145E 65E0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]