diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-04-26 15:00:35 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-04-26 15:00:35 +0000 |
commit | 5642e51579be13cb91805b832a68c003525ed72e (patch) | |
tree | b23f5485d292150d73b40bd01730a22b1677a574 /nuttx/syscall | |
parent | e9fbf7a0380d1e92064fda44d996f5e11b83b9b6 (diff) |
Add interfaces to support getting/setting of thread/task names
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4658 7fd9a85b-ad96-42d3-883c-3090e2eb8679
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 0c4f4451c9..9d6bf18aed 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 f9b33938b8..4f75c16962 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 bff8c50cab..b323eb95f4 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*" |