Add SYSCALLS for pthread_setaffinity() and pthread_getaffinity()

This commit is contained in:
Gregory Nutt
2016-02-19 18:13:06 -06:00
parent 1b5e296cf2
commit 5a590e99b9
6 changed files with 31 additions and 16 deletions
+15 -7
View File
@@ -2,7 +2,7 @@
* include/sys/syscall.h
* This file contains the system call numbers.
*
* Copyright (C) 2011-2014 Gregory Nutt. All rights reserved.
* Copyright (C) 2011-2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -377,13 +377,21 @@
# define SYS_pthread_setspecific (__SYS_pthread+26)
# define SYS_pthread_yield (__SYS_pthread+27)
# ifndef CONFIG_DISABLE_SIGNALS
# define SYS_pthread_cond_timedwait (__SYS_pthread+28)
# define SYS_pthread_kill (__SYS_pthread+29)
# define SYS_pthread_sigmask (__SYS_pthread+30)
# define __SYS_mqueue (__SYS_pthread+31)
# ifndef CONFIG_SMP
# define SYS_pthread_setaffinity_np (__SYS_pthread+28)
# define SYS_pthread_getaffinity_np (__SYS_pthread+29)
# define __SYS_pthread_signals (__SYS_pthread+30)
# else
# define __SYS_mqueue (__SYS_pthread+28)
# define __SYS_pthread_signals (__SYS_pthread+28)
# endif
# ifndef CONFIG_DISABLE_SIGNALS
# define SYS_pthread_cond_timedwait (__SYS_pthread_signals+0)
# define SYS_pthread_kill (__SYS_pthread_signals+1)
# define SYS_pthread_sigmask (__SYS_pthread_signals+2)
# define __SYS_mqueue (__SYS_pthread_signals+3)
# else
# define __SYS_mqueue __SYS_pthread_signals
# endif
#else