diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-26 15:00:35 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-04-26 15:00:35 +0000 |
commit | b1236cf9e33dc521db487911b38d5441a220d7ba (patch) | |
tree | b23f5485d292150d73b40bd01730a22b1677a574 /nuttx/syscall | |
parent | 5145ba33ec23c19f84c0d56dc182ea90f7a437d6 (diff) | |
download | px4-nuttx-b1236cf9e33dc521db487911b38d5441a220d7ba.tar.gz px4-nuttx-b1236cf9e33dc521db487911b38d5441a220d7ba.tar.bz2 px4-nuttx-b1236cf9e33dc521db487911b38d5441a220d7ba.zip |
Add interfaces to support getting/setting of thread/task names
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4658 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/syscall')
-rw-r--r-- | nuttx/syscall/stub_lookup.c | 8 | ||||
-rw-r--r-- | nuttx/syscall/stub_lookup.h | 6 | ||||
-rw-r--r-- | nuttx/syscall/syscall.csv | 1 |
3 files changed, 13 insertions, 2 deletions
diff --git a/nuttx/syscall/stub_lookup.c b/nuttx/syscall/stub_lookup.c index 0c4f4451c..9d6bf18ae 100644 --- a/nuttx/syscall/stub_lookup.c +++ b/nuttx/syscall/stub_lookup.c @@ -1,8 +1,8 @@ /**************************************************************************** * syscall/syscall_stublookup.c * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt <spudmonkey@racsa.co.cr> + * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -230,6 +230,10 @@ extern uintptr_t STUB_sendto(uintptr_t parm1, uintptr_t parm2, uintptr_t parm3, extern uintptr_t STUB_setsockopt(uintptr_t parm1, uintptr_t parm2, uintptr_t parm3, uintptr_t parm4, uintptr_t parm5); extern uintptr_t STUB_socket(uintptr_t parm1, uintptr_t parm2, uintptr_t parm3); +/* The following is defined only if CONFIG_TASK_NAME_SIZE > 0 */ + +extern uintptr_t STUB_prctl(uintptr_t parm1, uintptr_t parm2, uintptr_t parm3, uintptr_t parm4, uintptr_t parm5); + /**************************************************************************** * Public Data ****************************************************************************/ diff --git a/nuttx/syscall/stub_lookup.h b/nuttx/syscall/stub_lookup.h index f9b33938b..4f75c1696 100644 --- a/nuttx/syscall/stub_lookup.h +++ b/nuttx/syscall/stub_lookup.h @@ -247,6 +247,12 @@ STUB_LOOKUP(3, STUB_up_assert_code) /* SYS_up_assert_code */ STUB_LOOKUP(3, STUB_socket) /* SYS_socket */ #endif +/* The following is defined only if CONFIG_TASK_NAME_SIZE > 0 */ + +#if CONFIG_TASK_NAME_SIZE > 0 + STUB_LOOKUP(5, STUB_prctl) /* SYS_prctl */ +#endif + /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/nuttx/syscall/syscall.csv b/nuttx/syscall/syscall.csv index bff8c50ca..b323eb95f 100644 --- a/nuttx/syscall/syscall.csv +++ b/nuttx/syscall/syscall.csv @@ -39,6 +39,7 @@ "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*" +"prctl", sys/prctl.h, "CONFIG_TASK_NAME_SIZE > 0","int","int","..." "clock_systimer","nuttx/clock.h","!defined(CONFIG_DISABLE_CLOCK)","uint32_t" "poll","poll.h","!defined(CONFIG_DISABLE_POLL) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0)","int","FAR struct pollfd*","nfds_t","int" "pthread_barrier_destroy","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_barrier_t*" |