Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc] Move the remaining public types to their own type headers.
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D117838
- Loading branch information
Siva Chandra Reddy
committed
Jan 20, 2022
1 parent
fa8bb22
commit 284cd69
Showing
23 changed files
with
378 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
add_header(__bsearchcompare_t HDR __bsearchcompare_t.h) | ||
add_header(__call_once_func_t HDR __call_once_func_t.h) | ||
add_header(__qsortcompare_t HDR __qsortcompare_t.h) | ||
add_header(__sigaction HDR __sigaction.h) | ||
add_header(__sighandler_t HDR __sighandler_t.h) | ||
add_header(cnd_t HDR cnd_t.h) | ||
add_header(double_t HDR double_t.h) | ||
add_header(div_t HDR div_t.h) | ||
add_header(ldiv_t HDR ldiv_t.h) | ||
add_header(lldiv_t HDR lldiv_t.h) | ||
add_header(FILE HDR FILE.h) | ||
add_header(fenv_t HDR fenv_t.h) | ||
add_header(fexcept_t HDR fexcept_t.h) | ||
add_header(float_t HDR float_t.h) | ||
add_header(imaxdiv_t HDR imaxdiv_t.h) | ||
add_header(mtx_t HDR mtx_t.h) | ||
add_header(off_t HDR off_t.h) | ||
add_header(once_flag HDR once_flag.h) | ||
add_header(size_t HDR size_t.h) | ||
add_header(ssize_t HDR ssize_t.h) | ||
add_header(thrd_start_t HDR thrd_start_t.h) | ||
add_header(thrd_t HDR thrd_t.h) | ||
add_header(time_t HDR time_t.h) | ||
add_header(tm HDR tm.h) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//===-- Definition of the type FILE ---------------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __LLVM_LIBC_TYPES_FILE_H__ | ||
#define __LLVM_LIBC_TYPES_FILE_H__ | ||
|
||
typedef struct FILE FILE; | ||
|
||
#endif // __LLVM_LIBC_TYPES_FILE_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//===-- Definition of type __bsearchcompare_t -----------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __LLVM_LIBC_TYPES_BSEARCHCOMPARE_T_H__ | ||
#define __LLVM_LIBC_TYPES_BSEARCHCOMPARE_T_H__ | ||
|
||
typedef int (*__bsearchcompare_t)(const void *, const void *); | ||
|
||
#endif // __LLVM_LIBC_TYPES_BSEARCHCOMPARE_T_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//===-- Definition of __call_once_func_t type -----------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __LLVM_LIBC_TYPES_CALL_ONCE_FUNC_T_H__ | ||
#define __LLVM_LIBC_TYPES_CALL_ONCE_FUNC_T_H__ | ||
|
||
typedef void (*__call_once_func_t)(void); | ||
|
||
#endif // __LLVM_LIBC_TYPES_CALL_ONCE_FUNC_T_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//===-- Definition of type __qsortcompare_t -------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __LLVM_LIBC_TYPES_QSORTCOMPARE_T_H__ | ||
#define __LLVM_LIBC_TYPES_QSORTCOMPARE_T_H__ | ||
|
||
typedef int (*__qsortcompare_t)(const void *, const void *); | ||
|
||
#endif // __LLVM_LIBC_TYPES_QSORTCOMPARE_T_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//===-- Definition of struct __sigaction ----------------------------------===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef __LLVM_LIBC_TYPES_SIGACTION_H__ | ||
#define __LLVM_LIBC_TYPES_SIGACTION_H__ | ||
|
||
struct __sigaction { | ||
union { | ||
void (*sa_handler)(int); | ||
void (*sa_action)(int, siginfo_t *, void *); | ||
}; | ||
sigset_t sa_mask; | ||
int sa_flags; | ||
void (*sa_restorer)(void); | ||
}; | ||
|
||
#endif // __LLVM_LIBC_TYPES_SIGACTION_H__ |
Oops, something went wrong.