This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ERR in curses and glibc 2.1.3


glibc 2.1.3 has

#ifdef __USE_GNU
/* Number of each register is the `gregset_t' array.  */
enum
{
  GS = 0,
# define GS     GS
  FS,
# define FS     FS
  ES,
# define ES     ES
  DS,
# define DS     DS
  EDI,
# define EDI    EDI
  ESI,
# define ESI    ESI
  EBP,
# define EBP    EBP
  ESP,
# define ESP    ESP
  EBX,
# define EBX    EBX
  EDX,
# define EDX    EDX
  ECX,
# define ECX    ECX
  EAX,
# define EAX    EAX
  TRAPNO,
# define TRAPNO TRAPNO
  ERR,
# define ERR    ERR
  EIP,
# define EIP    EIP
  CS,
# define CS     CS
  EFL,
# define EFL    EFL
  UESP,
# define UESP   UESP
  SS
# define SS     SS
};
#endif

in <sys/ucontext.h>. The problem is ERR is a macro in curses.h on
Solaris 2.7 and ncurses. Since <sys/ucontext.h> is included in
<signal.h>, it means you cannot include <signal.h> and <curses.h>
at the same time. I will see it as a glibc bug. It should be fixed.


H.J.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]