linux-mips-fnet
[Top] [All Lists]

SA_* in Linux 2.0.x und 2.2.x

To: linux-mips@fnet.fr
Subject: SA_* in Linux 2.0.x und 2.2.x
From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
Date: 21 Aug 1999 09:53:14 +0200
Hi all,

Linux 2.2.11 has in include/asm-mips/signal.h:

#define SA_STACK        0x00000001
#define SA_RESETHAND    0x00000002
#define SA_RESTART      0x00000004
#define SA_SIGINFO      0x00000008
#define SA_NODEFER      0x00000010
#define SA_NOCLDWAIT    0x00010000      /* Not supported yet */
#define SA_NOCLDSTOP    0x00020000

#define SA_NOMASK       SA_NODEFER
#define SA_ONESHOT      SA_RESETHAND

but Linux 2.0.x uses:

#define SA_STACK        0x1
#define SA_ONSTACK      SA_STACK
#define SA_RESTART      0x4
#define SA_NOCLDSTOP    0x20000
/* Non ABI signals */
#define SA_INTERRUPT    0x01000000
#define SA_NOMASK       0x02000000
#define SA_ONESHOT      0x04000000
#define SA_SHIRQ        0x08000000

We now have different values for e.g.:
SA_ONESHOT/SA_RESETHAND (0x04000000 or 0x00000002)
SA_NOMASK/SA_NODEFER    (0x02000000 or 0x00000010)

Don't we have a compatibility problem here between Linux 2.0.x and
2.2.x?  I've got to add these constants to glibc in a way that it
works on both platforms :-(.

Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de

<Prev in Thread] Current Thread [Next in Thread>