mirror of
https://github.com/apache/nuttx.git
synced 2026-09-26 01:46:57 +08:00
Add SYSCALLS for pthread_setaffinity() and pthread_getaffinity()
This commit is contained in:
+15
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user