summaryrefslogtreecommitdiff
path: root/nuttx/include/sys/syscall.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-26 15:00:35 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-26 15:00:35 +0000
commitb1236cf9e33dc521db487911b38d5441a220d7ba (patch)
treeb23f5485d292150d73b40bd01730a22b1677a574 /nuttx/include/sys/syscall.h
parent5145ba33ec23c19f84c0d56dc182ea90f7a437d6 (diff)
downloadpx4-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/include/sys/syscall.h')
-rw-r--r--nuttx/include/sys/syscall.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/nuttx/include/sys/syscall.h b/nuttx/include/sys/syscall.h
index 616c39546..96650eaea 100644
--- a/nuttx/include/sys/syscall.h
+++ b/nuttx/include/sys/syscall.h
@@ -2,8 +2,8 @@
* include/sys/syscall.h
* This file contains the system call numbers.
*
- * 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
@@ -315,9 +315,18 @@
# define SYS_sendto (__SYS_network+8)
# define SYS_setsockopt (__SYS_network+9)
# define SYS_socket (__SYS_network+10)
-# define SYS_maxsyscall (__SYS_network+11)
+# define SYS_nnetsocket (__SYS_network+11)
#else
-# define SYS_maxsyscall __SYS_network
+# define SYS_nnetsocket __SYS_network
+#endif
+
+/* The following is defined only if CONFIG_TASK_NAME_SIZE > 0 */
+
+#if CONFIG_TASK_NAME_SIZE > 0
+# define SYS_prctl (SYS_nnetsocket+0)
+# define SYS_maxsyscall (SYS_nnetsocket+1)
+#else
+# define SYS_maxsyscall SYS_nnetsocket
#endif
/* Note that the reported number of system calls does *NOT* include the