Warning: This file is not a C or C++ file. It does not have highlighting.
| 1 | //===-- Definition of struct sockaddr -------------------------------------===// |
|---|---|
| 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_STRUCT_SOCKADDR_H |
| 10 | #define LLVM_LIBC_TYPES_STRUCT_SOCKADDR_H |
| 11 | |
| 12 | #include "sa_family_t.h" |
| 13 | |
| 14 | struct sockaddr { |
| 15 | sa_family_t sa_family; |
| 16 | // sa_data is a variable length array. It is provided with a length of one |
| 17 | // here as a placeholder. |
| 18 | char sa_data[1]; |
| 19 | }; |
| 20 | |
| 21 | #endif // LLVM_LIBC_TYPES_STRUCT_SOCKADDR_H |
| 22 |
Warning: This file is not a C or C++ file. It does not have highlighting.
