File tree Expand file tree Collapse file tree 6 files changed +50
-0
lines changed Expand file tree Collapse file tree 6 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,15 @@ add_proxy_header_library(
162162    libc.include .fcntl
163163)
164164
165+ add_proxy_header_library(
166+   errno_t
167+   HDRS
168+     errno_t.h
169+   FULL_BUILD_DEPENDS
170+     libc.include .llvm-libc-types.errno_t
171+     libc.include .errno
172+ )
173+ 
165174add_proxy_header_library(
166175  fenv_t
167176  HDRS
Original file line number Diff line number Diff line change 1+ //===-- Proxy for errno_t -------------------------------------------------===// 
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_HDR_TYPES_ERRNO_T_H 
10+ #define  LLVM_LIBC_HDR_TYPES_ERRNO_T_H 
11+ 
12+ #define  LIBC_HAS_ANNEX_K 
13+ 
14+ #include  "include/llvm-libc-types/errno_t.h" 
15+ 
16+ #undef  LIBC_HAS_ANNEX_K
17+ 
18+ #endif  // LLVM_LIBC_HDR_TYPES_ERRNO_T_H 
Original file line number Diff line number Diff line change @@ -302,6 +302,7 @@ add_header_macro(
302302  DEPENDS 
303303    .llvm-libc-macros .generic_error_number_macros
304304    .llvm-libc-macros .error_number_macros
305+     .llvm-libc-types.errno_t
305306)
306307
307308add_header_macro(
Original file line number Diff line number Diff line change @@ -33,4 +33,6 @@ __END_C_DECLS
3333
3434#define errno (*__llvm_libc_errno())
3535
36+ #include "llvm-libc-types/errno_t.h"
37+ 
3638#endif // LLVM_LIBC_ERRNO_H
Original file line number Diff line number Diff line change @@ -296,3 +296,5 @@ add_header(EFI_SYSTEM_TABLE
296296    .EFI_TABLE_HEADER
297297    .char16_t
298298)
299+ 
300+ add_header(errno_t HDR errno_t.h)
Original file line number Diff line number Diff line change 1+ //===-- Definition of type errno_t ----------------------------------------===// 
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_INCLUDE_LLVM_LIBC_TYPES_ERRNO_T_H 
10+ #define  LLVM_LIBC_INCLUDE_LLVM_LIBC_TYPES_ERRNO_T_H 
11+ 
12+ #ifdef  LIBC_HAS_ANNEX_K 
13+ 
14+ typedef  int  errno_t ;
15+ 
16+ #endif  // LIBC_HAS_ANNEX_K 
17+ 
18+ #endif  // LLVM_LIBC_INCLUDE_LLVM_LIBC_TYPES_ERRNO_T_H 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments