liuhaitao
b2f8a79c3b
sched/signal: Add support for SIGPIPE. SIGPIPE uses SIG_SIGPIPE_ACTION which terminates process by default. It also could be ignored.
2019-10-17 11:29:39 -06:00
Gregory Nutt
fc79fc5ce1
arch/z80/src: Fix ez80 compile problems due to New ZDS-II toolchain and ongoing bit rot due to non-C89 code creeping into the core OS.
2019-06-02 15:36:38 -06:00
oao Matos
24f5cde922
include/signal.h: Add commented out definition of the si_addr field.
2019-04-04 11:22:52 -06:00
Xiang Xiao
43d47a66c5
include/pthread.h and signal.h: Avoid redefinition of types
2019-01-27 11:34:39 -06:00
Gregory Nutt
68d4c1d4ed
C library: Add some new functions defined in POSIX.1-2017: stpncpy(), strsignal(), psignal(), psiginfo().
2018-09-17 13:55:33 -06:00
Gregory Nutt
33e3fb7a70
Correct mispellings of pseudo. Update some comments in signal.h.
2018-09-05 11:56:14 -06:00
Gregory Nutt
a7265d71c6
This commit adds support for default signal actions for SIGSTOP, SIGSTP, and SIGCONT.
...
Squashed commit of the following:
Add procfs support to show stopped tasks. Add nxsig_action() to solve a chicken and egg problem: We needed to use sigaction to set default actions, but sigaction() would refuse to set actions if the default actions could not be caught or ignored.
sched/signal: Add configuration option to selectively enabled/disable default signal actions for SIGSTOP/SIGSTP/SIGCONT and SIGKILL/SIGINT. Fix some compilation issues.
sched/sched: Okay.. I figured out a way to handle state changes that may occur while they were stopped. If a task/thread was already blocked when SIGSTOP/SIGSTP was received, it will restart in the running state. I will appear that to the task/thread that the blocked condition was interrupt by a signal and returns the EINTR error.
sched/group and sched/sched: Finish framework for continue/resume logic.
sched/signal: Roughing out basic structure to support task suspend/resume
2018-08-30 10:27:18 -06:00
Gregory Nutt
0756cf66ed
sched/signal: Add support for SIGINT in addition to SIGKILL. drivers/serial: Use SIGINT instead of SIGKILL when control-C is pressed.
2018-08-28 12:15:31 -06:00
Gregory Nutt
499b89feed
sched/signal: Default Signal Actions. Change some types to superficially simplify. Add configuration options to enabled default signal behaviors on a per-signal basis. I don't think users are prepared for SIGALRM to terminate the task (which is the correct default behavior if you don't change it). Extend the implementation of default signals so that it is totally table driven and extensible by simply mondifying the content of const tables.
2018-08-27 15:37:43 -06:00
Gregory Nutt
6d094e4b33
sched/signals: Update the signal default action logic to support sigaction(). signaction() must be able to handle and input action of SIG_DFL to setup the default signal action; it mast also return SIG_DFL it is replacing the default action.
2018-08-27 13:13:23 -06:00
Gregory Nutt
c0d234a474
Squashed commit of the following:
...
drivers/serial/Kconfig: It is no longer necessary to restrict Ctrl-C handling to the FLAT build
sched/signal: Add a new configuration option to select signal default actions, separate handling of signal default actions from both task startup logic and from the serial TTY Ctrl-C logic. Add a signal set in the group structure to keep track of what signals have been set to the default action. In dispatching signals in PROTECTED or KERNEL mode, use this signal set to determine if the default signal handler is attached and dispatch the signal in kernel mode for the default actions.
2018-08-27 11:40:09 -06:00
ligd
11f8dc735c
Squashed commit of the following:
...
drivers/serial: Add Ctrl-C/Ctrl-X support. This is an initial working implementation that still requires that several details be resolved.
sched/task/task_start.c: Add default signal action to SIGKILL.
2018-08-26 08:49:08 -06:00
Gregory Nutt
07ef3fe018
Another update to the coding standard; Add some comments detailing the POSIX non-compliance in include/signal.h
2018-08-21 15:27:37 -06:00
Gregory Nutt
bf7839d0f0
libc/signal: Add support for sigwait().
2017-11-11 12:37:47 -06:00
Gregory Nutt
3664b0ab66
SDCC Fixes: Change some prototypes and some assumptions about the size of unsigned int to get to a clean SDCC compile.
2017-10-08 08:50:18 -06:00
Gregory Nutt
440d535360
include/cxx: Update some C++ header files due to recent changes to C hader files
2016-08-25 15:06:46 -06:00
Sebastien Lorquet
7021b143ce
Add POSIX type sig_atomic_t
2016-08-24 10:16:41 -06:00
Gregory Nutt
830af912a1
Add sig_raise()
2016-07-04 09:32:36 -06:00
Aleksandr Vyhovanec
c939bbe47a
include/signal.h: Change type of SIG_IGN and related defines to _sa_handler_t
2016-06-07 06:56:19 -06:00
Gregory Nutt
6653c5cbf3
Signals: Correct implementation of sigset(). It is not just signal() with a different name; it has some additional signal mask handling functionality
2016-04-11 09:04:54 -06:00
Gregory Nutt
947aa792db
Signals: Fix the macro that maps segset() to signal(). Parameters were not correct.
2016-04-10 16:41:50 -06:00
Gregory Nutt
28a4ca6713
libc/signal and include/signal.h: Rename sigset() to signal(). sigset() is the System V function; signal() is the obsoleted POSIX name. These seem to be equivalent. Neither are relevant in modern POSIX programming but the name signal() probably has better credentials. sigset() is now relegated to a #define in signal.h that makes it equivalent to signal().
2016-04-10 14:35:45 -06:00
Gregory Nutt
b1938c065d
sys/time.h: Fix timersub macro; time_t is unsigned
2015-12-31 09:05:35 -06:00
Gregory Nutt
c1fff4706c
signals: Adds a very limited, minimal implementation for SIGEV_THREAD
2015-12-30 15:01:14 -06:00
Gregory Nutt
9835eeb181
signals: Basic framework to support SIGEV_THREAD
2015-12-30 13:20:31 -06:00
Gregory Nutt
768d892188
Add si_errno to siginfo_t
2015-08-14 10:10:32 -06:00
Gregory Nutt
9cbac41e78
Clean-up/standardize a few header files
2015-08-03 11:01:41 -06:00
Gregory Nutt
b578c98fa9
Clean up and review of header files for conformance to standards
2015-06-12 19:26:01 -06:00
Gregory Nutt
fc45d5a2b7
SIG_HOLD is not yet implemented
2015-04-09 11:25:15 -06:00
Gregory Nutt
81703e6fad
Add sigset()
2015-04-09 10:16:35 -06:00
Gregory Nutt
4c60fe666c
Add sighold(), sigrelse(), sigignore(), and sigpause().
2015-04-09 08:07:09 -06:00
Gregory Nutt
652d3ed29d
Rename CONFIG_LIBC_AIO to CONFIG_FS_AIO since it is now an OS property
2014-10-05 15:44:43 -06:00
Gregory Nutt
c274acc48f
Move AIO signal logic to a common location in aio_signal.c. Also fix several typos
2014-10-05 06:53:56 -06:00
Gregory Nutt
31cdcde73a
Add definitions for SIGPOLL
2014-10-05 06:02:37 -06:00
Gregory Nutt
352c313fa7
Fix typo/compilation error with USB device DMA memory allocation is enabled
2013-07-12 07:09:24 -06:00
patacongo
b3890db5ce
Add support for calling to and returning from signal handlers in in user-mode threads
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5750 42af7a65-404d-4744-a932-0658087f49c3
2013-03-17 00:40:49 +00:00
patacongo
3736ae6ba9
Add logic to retain child task exit status if so configured
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5553 42af7a65-404d-4744-a932-0658087f49c3
2013-01-23 22:23:46 +00:00
patacongo
3888a00d2d
Add internal API task_reparent(), used in posix_spawn(). Move libc/spawn/lib_ps.c to sched/task_posixspawn.c; Move libc/spawn/spawn.h to include/nuttx/spawn.h
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5531 42af7a65-404d-4744-a932-0658087f49c3
2013-01-18 01:52:42 +00:00
patacongo
3f0b723b7c
Fix a *critical* bug in the task exit logic. Implements SIGCHILD
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5513 42af7a65-404d-4744-a932-0658087f49c3
2013-01-12 19:58:45 +00:00
patacongo
8e5733ae3f
Header file clean-up
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4948 42af7a65-404d-4744-a932-0658087f49c3
2012-07-17 03:58:11 +00:00
patacongo
21ae727f6f
Add syscall directory
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3438 42af7a65-404d-4744-a932-0658087f49c3
2011-03-30 02:59:01 +00:00
patacongo
b829c79382
Beginning to add on-demand paging logic
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2850 42af7a65-404d-4744-a932-0658087f49c3
2010-08-14 01:56:13 +00:00
patacongo
eeec4073a9
Switching to C99 stdint.h types
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2340 42af7a65-404d-4744-a932-0658087f49c3
2009-12-14 23:32:23 +00:00
patacongo
92b110e0e2
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2335 42af7a65-404d-4744-a932-0658087f49c3
2009-12-14 15:46:55 +00:00
patacongo
9535a28d7a
Eliminate some hcs12 compile errors/warnings
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2329 42af7a65-404d-4744-a932-0658087f49c3
2009-12-13 15:13:37 +00:00
patacongo
64e5bef2f6
Incorporate the work thread
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2230 42af7a65-404d-4744-a932-0658087f49c3
2009-11-05 22:58:36 +00:00
patacongo
680b476d38
Finish nxflat test Makefiles
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1913 42af7a65-404d-4744-a932-0658087f49c3
2009-06-20 13:27:43 +00:00
patacongo
cd37d9323a
cosmetic updates
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1709 42af7a65-404d-4744-a932-0658087f49c3
2009-04-19 15:21:22 +00:00
patacongo
014abe3f46
Add FAR to pointer
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1353 42af7a65-404d-4744-a932-0658087f49c3
2008-11-29 18:15:36 +00:00
patacongo
40f92a9da4
Z16F integration changes
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@595 42af7a65-404d-4744-a932-0658087f49c3
2008-01-31 17:59:22 +00:00