xref: /llvm-project/libc/include/llvm-libc-types/socklen_t.h (revision 330793c91d08e6ac60334e4813746db898b9407e)
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 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_LIBC_TYPES_SOCKLEN_T_H
10 #define LLVM_LIBC_TYPES_SOCKLEN_T_H
11 
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.
15 
16 typedef unsigned long socklen_t;
17 
18 #endif // LLVM_LIBC_TYPES_SOCKLEN_T_H
19