From dc0f656926203b7b7c05ea226225daa8a63fcdb1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 19 Mar 2018 02:33:09 +0100 Subject: Move bits/thread-attr.h to bits/types/struct___pthread_attr.h * sysdeps/pthread/bits/thread-attr.h: Move file to... * sysdeps/pthread/bits/types/struct___pthread_attr.h: ... here. * Makefile (headers): Update accordingly. * sysdeps/generic/pthread.h: Likewise. * sysdeps/pthread/bits/pthreadtypes.h: Likewise. --- sysdeps/pthread/bits/pthreadtypes.h | 2 +- sysdeps/pthread/bits/thread-attr.h | 45 ---------------------- sysdeps/pthread/bits/types/struct___pthread_attr.h | 45 ++++++++++++++++++++++ 3 files changed, 46 insertions(+), 46 deletions(-) delete mode 100644 sysdeps/pthread/bits/thread-attr.h create mode 100644 sysdeps/pthread/bits/types/struct___pthread_attr.h (limited to 'sysdeps/pthread') diff --git a/sysdeps/pthread/bits/pthreadtypes.h b/sysdeps/pthread/bits/pthreadtypes.h index 1ff4996..fc5bc5b 100644 --- a/sysdeps/pthread/bits/pthreadtypes.h +++ b/sysdeps/pthread/bits/pthreadtypes.h @@ -62,7 +62,7 @@ enum __pthread_detachstate __PTHREAD_CREATE_DETACHED }; -#include +#include typedef struct __pthread_attr pthread_attr_t; enum __pthread_mutex_protocol diff --git a/sysdeps/pthread/bits/thread-attr.h b/sysdeps/pthread/bits/thread-attr.h deleted file mode 100644 index 3b1591f..0000000 --- a/sysdeps/pthread/bits/thread-attr.h +++ /dev/null @@ -1,45 +0,0 @@ -/* Thread attribute type. Generic version. - Copyright (C) 2000-2018 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public - License along with the GNU C Library; see the file COPYING.LIB. If - not, see . */ - -#ifndef _BITS_THREAD_ATTR_H -#define _BITS_THREAD_ATTR_H 1 - -#include - -#define __need_size_t -#include - -enum __pthread_detachstate; -enum __pthread_inheritsched; -enum __pthread_contentionscope; - -/* This structure describes the attributes of a POSIX thread. Note - that not all of them are supported on all systems. */ -struct __pthread_attr -{ - struct sched_param __schedparam; - void *__stackaddr; - size_t __stacksize; - size_t __guardsize; - enum __pthread_detachstate __detachstate; - enum __pthread_inheritsched __inheritsched; - enum __pthread_contentionscope __contentionscope; - int __schedpolicy; -}; - -#endif /* bits/thread-attr.h */ diff --git a/sysdeps/pthread/bits/types/struct___pthread_attr.h b/sysdeps/pthread/bits/types/struct___pthread_attr.h new file mode 100644 index 0000000..44f9543 --- /dev/null +++ b/sysdeps/pthread/bits/types/struct___pthread_attr.h @@ -0,0 +1,45 @@ +/* Thread attribute type. Generic version. + Copyright (C) 2000-2018 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If + not, see . */ + +#ifndef _BITS_TYPES_STRUCT___PTHREAD_ATTR +#define _BITS_TYPES_STRUCT___PTHREAD_ATTR 1 + +#include + +#define __need_size_t +#include + +enum __pthread_detachstate; +enum __pthread_inheritsched; +enum __pthread_contentionscope; + +/* This structure describes the attributes of a POSIX thread. Note + that not all of them are supported on all systems. */ +struct __pthread_attr +{ + struct sched_param __schedparam; + void *__stackaddr; + size_t __stacksize; + size_t __guardsize; + enum __pthread_detachstate __detachstate; + enum __pthread_inheritsched __inheritsched; + enum __pthread_contentionscope __contentionscope; + int __schedpolicy; +}; + +#endif /* bits/types/struct___pthread_attr.h */ -- cgit v1.2.3