Commit Graph

23 Commits

Author SHA1 Message Date
christos 66412e7240 compat code reorg 2005-09-13 01:44:32 +00:00
christos 9f184f48a4 Add no-return attribute to all longjmp flavors. Approved by kleink. 2005-04-15 16:58:13 +00:00
perry 19b7469a00 de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
2005-02-03 04:39:32 +00:00
agc 039cc95684 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22270, verified by myself.
2003-08-07 09:44:09 +00:00
bjh21 4be7a2dcf3 Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
  can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
  various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
  !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them.  In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
2003-04-28 23:16:11 +00:00
jdolecek ee46e8d74a make the #ifdef __LIBC12_SOURCE__ consistent with usage in <signal.h>
and <sys/stat.h>
Fixes misc/6520.
2000-03-07 21:12:37 +00:00
castor 4720afb463 Avoid introducing new prefix '__JB' -- '_JB' is fine. 1999-01-15 03:43:56 +00:00
castor b60cd4e18b Remove bogus RCS Id. 1999-01-14 09:05:46 +00:00
castor 25c863649d Allow MD setjmp.h to specify attributes for jmp_buf, so more
stringent alignment requirements can be satisfied.
1999-01-14 09:03:37 +00:00
thorpej ea77978921 Fix typo in previous, and also don't version _setjmp/_longjmp; after
more careful analysis, I realized that they don't access the extended
jmp_buf data area, and thus would not have changed.
1998-09-14 07:27:08 +00:00
thorpej f09a4dc257 Version setjmp(), longjmp(), _setjmp(), _longjmp(), sigsetjmp(), and
siglongjmp().  The size of struct sigcontext, and thus the size
of jmp_buf and sigjmp_buf on some platforms, has changed.
1998-09-14 07:10:53 +00:00
kleink fe17338747 Reorganize name space protection. 1998-05-06 18:01:23 +00:00
cgd f995c570c9 *jmp_buf -> arrays of longs, and make the definition of _JBLEN mach. dep.
header-dependent.
1994-12-20 10:35:44 +00:00
jtc d781cfcf1d Kill warnings about sigsetjmp() and siglongjmp() being missing. 1994-12-10 11:42:26 +00:00
cgd 4d2cbfce0a new RCS ID format. 1994-10-26 00:55:40 +00:00
cgd e6b5ddd91e update all but ctype.h, dumprestore.h, time.h to 4.4-Lite versions.
USL copyright additions on those.  Kill varargs.h, because it can simply
be a link to the machine-dependent version.
1994-05-16 10:58:53 +00:00
briggs 507e31c2e6 Add defined(mc68000) || defined(__mc68000__) to the hp300 define for
_JBLEN.  This will aid the integration of the five or so m68k ports,
I should think.
1993-11-27 23:07:18 +00:00
jtc adf9a755d8 Remove warnings wrt. sigsetjmp() && siglongjmp(), now that there is
an implementation for one of the ports.  Other-port people need to
provide this for their ports.  I have a program that tests the
setjmp/longjmp family of routines rather thouroughly it is needed.
1993-10-19 21:07:09 +00:00
deraadt 3e82c91c58 _JBLEN is 9 on the sparc; I think. 1993-10-19 08:36:53 +00:00
cgd 011b7a0917 kill typo. you check if things are "defined", not "defgined". 8-) 1993-09-01 23:16:57 +00:00
deraadt 369e28bc1c addition of the pc532 architecture 1993-09-01 08:44:05 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00