summaryrefslogtreecommitdiff
path: root/nuttx/sched/os_internal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-18 01:52:42 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-18 01:52:42 +0000
commitc5aff7d2d81275f2023345b9e11ca5cacb34665b (patch)
tree1eae1d92a03b0a2cbd1e83b45704a24d8662cf17 /nuttx/sched/os_internal.h
parentc0ae392704e4e19f7c09fae1e753f777133afe8e (diff)
downloadpx4-nuttx-c5aff7d2d81275f2023345b9e11ca5cacb34665b.tar.gz
px4-nuttx-c5aff7d2d81275f2023345b9e11ca5cacb34665b.tar.bz2
px4-nuttx-c5aff7d2d81275f2023345b9e11ca5cacb34665b.zip
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
Diffstat (limited to 'nuttx/sched/os_internal.h')
-rw-r--r--nuttx/sched/os_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/sched/os_internal.h b/nuttx/sched/os_internal.h
index 32d9fb4ac..f21d9654f 100644
--- a/nuttx/sched/os_internal.h
+++ b/nuttx/sched/os_internal.h
@@ -268,6 +268,9 @@ int task_schedsetup(FAR _TCB *tcb, int priority, start_t start,
int task_argsetup(FAR _TCB *tcb, FAR const char *name, FAR const char *argv[]);
void task_exithook(FAR _TCB *tcb, int status);
int task_deletecurrent(void);
+#ifdef CONFIG_SCHED_HAVE_PARENT
+int task_reparent(pid_t oldpid, pid_t newpid, pid_t chpid);
+#endif
#ifndef CONFIG_CUSTOM_STACK
int kernel_thread(FAR const char *name, int priority, int stack_size,
main_t entry, FAR const char *argv[]);