[clang-tidy][NFC]remove deps of clang in clang tidy test (#116588)
[llvm-project.git] / libc / include / llvm-libc-types / socklen_t.h
blob5357747f5b83660bba5a1ca9efc873f7dba11659
1 //===-- Definition of socklen_t type ------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_TYPES_SOCKLEN_T_H
10 #define LLVM_LIBC_TYPES_SOCKLEN_T_H
12 // The posix standard only says of socklen_t that it must be an integer type of
13 // width of at least 32 bits. The long type is defined as being at least 32
14 // bits, so an unsigned long should be fine.
16 typedef unsigned long socklen_t;
18 #endif // LLVM_LIBC_TYPES_SOCKLEN_T_H