The NetBSD Project

CVS log for src/include/signal.h

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Sep 9 21:19:54 2024 UTC (6 months, 1 week ago) by rillig
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -4 lines
signal.h: sync comment with code, remove trailing whitespace

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Nov 2 20:12:25 2021 UTC (3 years, 4 months ago) by christos
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, 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
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +6 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 1 05:53:45 2021 UTC (3 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +6 -4 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:12 2019 UTC (5 years, 9 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +2 -2 lines
Sync with HEAD

Revision 1.56.8.1: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:09 2019 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56: +2 -2 lines
Synch with HEAD

Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue Jan 8 17:35:42 2019 UTC (6 years, 2 months ago) by joerg
Branches: 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-4-RELEASE, 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
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -2 lines
Provide global variables with C linkage, otherwise they will create
conflicts for C++ modules use.

Revision 1.55.6.1: download - view: text, markup, annotated - select for diffs
Thu May 11 02:58:32 2017 UTC (7 years, 10 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +8 -1 lines
Sync with HEAD

Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue May 9 11:14:16 2017 UTC (7 years, 10 months ago) by kre
Branches: 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-3-RELEASE, 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
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +8 -1 lines


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 - view: text, markup, annotated - select for diffs
Fri Jul 31 12:51:32 2015 UTC (9 years, 7 months ago) by kamil
Branches: 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
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 22 07:11:52 2010 UTC (14 years, 5 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.51.4.1: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.4.1: +2 -1 lines
Sync with HEAD (-D20101022).

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Aug 27 08:40:38 2010 UTC (14 years, 6 months ago) by christos
Branches: 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
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -2 lines
The signal number argument in psignal is int not unsigned int.
Add psiginfo.

Revision 1.51.4.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:40:01 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +13 -12 lines
Sync with HEAD.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Jul 31 00:04:42 2010 UTC (14 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: uebayasi-xip-base2
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +13 -16 lines
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 - view: text, markup, annotated - select for diffs
Tue May 4 09:07:11 2010 UTC (14 years, 10 months ago) by plunky
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +6 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 11 03:04:12 2009 UTC (16 years, 2 months ago) by christos
Branches: 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
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +7 -3 lines
merge christos-time_t

Revision 1.50.12.1: download - view: text, markup, annotated - select for diffs
Sat Nov 8 21:13:13 2008 UTC (16 years, 4 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +7 -3 lines
changes for 64 bit time_t

Revision 1.48.16.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:14:43 2008 UTC (17 years ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +15 -6 lines
sync with head.

Revision 1.48.10.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:26:45 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +15 -6 lines
sync with HEAD

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Mar 3 06:57:48 2008 UTC (17 years ago) by dholland
Branches: 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
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -1 lines
Add a comment noting that the definition of __errno is now replicated in
signal.h. Per request of joerg@

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Feb 24 23:01:19 2008 UTC (17 years, 1 month ago) by dholland
Branches: MAIN
CVS tags: hpcarm-cleanup-base
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +14 -6 lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 7 20:10:29 2006 UTC (19 years, 2 months ago) by kleink
Branches: 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
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -3 lines
pthread_sigmask(): Add restrict qualifier to set, oset args.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Dec 27 17:21:28 2005 UTC (19 years, 2 months ago) by perry
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Dec 24 19:16:02 2005 UTC (19 years, 3 months ago) by perry
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -5 lines
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Sep 15 13:44:41 2005 UTC (19 years, 6 months ago) by drochner
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -2 lines
use __inline as before, otherwise "gcc -ansi" blows up

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Sep 13 01:44:32 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +16 -41 lines
compat code reorg

Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Mar 22 20:25:31 2005 UTC (20 years ago) by kleink
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +20 -11 lines
Add restrict qualifiers to remaining <signal.h> function arguments.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Feb 3 04:39:32 2005 UTC (20 years, 1 month ago) by perry
Branches: 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
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +55 -56 lines
de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Jan 20 20:42:05 2005 UTC (20 years, 2 months ago) by drochner
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +1 -14 lines
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 - view: text, markup, annotated - select for diffs
Fri Dec 31 18:06:16 2004 UTC (20 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -1 lines
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 - view: text, markup, annotated - select for diffs
Fri Dec 10 16:40:40 2004 UTC (20 years, 3 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -1 lines
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 - view: text, markup, annotated - select for diffs
Fri Jul 2 18:10:01 2004 UTC (20 years, 8 months ago) by he
Branches: 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
Diff to: previous 1.36.2.1: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.2.1: +10 -11 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 1 23:46:07 2004 UTC (20 years, 8 months ago) by kleink
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +10 -11 lines
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 - view: text, markup, annotated - select for diffs
Tue May 25 01:13:59 2004 UTC (20 years, 10 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +15 -5 lines
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 - view: text, markup, annotated - select for diffs
Sun May 23 23:03:24 2004 UTC (20 years, 10 months ago) by kleink
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +15 -5 lines
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 - view: text, markup, annotated - select for diffs
Fri Sep 12 20:27:50 2003 UTC (21 years, 6 months ago) by christos
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 11 14:04:50 2003 UTC (21 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
s/COMPAT_16/__HAVE_SIGINFO/ pointed out by wiz.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Sep 11 13:12:52 2003 UTC (21 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -1 lines
sigreturn is not visible unless COMPAT_16 is enabled.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Aug 7 09:44:11 2003 UTC (21 years, 7 months ago) by agc
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -6 lines
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 - view: text, markup, annotated - select for diffs
Fri Jul 18 17:54:35 2003 UTC (21 years, 8 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -1 lines
Synchronize the featuretest set for pthreads stuff to
_POSIX_C_SOURCE >= 199506L, _XOPEN_SOURCE >= 500, or _NETBSD_SOURCE.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Jul 18 15:50:01 2003 UTC (21 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +1 -3 lines
Back out previous; it is not correct.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Jul 18 08:53:42 2003 UTC (21 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -1 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 17 23:04:43 2003 UTC (21 years, 8 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 17 22:39:43 2003 UTC (21 years, 8 months ago) by bjh21
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -3 lines
Change !_ANSI_SOURCE to _POSIX_C_SOURCE || _XOPEN_SOURCE || _NETBSD_SOURCE.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Jul 17 09:01:54 2003 UTC (21 years, 8 months ago) by martin
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -2 lines
Use a forward declaration equivalent to pthread_t instead of the
(undefined here) pthread_t.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Jul 16 21:15:43 2003 UTC (21 years, 8 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -1 lines
Give the pthread_kill() prototype here, as required.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Apr 28 23:16:14 2003 UTC (21 years, 11 months ago) by bjh21
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +12 -14 lines
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 - view: text, markup, annotated - select for diffs
Sat Feb 15 21:11:49 2003 UTC (22 years, 1 month ago) by jdolecek
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +9 -1 lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 18 10:32:11 2003 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -1 lines
Merge the nathanw_sa branch.

Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Fri Jan 17 06:08:26 2003 UTC (22 years, 2 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.21.2.2: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.2: +19 -1 lines
Sync with HEAD.

Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 16 03:35:43 2003 UTC (22 years, 2 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.1: +3 -1 lines
* 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 - view: text, markup, annotated - select for diffs
Wed Jan 15 23:55:41 2003 UTC (22 years, 2 months ago) by kleink
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +20 -2 lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 2 20:16:32 2002 UTC (22 years, 5 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -1 lines
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 - view: text, markup, annotated - select for diffs
Mon Dec 18 21:21:26 2000 UTC (24 years, 3 months ago) by christos
Branches: 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
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +13 -31 lines
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 - view: text, markup, annotated - select for diffs
Wed Dec 9 12:50:47 1998 UTC (26 years, 3 months ago) by christos
Branches: 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
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
Add /*LINTED*/ comments to sigfillset() and sigemptyset(). (void)sig*set(s);
produced warnings.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Nov 30 20:36:27 1998 UTC (26 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -4 lines
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 - view: text, markup, annotated - select for diffs
Sat Oct 24 16:35:19 1998 UTC (26 years, 5 months ago) by kleink
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +7 -13 lines
Rely on <sys/featuretest.h> defining _REENTRANT if appropriate.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Oct 1 19:41:23 1998 UTC (26 years, 5 months ago) by kleink
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +31 -1 lines
In the inlined sigset_t operations, redirect the error indicator assignment via
*__errno() when compiling _REENTRANT (or the like) code.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Sep 21 19:14:43 1998 UTC (26 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 13 04:11:51 1998 UTC (26 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -5 lines
__LIBCxx_SOURCE__ refers to the library major number, not the NetBSD release
number.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Sep 12 11:10:43 1998 UTC (26 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +13 -7 lines
Minor KNFing.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Sep 12 10:53:26 1998 UTC (26 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +44 -17 lines
Do the syscall versioning.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon May 25 21:55:48 1998 UTC (26 years, 10 months ago) by kleink
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +20 -12 lines
Reorganize name space protection, mostly related to interfaces introduced in
XPG 4.2.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon Feb 2 07:22:53 1998 UTC (27 years, 1 month ago) by perry
Branches: CSRG
CVS tags: lite-2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
import lite-2

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Nov 29 18:38:20 1997 UTC (27 years, 3 months ago) by kleink
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -2 lines
Modify the recent sigaltstack() interface change to use the __RENAME() scheme;
add __sigaltstack14().

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Nov 26 16:51:13 1997 UTC (27 years, 4 months ago) by kleink
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
Update sigaltstack() to use stack_t parameters.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Nov 18 20:30:24 1997 UTC (27 years, 4 months ago) by kleink
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -2 lines
Move inclusion of <sys/types.h> before that of <sys/signal.h>.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Feb 29 00:04:57 1996 UTC (29 years, 1 month ago) by jtc
Branches: 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
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -1 lines
Add prototype for sigaltstack; from John Kohl in PR #2129

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun May 28 03:10:06 1995 UTC (29 years, 10 months ago) by jtc
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -2 lines
Definition equating NSIG to _NSIG has been moved to <sys/signal.h>

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun May 28 02:53:56 1995 UTC (29 years, 10 months ago) by jtc
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +7 -6 lines
Use _NSIG instead of NSIG or constant 32.
Define NSIG equal to _NSIG if !ANSI && !POSIX.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Jan 10 01:33:23 1995 UTC (30 years, 2 months ago) by jtc
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -2 lines
Don't include <sys/types.h> if _ANSI_SOURCE is defined.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Jan 5 06:01:18 1995 UTC (30 years, 2 months ago) by jtc
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +39 -5 lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 26 00:56:24 1994 UTC (30 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -0 lines
new RCS ID format.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 12 06:40:36 1994 UTC (30 years, 7 months ago) by mycroft
Branches: 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
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +0 -3 lines
update from trunk

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Aug 12 04:55:51 1994 UTC (30 years, 7 months ago) by jtc
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -3 lines
Removed macro definitions of sigaddset(), segdelset(), & sigismember()
so that the function implementations (which have invalid signal error
checking) are used.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed May 11 03:37:42 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base
Branch point for: netbsd-1-0
user-land signal include file

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>