summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/pthread.h
Commit message (Collapse)AuthorAgeFilesLines
* pthread.h, sys/types.h Add missing pthread methodsJoel Sherrill2016-02-221-6/+21
| | | | | | | | | * pthread.h: Add prototypes for pthread_condattr_getclock(), pthread_condattr_setclock(), pthread_setschedpri(), pthread_getcpuclockid(), pthread_getconcurrency(), and pthread_setconcurrency(). Also cleaned up file header to remove CVS Id string. * sys/types.h: Add clock ID to pthread_condattr_t.
* Include <sched.h> in <pthread.h>Sebastian Huber2015-10-301-1/+1
| | | | | | | | | | | This is mandated by POSIX. 2015-10-30 Sebastian Huber <sebastian.huber@embedded-brains.de> libc/include/pthread.h: Include <sched.h> instead of <sys/sched.h>. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* 2013-11-29 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-11-291-3/+44
| | | | | | | | | | | | | * libc/include/pthread.h (pthread_cleanup_push): Delete prototype and add macro of the same name. (pthread_cleanup_pop): Likewise. (_pthread_cleanup_context): Define. (_pthread_cleanup_push): Likewise. (_pthread_cleanup_pop): Likewise. (pthread_cleanup_push_defer_np): Define if _GNU_SOURCE is defined. (pthread_cleanup_pop_restore_np): Likewise. (_pthread_cleanup_push_defer): Likewise. (_pthread_cleanup_pop_restore): Likewise.
* 2013-11-29 Jennifer Averett <jennifer.averett@oarcorp.com>Joel Sherrill2013-11-291-1/+25
| | | | | | | | | | | | | * libc/include/pthread.h (pthread_attr_setaffinity_np): Add pthread SMP affinity attributes to methods to RTEMS for compatibility with GNU/Linux. (pthread_attr_getaffinity_np): Likewise. (pthread_setaffinity_np): Likewise. (pthread_getaffinity_np): Likewise. (pthread_getattr_np): Add for GNU/Linux compatibility. * libc/include/sys/types.h: Add cpuset to pthread_attr_t for RTEMS. * libc/include/sys/cdefs.h (_GNU_SOURCE): Defining _GNU_SOURCE turns on all _XXX_VISBLE feature flags.
* 2013-01-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2013-01-221-1/+8
| | | | | * libc/include/pthread.h: Add PTHREAD_RWLOCK_INITIALIZER. Fix typo on PTHREAD_COJND_INITIALIZER.
* * include/sys/types.h: Add #if defined(__rtems__) aroundCorinna Vinschen2010-12-081-2/+10
| | | | | | | | pthread_attr_t.guardsize. * include/pthread.h: Add pthread_attr_setstack, pthread_attr_getstack, pthread_attr_getguardsize, pthread_attr_setguardsize. * include/sys/types.h (pthread_attr_t): Add guardsize.
* 2009-12-17 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2009-12-171-15/+5
| | | | | | | * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock * libc/include/sys/stat.h: Use struct timespec st_*tim, blksize_t st_blksize, blkcnt_t st_blocks. Add st_*time compatibility macros.
* 2009-06-17 Michael Eager <eager@eagercon.com>Jeff Johnston2009-06-171-1/+1
| | | | | | | * libc/include/pthread.h: Support XMK (Xilinx) BSP, add RTEMS to PTHREAD_MUTEX_NORMAL. * libc/include/sys/features.h: Same. * libc/include/sys/types.h: Same.
* 2008-11-19 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2008-11-191-8/+0
| | | | | | * libc/include/pthread.h: Remove prototypes for pthread_attr_getcputime and pthread_attr_setcputime which were proposed but never approved by the POSIX standard.
* 2008-09-25 Raphael Derossa Pereira <raphaelpereira@gmail.com>Jeff Johnston2008-09-261-0/+11
| | | | | | | | | | * libc/include/pthread.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add new pthread_mutexattr_gettype and pthread_mutexattr_settype prototypes. * libc/include/sys/types.h[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add new mutex type values. (pthread_mutexattr_t)[_UNIX98_THREAD_MUTEX_ATTRIBUTES]: Add type field.
* 2006-09-13 Joel Sherrill <joel@oarcorp.com>Jeff Johnston2006-09-131-64/+122
| | | | | | | | | | | * libc/include/pthread.h: Add pthread barriers, rwlocks, and spinlocks. Change const to _CONST and prefix parameter names with an underscore. * libc/include/sys/types.h: Add id and attribute types for barriers, wrlocks, and spinlocks. * libc/include/sys/features.h: Enable barriers, wrlocks, and spinlocks for RTEMS.
* 2002-10-07 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-10-081-0/+2
| | | | * libc/include/pthread.h: Define PTHREAD_CANCELED.
* 2000-12-11 Joel Sherrill <joel@OARcorp.com>Jeff Johnston2000-12-121-0/+298
* Merge RTEMS specific .h files into main libc/include. * libc/sys/rtems/include/signal.h: Removed. * libc/sys/rtems/include/time.h: Removed. * libc/sys/rtems/sys/features.h: Removed. * libc/sys/rtems/sys/sched.h: Removed. * libc/sys/rtems/sys/siginfo.h: Removed. * libc/sys/rtems/sys/signal.h: Removed. * libc/sys/rtems/sys/time.h: Removed. * libc/sys/rtems/sys/times.h: Removed. definitions for time_t and clock_t since these are no longer in time.h. * libc/include/pthread.h: New file. * libc/include/sys/sched.h: New file. * libc/include/sys/features.h: New file. * libc/include/time.h: Removed duplicate definition of clock_t and time_t, get them from <sys/types.h> instead. Add prototypes for POSIX clock and timer functionality. * libc/sys/linux/sys/types.h: Changed to include * libc/include/machine/types.h: Add _CLOCKID_T_ and _TIMER_T_. * libc/include/sys/signal.h: Add more complete set of POSIX signal functionality including real-time and threaded signals. * libc/include/sys/types.h: Add clock_t, time_t, struct timespec, and struct itimerspec. Centralizing these makes things cleaner. RTEMS uses 64-bit dev_t. Added numerous primitive definitions for pthreads including macros, pthread_attr_t, pthread_mutexattr_t, pthread_condattr_t, pthread_key_t, pthread_once_t, and pthread_t. * libc/include/sys/unistd.h: Added getlogin_r() prototype. If RTEMS follow POSIX on read(), write() and sbrk() prototype. Feature flags removed and moved to new file <sys/features.h>. Full set of POSIX sysconf() constants