diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-08-01 17:47:54 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-08-01 17:47:54 +0000 |
commit | 20324504d5997b2ddad85ec3bfa91544c09edd2a (patch) | |
tree | 9226c125b2583f72f45393934b2571f2600fee49 /nuttx/syscall | |
parent | 8a4cf655d73899d4a6bac46c2ef762e0e9344ede (diff) | |
download | px4-firmware-20324504d5997b2ddad85ec3bfa91544c09edd2a.tar.gz px4-firmware-20324504d5997b2ddad85ec3bfa91544c09edd2a.tar.bz2 px4-firmware-20324504d5997b2ddad85ec3bfa91544c09edd2a.zip |
atexit() and on_exit() may now be configured to support multiple exit callbacks
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4995 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/syscall')
-rw-r--r-- | nuttx/syscall/stub_lookup.h | 4 | ||||
-rw-r--r-- | nuttx/syscall/syscall.csv | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/syscall/stub_lookup.h b/nuttx/syscall/stub_lookup.h index 4f75c1696..9b4a92814 100644 --- a/nuttx/syscall/stub_lookup.h +++ b/nuttx/syscall/stub_lookup.h @@ -76,6 +76,10 @@ STUB_LOOKUP(3, STUB_up_assert_code) /* SYS_up_assert_code */ STUB_LOOKUP(1, STUB_atexit) /* SYS_atexit */ #endif +#ifdef CONFIG_SCHED_ONEXIT + STUB_LOOKUP(2, STUB_onexit) /* SYS_onexit */ +#endif + #ifdef CONFIG_SCHED_WAITPID STUB_LOOKUP(3, STUB_waitpid) /* SYS_waitpid */ #endif diff --git a/nuttx/syscall/syscall.csv b/nuttx/syscall/syscall.csv index b323eb95f..22b45df9d 100644 --- a/nuttx/syscall/syscall.csv +++ b/nuttx/syscall/syscall.csv @@ -36,6 +36,7 @@ "mq_timedreceive","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","ssize_t","mqd_t","void*","size_t","int*","const struct timespec*" "mq_timedsend","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t","const char*","size_t","int","const struct timespec*" "mq_unlink","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","const char*" +"on_exit","stdlib.h","defined(CONFIG_SCHED_ONEXIT)","int","CODE void (*func)(int, FAR void *)","FAR void *" "open","fcntl.h","CONFIG_NFILE_DESCRIPTORS > 0","int","const char*","int","..." "opendir","dirent.h","CONFIG_NFILE_DESCRIPTORS > 0","FAR DIR*","FAR const char*" "pipe","unistd.h","CONFIG_NFILE_DESCRIPTORS > 0","int","int [2]|int*" |