183f153ceSSiva Chandra Reddy //===-- Implementation of the pthread_mutexattr_init ----------------------===// 283f153ceSSiva Chandra Reddy // 383f153ceSSiva Chandra Reddy // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 483f153ceSSiva Chandra Reddy // See https://llvm.org/LICENSE.txt for license information. 583f153ceSSiva Chandra Reddy // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 683f153ceSSiva Chandra Reddy // 783f153ceSSiva Chandra Reddy //===----------------------------------------------------------------------===// 883f153ceSSiva Chandra Reddy 983f153ceSSiva Chandra Reddy #include "pthread_mutexattr_init.h" 1083f153ceSSiva Chandra Reddy #include "pthread_mutexattr.h" 1183f153ceSSiva Chandra Reddy 1283f153ceSSiva Chandra Reddy #include "src/__support/common.h" 13*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h" 1483f153ceSSiva Chandra Reddy 15*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL { 1683f153ceSSiva Chandra Reddy 1783f153ceSSiva Chandra Reddy LLVM_LIBC_FUNCTION(int, pthread_mutexattr_init, (pthread_mutexattr_t * attr)) { 1883f153ceSSiva Chandra Reddy // Set the default attributes and mark the attribute object as initiliazed 1983f153ceSSiva Chandra Reddy // by setting the first bit. 2083f153ceSSiva Chandra Reddy *attr = DEFAULT_MUTEXATTR; 2183f153ceSSiva Chandra Reddy return 0; 2283f153ceSSiva Chandra Reddy } 2383f153ceSSiva Chandra Reddy 24*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL 25