]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nptl/pthread_attr_getscope.c
Update copyright dates with scripts/update-copyrights
[thirdparty/glibc.git] / nptl / pthread_attr_getscope.c
index 1b97ef3b36211a94eabe394fa8fe6d000cb9aefe..b51cfa698789f57aa88346392fc5358fb2f992b6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2021 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <https://www.gnu.org/licenses/>.  */
 
-#include <assert.h>
 #include "pthreadP.h"
 
 
 int
-pthread_attr_getscope (attr, scope)
-     const pthread_attr_t *attr;
-     int *scope;
+__pthread_attr_getscope (const pthread_attr_t *attr, int *scope)
 {
   struct pthread_attr *iattr;
 
-  assert (sizeof (*attr) >= sizeof (struct pthread_attr));
   iattr = (struct pthread_attr *) attr;
 
   /* Store the current values.  */
@@ -37,3 +32,4 @@ pthread_attr_getscope (attr, scope)
 
   return 0;
 }
+strong_alias (__pthread_attr_getscope, pthread_attr_getscope)