Date: Sun, 19 Nov 1995 16:29:36 +1100 From: Bruce Evans <bde@zeta.org.au> To: cimaxp1!jb@werple.net.au, hackers@FreeBSD.org, julian@ref.tfs.com Cc: jb@cimlogic.com.au Subject: Re: int type in jmpbuf Message-ID: <199511190529.QAA20802@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>Shouldn't jmp_buf and sigjmp_buf (in /usr/include/setjmp.h) be defined as an >array of long type (instead of int)? >NetBSD _needs_ it that way to support 64 bit addressing. I'm uncomfortable >porting code which is already both 32 and 64 bit clean to be 64 bit unclean! >(Assuming that long _should_ be used) Can we change this for 2.2 please? The whole struct should probably be delcared in a machine dependent file as something like typedef struct { __type_whose_alignment_requirement_i_maximal_t _jb0; char _jb1[_NOT_QUITE_THE_FULL_SIZEOF_JMP_BUF]; } jmp_buf[1]; longs just happen to be right for a few more machine than ints. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511190529.QAA20802>