The NetBSD Project

CVS log for src/include/signal.h

[BACK] Up to [cvs.NetBSD.org] / src / include

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.59 / (download) - annotate - [select for diffs], Tue Nov 2 20:12:25 2021 UTC (2 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.58: +6 -3 lines
Diff to previous 1.58 (colored) to selected 1.25 (colored)

Expose sigaltstack, stack_t and friends to Posix Issue 5 (200809L) References:

https://man7.org/linux/man-pages/man2/sigaltstack.2.html
https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaltstack.html

Revision 1.58 / (download) - annotate - [select for diffs], Mon Nov 1 05:53:45 2021 UTC (2 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.57: +6 -4 lines
Diff to previous 1.57 (colored) to selected 1.25 (colored)

Version the sigaction(2) libc wrapper.  The new version uses the "siginfo"
trampoline exclusively, thus relegating "sigcontext"-style handlers (which
have not been documented for many years now) to the dustbin of the compat
library.

Revision 1.56.10.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:12 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored) next main 1.57 (colored) to selected 1.25 (colored)

Sync with HEAD

Revision 1.56.8.1 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:09 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored) next main 1.57 (colored) to selected 1.25 (colored)

Synch with HEAD

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jan 8 17:35:42 2019 UTC (5 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored) to selected 1.25 (colored)

Provide global variables with C linkage, otherwise they will create
conflicts for C++ modules use.

Revision 1.55.6.1 / (download) - annotate - [select for diffs], Thu May 11 02:58:32 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.55: +8 -1 lines
Diff to previous 1.55 (colored) next main 1.56 (colored) to selected 1.25 (colored)

Sync with HEAD

Revision 1.56 / (download) - annotate - [select for diffs], Tue May 9 11:14:16 2017 UTC (6 years, 10 months ago) by kre
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.55: +8 -1 lines
Diff to previous 1.55 (colored) to selected 1.25 (colored)



Add the new signalname/signalnext/signalnumber interface to libc.

This as discussed on current-users in the thread
entitled:
  Proposal: new libc/libutil functions to map SIGXXXX <-> "XXXX"
that can be found (starting at):
  http://mail-index.netbsd.org/current-users/2017/04/28/msg031600.html

These functions provide the mechanism to enable applications
to divorce themselves from internal details of the signal
implementation.

Libc minor bumped, prototypes in <signal.h>, sets lists updated (and sorted).

One and all: feel free to improve the sources & man page (etc), but
please do not change the function signatures without discussion.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Jul 31 12:51:32 2015 UTC (8 years, 7 months ago) by kamil
Branch: MAIN
CVS Tags: prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored) to selected 1.25 (colored)

Do as POSIX says, define the timespec structure in <signal.h>

Extract struct timespec from <sys/time.h> and put into a separate header.

This solution is minimally invasive.

Revision 1.51.4.2 / (download) - annotate - [select for diffs], Fri Oct 22 07:11:52 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.51.4.1: +2 -1 lines
Diff to previous 1.51.4.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored) to selected 1.25 (colored)

Sync with HEAD (-D20101022).

Revision 1.54 / (download) - annotate - [select for diffs], Fri Aug 27 08:40:38 2010 UTC (13 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Changes since 1.53: +3 -2 lines
Diff to previous 1.53 (colored) to selected 1.25 (colored)

The signal number argument in psignal is int not unsigned int.
Add psiginfo.

Revision 1.51.4.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:40:01 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.51: +13 -12 lines
Diff to previous 1.51 (colored) to selected 1.25 (colored)

Sync with HEAD.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Jul 31 00:04:42 2010 UTC (13 years, 8 months ago) by joerg
Branch: MAIN
CVS Tags: uebayasi-xip-base2
Changes since 1.52: +13 -16 lines
Diff to previous 1.52 (colored) to selected 1.25 (colored)

Define a new __c99inline macro for compilers known to implement the C99
behavior.  This unbreaks GCC 4.4's libgfortran build with the old
signal.h logic, because GCC decided to put the body for the sigsetop
functions in multiple objects.

Revision 1.52 / (download) - annotate - [select for diffs], Tue May 4 09:07:11 2010 UTC (13 years, 10 months ago) by plunky
Branch: MAIN
Changes since 1.51: +6 -2 lines
Diff to previous 1.51 (colored) to selected 1.25 (colored)

handle the difference between C99 and GNUC semantics of inline
functions with external linkage, by using "inline" for STDC and
"extern inline" for GNUC

(as noted by joerg@, using static inline may be clearer)

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jan 11 03:04:12 2009 UTC (15 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Branch point for: uebayasi-xip
Changes since 1.50: +7 -3 lines
Diff to previous 1.50 (colored) to selected 1.25 (colored)

merge christos-time_t

Revision 1.50.12.1 / (download) - annotate - [select for diffs], Sat Nov 8 21:13:13 2008 UTC (15 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.50: +7 -3 lines
Diff to previous 1.50 (colored) next main 1.51 (colored) to selected 1.25 (colored)

changes for 64 bit time_t

Revision 1.48.16.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:14:43 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.48: +15 -6 lines
Diff to previous 1.48 (colored) next main 1.49 (colored) to selected 1.25 (colored)

sync with head.

Revision 1.48.10.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:26:45 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.48: +15 -6 lines
Diff to previous 1.48 (colored) next main 1.49 (colored) to selected 1.25 (colored)

sync with HEAD

Revision 1.50 / (download) - annotate - [select for diffs], Mon Mar 3 06:57:48 2008 UTC (16 years ago) by dholland
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-nbase, christos-time_t-nbase, christos-time_t-base
Branch point for: christos-time_t
Changes since 1.49: +2 -1 lines
Diff to previous 1.49 (colored) to selected 1.25 (colored)

Add a comment noting that the definition of __errno is now replicated in
signal.h. Per request of joerg@

Revision 1.49 / (download) - annotate - [select for diffs], Sun Feb 24 23:01:19 2008 UTC (16 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: hpcarm-cleanup-base
Changes since 1.48: +14 -6 lines
Diff to previous 1.48 (colored) to selected 1.25 (colored)

signal.h is not supposed to define errno, so use ___errno instead.
Adjust errno.h in a compatible fashion to avoid -Wredundant-decls issues.
I have run a build to check the tree for places where errno.h is missing,
and fixed the cases I found, but there might be more in MD code.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jan 7 20:10:29 2006 UTC (18 years, 2 months ago) by kleink
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: matt-armv6, keiichi-mipv6
Changes since 1.47: +5 -3 lines
Diff to previous 1.47 (colored) to selected 1.25 (colored)

pthread_sigmask(): Add restrict qualifier to set, oset args.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Dec 27 17:21:28 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored) to selected 1.25 (colored)

inline -> __inline for selected things (specifically, the header
file is POSIX visible and the usage isn't #ifdef _KERNEL)

Discussed with core. I may need to go farther than this but for now
compilations done with gcc -ansi (i.e. firefox) will be okay.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Dec 24 19:16:02 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored) to selected 1.25 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Sep 15 13:44:41 2005 UTC (18 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored) to selected 1.25 (colored)

use __inline as before, otherwise "gcc -ansi" blows up

Revision 1.44 / (download) - annotate - [select for diffs], Tue Sep 13 01:44:32 2005 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.43: +16 -41 lines
Diff to previous 1.43 (colored) to selected 1.25 (colored)

compat code reorg

Revision 1.43 / (download) - annotate - [select for diffs], Tue Mar 22 20:25:31 2005 UTC (19 years ago) by kleink
Branch: MAIN
Changes since 1.42: +20 -11 lines
Diff to previous 1.42 (colored) to selected 1.25 (colored)

Add restrict qualifiers to remaining <signal.h> function arguments.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Feb 3 04:39:32 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.41: +55 -56 lines
Diff to previous 1.41 (colored) to selected 1.25 (colored)

de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Jan 20 20:42:05 2005 UTC (19 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.40: +1 -14 lines
Diff to previous 1.40 (colored) to selected 1.25 (colored)

Remove the remains of "struct sigcontext" and sigreturn() from the
user visible namespace.
These weren't supported interfaces for a while (it just happened to
work with COMPAT_16 kernels).
There are still internal uses in compat code and as jmp_buf format,
but this is all md code which uses <machine/signal.h>.
with christos' agreement

Revision 1.40 / (download) - annotate - [select for diffs], Fri Dec 31 18:06:16 2004 UTC (19 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.39: +4 -1 lines
Diff to previous 1.39 (colored) to selected 1.25 (colored)

Provide forward struct declarations for struct sigcontext*; this will allow
us to get rid of them in the machine/signal.h files.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Dec 10 16:40:40 2004 UTC (19 years, 3 months ago) by nathanw
Branch: MAIN
Changes since 1.38: +5 -1 lines
Diff to previous 1.38 (colored) to selected 1.25 (colored)

Use CPP macros to cause many libpthread functions used by applications
to be transformed into the do-nothing-when-libpthread-isn't-linked libc
stub names. This will permit library code that uses <pthread.h> and pthread
functions "defensively" to not need to link against libpthread and not need
to be patched to the threadlib.h API.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Fri Jul 2 18:10:01 2004 UTC (19 years, 8 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.36.2.1: +10 -11 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored) to selected 1.25 (colored)

Pull up revision 1.38 (requested by kleink in ticket #579):
  Resolve some namespace protection confusion between XPG4.2
  and 5/1003.1b, making _XOPEN_SOURCE_EXTENDED work again.
  Fixes PR#26077.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jul 1 23:46:07 2004 UTC (19 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.37: +10 -11 lines
Diff to previous 1.37 (colored) to selected 1.25 (colored)

Resolve some namespace protection confusion between XPG4.2 and 5/1003.1b,
making _XOPEN_SOURCE_EXTENDED work again.  Fixes PR lib/26077.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Tue May 25 01:13:59 2004 UTC (19 years, 10 months ago) by jmc
Branch: netbsd-2-0
Changes since 1.36: +15 -5 lines
Diff to previous 1.36 (colored) to selected 1.25 (colored)

Pullup rev 1.37 (requested by kleink in ticket #381)

Implement sigemptyset() and sigfillset() not as macros but as inline
functions. PR#25627

Revision 1.37 / (download) - annotate - [select for diffs], Sun May 23 23:03:24 2004 UTC (19 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.36: +15 -5 lines
Diff to previous 1.36 (colored) to selected 1.25 (colored)

Implement sigemptyset() and sigfillset() not as macros but as inline
functions, just like the rest of the sigsetops.  From J.T.Conklin
in PR lib/25627; originally prompted to work around problems with
an application but also fixing one important bug: per POSIX, these
functions may be additionally implemented as macros, iff they evaluate
their macros only once.  This was not the case.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Sep 12 20:27:50 2003 UTC (20 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.25 (colored)

don't put __libc_sigaction14 under __LIBC12_SOURCE__. It is wrong, because
then we have to define __LIBC12_SOURCE__ from __sigaction14_sigtramp.c and
that has the side effect of redefining struct sigaction to the old one.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Sep 11 14:04:50 2003 UTC (20 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored) to selected 1.25 (colored)

s/COMPAT_16/__HAVE_SIGINFO/ pointed out by wiz.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Sep 11 13:12:52 2003 UTC (20 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.33: +5 -1 lines
Diff to previous 1.33 (colored) to selected 1.25 (colored)

sigreturn is not visible unless COMPAT_16 is enabled.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Aug 7 09:44:11 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.32: +2 -6 lines
Diff to previous 1.32 (colored) to selected 1.25 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 18 17:54:35 2003 UTC (20 years, 8 months ago) by nathanw
Branch: MAIN
Changes since 1.31: +4 -1 lines
Diff to previous 1.31 (colored) to selected 1.25 (colored)

Synchronize the featuretest set for pthreads stuff to
_POSIX_C_SOURCE >= 199506L, _XOPEN_SOURCE >= 500, or _NETBSD_SOURCE.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jul 18 15:50:01 2003 UTC (20 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +1 -3 lines
Diff to previous 1.30 (colored) to selected 1.25 (colored)

Back out previous; it is not correct.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jul 18 08:53:42 2003 UTC (20 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.29: +3 -1 lines
Diff to previous 1.29 (colored) to selected 1.25 (colored)

for now, pull in <pthread_types.h> to get pthread_t for the
pthread_kill() prototype to work ...

this is probably not the correct long term solution, but the tree is
currently broken without it...

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jul 17 23:04:43 2003 UTC (20 years, 8 months ago) by nathanw
Branch: MAIN
Changes since 1.28: +2 -3 lines
Diff to previous 1.28 (colored) to selected 1.25 (colored)

Now that sys/types.h defines pthread_t, the forward structure
declaration for pthread_st isn't necessary (and is why I missed that
it was necessary before, as I already had the sys/types.h change in my
local tree).

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jul 17 22:39:43 2003 UTC (20 years, 8 months ago) by bjh21
Branch: MAIN
Changes since 1.27: +4 -3 lines
Diff to previous 1.27 (colored) to selected 1.25 (colored)

Change !_ANSI_SOURCE to _POSIX_C_SOURCE || _XOPEN_SOURCE || _NETBSD_SOURCE.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jul 17 09:01:54 2003 UTC (20 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.26: +3 -2 lines
Diff to previous 1.26 (colored) to selected 1.25 (colored)

Use a forward declaration equivalent to pthread_t instead of the
(undefined here) pthread_t.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jul 16 21:15:43 2003 UTC (20 years, 8 months ago) by nathanw
Branch: MAIN
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Give the pthread_kill() prototype here, as required.

Revision 1.25 / (download) - annotate - [selected], Mon Apr 28 23:16:14 2003 UTC (20 years, 11 months ago) by bjh21
Branch: MAIN
Changes since 1.24: +12 -14 lines
Diff to previous 1.24 (colored)

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.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Feb 15 21:11:49 2003 UTC (21 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.23: +9 -1 lines
Diff to previous 1.23 (colored) to selected 1.25 (colored)

add POSIX sigtimedwait(), sigwaitinfo(), sigwait() - wait for queued signals

note these are for non-threaded programs only - libpthread will provide
it's own thread-aware wrapper

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jan 18 10:32:11 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +5 -1 lines
Diff to previous 1.22 (colored) to selected 1.25 (colored)

Merge the nathanw_sa branch.

Revision 1.21.2.3 / (download) - annotate - [select for diffs], Fri Jan 17 06:08:26 2003 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.21.2.2: +19 -1 lines
Diff to previous 1.21.2.2 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored) to selected 1.25 (colored)

Sync with HEAD.

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Thu Jan 16 03:35:43 2003 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.21.2.1: +3 -1 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored) to selected 1.25 (colored)

* Move the pthread_sigmask() prototype to <signal.h>.
* Don't include <signal.h> in <pthread.h>.
* Add code to the signal trampoline to convert from the ucontext
  to a sigcontext, and back again (XXX though, only callee-save
  regs for _UC_USER contexts).

This is necessary in order to support e.g. GCC's libjava, which depends
on the traditional Unix semantics of changes made to the sigcontext
being visible when the handler returns.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jan 15 23:55:41 2003 UTC (21 years, 2 months ago) by kleink
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.21: +20 -2 lines
Diff to previous 1.21 (colored) to selected 1.25 (colored)

Add sighold(3), sigignore(3), sigrelse(3) and sigset(3) to libc.
Fixes PR lib/19212, now redesignated standards/19212, from David Laight.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Wed Oct 2 20:16:32 2002 UTC (21 years, 6 months ago) by thorpej
Branch: nathanw_sa
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored) to selected 1.25 (colored)

libc:
Internally rename __sigaction14 to __libc_sigaction14.  Provide a
weak alias of __sigaction14 -> __libc_sigaction14.

libpthread:
Use __libc_sigaction14 to actually register the signal handler, rather
than using __sigaction_sigtramp() directly with a hard-coded trampoline
version.  While we don't actually use the libc trampoline, we want to
avoid depending on any COMPAT_* kernel options down the road (this is
already the case for the VAX port).

Be explicit about which version of the signal interface we're interposing
(...14), and build pthread_sig.c with __LIBC12_SOURCE__ (required to get
the libc-internal interfaces).

Revision 1.21 / (download) - annotate - [select for diffs], Mon Dec 18 21:21:26 2000 UTC (23 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, fvdl_fs64_base
Branch point for: nathanw_sa
Changes since 1.20: +13 -31 lines
Diff to previous 1.20 (colored) to selected 1.25 (colored)

protect against multiple declarations. This also fixes a problem where
the inline functions would compile differently depending on if errno.h
was included or not.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Dec 9 12:50:47 1998 UTC (25 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.25 (colored)

Add /*LINTED*/ comments to sigfillset() and sigemptyset(). (void)sig*set(s);
produced warnings.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Nov 30 20:36:27 1998 UTC (25 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored) to selected 1.25 (colored)

Change the type of sys_siglist and sys_signame from const char *const [] to
const char *const *, and rename them to __sys_siglist14 and __sys_signame14.
This will prevent the size of the exported symbol from changing when more
signals are added to the list.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Oct 24 16:35:19 1998 UTC (25 years, 5 months ago) by kleink
Branch: MAIN
Changes since 1.17: +7 -13 lines
Diff to previous 1.17 (colored) to selected 1.25 (colored)

Rely on <sys/featuretest.h> defining _REENTRANT if appropriate.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Oct 1 19:41:23 1998 UTC (25 years, 6 months ago) by kleink
Branch: MAIN
Changes since 1.16: +31 -1 lines
Diff to previous 1.16 (colored) to selected 1.25 (colored)

In the inlined sigset_t operations, redirect the error indicator assignment via
*__errno() when compiling _REENTRANT (or the like) code.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Sep 21 19:14:43 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +4 -3 lines
Diff to previous 1.15 (colored) to selected 1.25 (colored)

Declare the size of sys_siglist[] and sys_signame[] to be SIGUSR2+1
instead of _NSIG for now; we need to change these to char **'s, and do
a symbol renaming trick on them, eventually (a'la what Todd did with
libbfd's target match array).

Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 13 04:11:51 1998 UTC (25 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +5 -5 lines
Diff to previous 1.14 (colored) to selected 1.25 (colored)

__LIBCxx_SOURCE__ refers to the library major number, not the NetBSD release
number.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Sep 12 11:10:43 1998 UTC (25 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +13 -7 lines
Diff to previous 1.13 (colored) to selected 1.25 (colored)

Minor KNFing.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Sep 12 10:53:26 1998 UTC (25 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +44 -17 lines
Diff to previous 1.12 (colored) to selected 1.25 (colored)

Do the syscall versioning.

Revision 1.12 / (download) - annotate - [select for diffs], Mon May 25 21:55:48 1998 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.11: +20 -12 lines
Diff to previous 1.11 (colored) to selected 1.25 (colored)

Reorganize name space protection, mostly related to interfaces introduced in
XPG 4.2.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Mon Feb 2 07:22:53 1998 UTC (26 years, 2 months ago) by perry
Branch: CSRG
CVS Tags: lite-2
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.25 (colored)

import lite-2

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 29 18:38:20 1997 UTC (26 years, 4 months ago) by kleink
Branch: MAIN
Changes since 1.10: +7 -2 lines
Diff to previous 1.10 (colored) to selected 1.25 (colored)

Modify the recent sigaltstack() interface change to use the __RENAME() scheme;
add __sigaltstack14().

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 26 16:51:13 1997 UTC (26 years, 4 months ago) by kleink
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.25 (colored)

Update sigaltstack() to use stack_t parameters.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 18 20:30:24 1997 UTC (26 years, 4 months ago) by kleink
Branch: MAIN
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored) to selected 1.25 (colored)

Move inclusion of <sys/types.h> before that of <sys/signal.h>.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Feb 29 00:04:57 1996 UTC (28 years, 1 month ago) by jtc
Branch: MAIN
CVS Tags: nsswitch, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored) to selected 1.25 (colored)

Add prototype for sigaltstack; from John Kohl in PR #2129

Revision 1.7 / (download) - annotate - [select for diffs], Sun May 28 03:10:06 1995 UTC (28 years, 10 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored) to selected 1.25 (colored)

Definition equating NSIG to _NSIG has been moved to <sys/signal.h>

Revision 1.6 / (download) - annotate - [select for diffs], Sun May 28 02:53:56 1995 UTC (28 years, 10 months ago) by jtc
Branch: MAIN
Changes since 1.5: +7 -6 lines
Diff to previous 1.5 (colored) to selected 1.25 (colored)

Use _NSIG instead of NSIG or constant 32.
Define NSIG equal to _NSIG if !ANSI && !POSIX.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 10 01:33:23 1995 UTC (29 years, 2 months ago) by jtc
Branch: MAIN
Changes since 1.4: +6 -2 lines
Diff to previous 1.4 (colored) to selected 1.25 (colored)

Don't include <sys/types.h> if _ANSI_SOURCE is defined.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 5 06:01:18 1995 UTC (29 years, 2 months ago) by jtc
Branch: MAIN
Changes since 1.3: +39 -5 lines
Diff to previous 1.3 (colored) to selected 1.25 (colored)

We removed the sigaddset(), sigdelset(), and sigismember() macros, although
they were POSIX.1 compliant, because users have misinterpreted the spec and
have written programs that depend on -1 being returned when a signal number
is out of range.  This made initialization of signal masks significantly
more expensive.

This change uses GCC's inline function extension to provide macro-like
signal mask manipulation functions.  Since most of the time constants
like SIGINT is used, gcc is able to remove unused range checking code.
Gcc is also smart enough to coalesce adjacent sigemptyset(), sigaddset(),
sigdelset(), and sigfullset() calls into a single assignment.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 26 00:56:24 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -0 lines
Diff to previous 1.2 (colored) to selected 1.25 (colored)

new RCS ID format.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Fri Aug 12 06:40:36 1994 UTC (29 years, 7 months ago) by mycroft
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.1: +0 -3 lines
Diff to previous 1.1 (colored) next main 1.2 (colored) to selected 1.25 (colored)

update from trunk

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 12 04:55:51 1994 UTC (29 years, 7 months ago) by jtc
Branch: MAIN
Changes since 1.1: +0 -3 lines
Diff to previous 1.1 (colored) to selected 1.25 (colored)

Removed macro definitions of sigaddset(), segdelset(), & sigismember()
so that the function implementations (which have invalid signal error
checking) are used.

Revision 1.1 / (download) - annotate - [select for diffs], Wed May 11 03:37:42 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Diff to selected 1.25 (colored)

user-land signal include file

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>