Skip to content

Commit

Permalink
Update 10 packages
Browse files Browse the repository at this point in the history
bsdcpio (3.7.6-1 -> 3.7.7-1)
bsdtar (3.7.6-1 -> 3.7.7-1)
libarchive (3.7.6-1 -> 3.7.7-1)
mingw-w64-clang-aarch64-crt-git (12.0.0.r335.g6cd6fee9c-1 -> 12.0.0.r351.gcdf6b16b8-1)
mingw-w64-clang-aarch64-headers-git (12.0.0.r335.g6cd6fee9c-2 -> 12.0.0.r351.gcdf6b16b8-1)
mingw-w64-clang-aarch64-libmangle-git (12.0.0.r335.g6cd6fee9c-1 -> 12.0.0.r351.gcdf6b16b8-1)
mingw-w64-clang-aarch64-libwinpthread-git (12.0.0.r335.g6cd6fee9c-1 -> 12.0.0.r351.gcdf6b16b8-1)
mingw-w64-clang-aarch64-tools-git (12.0.0.r335.g6cd6fee9c-1 -> 12.0.0.r351.gcdf6b16b8-1)
mingw-w64-clang-aarch64-winpthreads-git (12.0.0.r335.g6cd6fee9c-1 -> 12.0.0.r351.gcdf6b16b8-1)
mingw-w64-clang-aarch64-winstorecompat-git (12.0.0.r335.g6cd6fee9c-1 -> 12.0.0.r351.gcdf6b16b8-1)

Signed-off-by: Git for Windows Build Agent <ci@git-for-windows.build>
  • Loading branch information
Git for Windows Build Agent committed Oct 15, 2024
1 parent 5f08ba0 commit d6fb927
Show file tree
Hide file tree
Showing 86 changed files with 303 additions and 141 deletions.
Binary file modified clangarm64/bin/gendef.exe
Binary file not shown.
Binary file modified clangarm64/bin/genidl.exe
Binary file not shown.
Binary file modified clangarm64/bin/genpeimg.exe
Binary file not shown.
Binary file modified clangarm64/bin/libwinpthread-1.dll
Binary file not shown.
Binary file modified clangarm64/bin/widl.exe
Binary file not shown.
62 changes: 35 additions & 27 deletions clangarm64/include/ctype.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,42 +121,48 @@ int __cdecl isblank(int _C);
#define _WCTYPE_DEFINED

int __cdecl iswalpha(wint_t _C);
_CRTIMP int __cdecl _iswalpha_l(wint_t _C,_locale_t _Locale);
int __cdecl iswupper(wint_t _C);
_CRTIMP int __cdecl _iswupper_l(wint_t _C,_locale_t _Locale);
int __cdecl iswlower(wint_t _C);
_CRTIMP int __cdecl _iswlower_l(wint_t _C,_locale_t _Locale);
int __cdecl iswdigit(wint_t _C);
_CRTIMP int __cdecl _iswdigit_l(wint_t _C,_locale_t _Locale);
int __cdecl iswxdigit(wint_t _C);
_CRTIMP int __cdecl _iswxdigit_l(wint_t _C,_locale_t _Locale);
int __cdecl iswspace(wint_t _C);
_CRTIMP int __cdecl _iswspace_l(wint_t _C,_locale_t _Locale);
int __cdecl iswpunct(wint_t _C);
_CRTIMP int __cdecl _iswpunct_l(wint_t _C,_locale_t _Locale);
int __cdecl iswalnum(wint_t _C);
_CRTIMP int __cdecl _iswalnum_l(wint_t _C,_locale_t _Locale);
int __cdecl iswprint(wint_t _C);
_CRTIMP int __cdecl _iswprint_l(wint_t _C,_locale_t _Locale);
int __cdecl iswgraph(wint_t _C);
_CRTIMP int __cdecl _iswgraph_l(wint_t _C,_locale_t _Locale);
int __cdecl iswcntrl(wint_t _C);
_CRTIMP int __cdecl _iswcntrl_l(wint_t _C,_locale_t _Locale);
int __cdecl iswascii(wint_t _C);
#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
int __cdecl isleadbyte(int _C);
_CRTIMP int __cdecl _isleadbyte_l(int _C,_locale_t _Locale);
#endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
wint_t __cdecl towupper(wint_t _C);
_CRTIMP wint_t __cdecl _towupper_l(wint_t _C,_locale_t _Locale);
wint_t __cdecl towlower(wint_t _C);
_CRTIMP wint_t __cdecl _towlower_l(wint_t _C,_locale_t _Locale);
int __cdecl iswctype(wint_t _C,wctype_t _Type);
#if __MSVCRT_VERSION__ >= 0x800
#if __MSVCRT_VERSION__ >= 0x800 || (__MSVCRT_VERSION__ == 0x700 && _WIN32_WINNT >= 0x0600)
/* These are available since msvcr80.dll, and in msvcrt.dll since Vista. */
_CRTIMP int __cdecl _iswalpha_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl _iswupper_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl _iswlower_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl _iswdigit_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl _iswxdigit_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl _iswspace_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl _iswpunct_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl _iswalnum_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl _iswprint_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl _iswgraph_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl _iswcntrl_l(wint_t _C,_locale_t _Locale);
_CRTIMP wint_t __cdecl _towupper_l(wint_t _C,_locale_t _Locale);
_CRTIMP wint_t __cdecl _towlower_l(wint_t _C,_locale_t _Locale);
# ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
_CRTIMP int __cdecl _isleadbyte_l(int _C,_locale_t _Locale);
# endif /* _CRT_USE_WINAPI_FAMILY_DESKTOP_APP */
_CRTIMP int __cdecl _iswctype_l(wint_t _C,wctype_t _Type,_locale_t _Locale);
_CRTIMP int __cdecl __iswcsymf(wint_t _C);
_CRTIMP int __cdecl _iswcsymf_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl __iswcsym(wint_t _C);
#endif
#if __MSVCRT_VERSION__ >= 0x800
/* These are only available since msvcr80.dll, never in msvcrt.dll. */
_CRTIMP int __cdecl _iswcsymf_l(wint_t _C,_locale_t _Locale);
_CRTIMP int __cdecl _iswcsym_l(wint_t _C,_locale_t _Locale);
#endif
#ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
Expand Down Expand Up @@ -219,17 +225,19 @@ _CRTIMP int __cdecl ___mb_cur_max_func(void);
#define iswgraph(_c) (iswctype(_c,_PUNCT|_ALPHA|_DIGIT))
#define iswcntrl(_c) (iswctype(_c,_CONTROL))
#define iswascii(_c) ((unsigned)(_c) < 0x80)
#define _iswalpha_l(_c,_p) (_iswctype_l(_c,_ALPHA,_p))
#define _iswupper_l(_c,_p) (_iswctype_l(_c,_UPPER,_p))
#define _iswlower_l(_c,_p) (_iswctype_l(_c,_LOWER,_p))
#define _iswdigit_l(_c,_p) (_iswctype_l(_c,_DIGIT,_p))
#define _iswxdigit_l(_c,_p) (_iswctype_l(_c,_HEX,_p))
#define _iswspace_l(_c,_p) (_iswctype_l(_c,_SPACE,_p))
#define _iswpunct_l(_c,_p) (_iswctype_l(_c,_PUNCT,_p))
#define _iswalnum_l(_c,_p) (_iswctype_l(_c,_ALPHA|_DIGIT,_p))
#define _iswprint_l(_c,_p) (_iswctype_l(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT,_p))
#define _iswgraph_l(_c,_p) (_iswctype_l(_c,_PUNCT|_ALPHA|_DIGIT,_p))
#define _iswcntrl_l(_c,_p) (_iswctype_l(_c,_CONTROL,_p))
#if __MSVCRT_VERSION__ >= 0x800 || (__MSVCRT_VERSION__ == 0x700 && _WIN32_WINNT >= 0x0600)
# define _iswalpha_l(_c,_p) (_iswctype_l(_c,_ALPHA,_p))
# define _iswupper_l(_c,_p) (_iswctype_l(_c,_UPPER,_p))
# define _iswlower_l(_c,_p) (_iswctype_l(_c,_LOWER,_p))
# define _iswdigit_l(_c,_p) (_iswctype_l(_c,_DIGIT,_p))
# define _iswxdigit_l(_c,_p) (_iswctype_l(_c,_HEX,_p))
# define _iswspace_l(_c,_p) (_iswctype_l(_c,_SPACE,_p))
# define _iswpunct_l(_c,_p) (_iswctype_l(_c,_PUNCT,_p))
# define _iswalnum_l(_c,_p) (_iswctype_l(_c,_ALPHA|_DIGIT,_p))
# define _iswprint_l(_c,_p) (_iswctype_l(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT,_p))
# define _iswgraph_l(_c,_p) (_iswctype_l(_c,_PUNCT|_ALPHA|_DIGIT,_p))
# define _iswcntrl_l(_c,_p) (_iswctype_l(_c,_CONTROL,_p))
#endif /* __MSVCRT_VERSION__ >= 0x800 */
#endif
#endif

Expand Down
8 changes: 6 additions & 2 deletions clangarm64/include/d2derr.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
#define _D2DERR_H

/* error codes */
#ifndef D2DERR_WRONG_STATE
/* may be defined from winerror.h */
#define D2DERR_BAD_NUMBER 0x88990011
#define D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED 0x88990009
#define D2DERR_DISPLAY_STATE_INVALID 0x88990006
#define D2DERR_EXCEEDS_MAX_BITMAP_SIZE 0x8899001D
#define D2DERR_INCOMPATIBLE_BRUSH_TYPES 0x88990018
#define D2DERR_INSUFFICIENT_BUFFER HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)
#define D2DERR_INTERNAL_ERROR 0x88990008
#define D2DERR_INVALID_CALL 0x8899000A
#define D2DERR_LAYER_ALREADY_IN_USE 0x88990013
Expand All @@ -37,12 +38,15 @@
#define D2DERR_TEXT_RENDERER_NOT_RELEASED 0x8899001C
#define D2DERR_TOO_MANY_SHADER_ELEMENTS 0x8899000D
#define D2DERR_UNSUPPORTED_OPERATION 0x88990003
#define D2DERR_UNSUPPORTED_PIXEL_FORMAT WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT
#define D2DERR_UNSUPPORTED_VERSION 0x88990010
#define D2DERR_WIN32_ERROR 0x88990019
#define D2DERR_WRONG_FACTORY 0x88990012
#define D2DERR_WRONG_RESOURCE_DOMAIN 0x88990015
#define D2DERR_WRONG_STATE 0x88990001
#define D2DERR_ZERO_VECTOR 0x88990007
#endif

#define D2DERR_INSUFFICIENT_BUFFER HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)
#define D2DERR_UNSUPPORTED_PIXEL_FORMAT WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT

#endif /* _D2DERR_H */
208 changes: 174 additions & 34 deletions clangarm64/include/tbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,189 @@
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/

#ifndef _INC_TBS
#define _INC_TBS
#ifndef _TBS_H_
#define _TBS_H_

#if (_WIN32_WINNT >= 0x0600)
#include <winapifamily.h>

#ifdef __cplusplus
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)

#if defined(__cplusplus)
extern "C" {
#endif

typedef UINT32 TBS_RESULT;

typedef enum _TBS_COMMAND_LOCALITY {
TBS_COMMAND_LOCALITY_ZERO = 0,
TBS_COMMAND_LOCALITY_ONE,
TBS_COMMAND_LOCALITY_TWO,
TBS_COMMAND_LOCALITY_THREE,
TBS_COMMAND_LOCALITY_FOUR
} TBS_COMMAND_LOCALITY;

typedef enum _TBS_COMMAND_PRIORITY {
TBS_COMMAND_PRIORITY_LOW = 100,
TBS_COMMAND_PRIORITY_NORMAL = 200,
TBS_COMMAND_PRIORITY_HIGH = 300,
TBS_COMMAND_PRIORITY_SYSTEM = 400,
TBS_COMMAND_PRIORITY_MAX = 0x80000000
} TBS_COMMAND_PRIORITY;

typedef struct _TBS_CONTEXT_PARAMS {
#if (NTDDI_VERSION >= NTDDI_VISTA)

#ifndef WINAPI
#define WINAPI __stdcall
#endif

#define CONST const

typedef signed int INT32, *PINT32;
typedef const INT32 *PCINT32;
typedef unsigned int UINT32, *PUINT32;
typedef const UINT32 *PCUINT32;

#define VOID void
typedef VOID *PVOID;
typedef const VOID *PCVOID;

typedef INT32 WINBOOL, *PBOOL;
typedef const WINBOOL *PCBOOL;

typedef UINT8 BYTE, *PBYTE;
typedef const BYTE *PCBYTE;

typedef WINBOOL TBS_BOOL;
typedef UINT32 TBS_RESULT;
typedef PVOID TBS_HCONTEXT, *PTBS_HCONTEXT;
typedef UINT32 TBS_COMMAND_PRIORITY;
typedef UINT32 TBS_COMMAND_LOCALITY;
typedef UINT32 TBS_OWNERAUTH_TYPE;
typedef UINT32 TBS_HANDLE;

#define TBS_CONTEXT_VERSION_ONE 1

#define TBS_COMMAND_PRIORITY_LOW 100
#define TBS_COMMAND_PRIORITY_NORMAL 200
#define TBS_COMMAND_PRIORITY_HIGH 300
#define TBS_COMMAND_PRIORITY_SYSTEM 400
#define TBS_COMMAND_PRIORITY_MAX 0x80000000

#define TBS_COMMAND_LOCALITY_ZERO 0
#define TBS_COMMAND_LOCALITY_ONE 1
#define TBS_COMMAND_LOCALITY_TWO 2
#define TBS_COMMAND_LOCALITY_THREE 3
#define TBS_COMMAND_LOCALITY_FOUR 4

#define TBS_SUCCESS 0

#define TBS_IN_OUT_BUF_SIZE_MAX (256 * 1024)

#define TBS_OWNERAUTH_TYPE_FULL 1
#define TBS_OWNERAUTH_TYPE_ADMIN 2
#define TBS_OWNERAUTH_TYPE_USER 3
#define TBS_OWNERAUTH_TYPE_ENDORSEMENT 4

#define TBS_OWNERAUTH_TYPE_ENDORSEMENT_20 12
#define TBS_OWNERAUTH_TYPE_STORAGE_20 13

typedef struct tdTBS_CONTEXT_PARAMS {
UINT32 version;
} TBS_CONTEXT_PARAMS, *PTBS_CONTEXT_PARAMS;
typedef const TBS_CONTEXT_PARAMS *PCTBS_CONTEXT_PARAMS;

TBS_RESULT WINAPI Tbsi_Context_Create(PCTBS_CONTEXT_PARAMS pContextParams, PTBS_HCONTEXT phContext);
TBS_RESULT WINAPI Tbsip_Context_Close(TBS_HCONTEXT hContext);
TBS_RESULT WINAPI Tbsip_Submit_Command(TBS_HCONTEXT hContext, TBS_COMMAND_LOCALITY Locality, TBS_COMMAND_PRIORITY Priority, PCBYTE pabCommand, UINT32 cbCommand, PBYTE pabResult, PUINT32 pcbResult);
TBS_RESULT WINAPI Tbsip_Cancel_Commands(TBS_HCONTEXT hContext);
TBS_RESULT WINAPI Tbsi_Physical_Presence_Command(TBS_HCONTEXT hContext, PCBYTE pabInput, UINT32 cbInput, PBYTE pabOutput, PUINT32 pcbOutput);

#endif /* (NTDDI_VERSION >= NTDDI_VISTA) */

#if (NTDDI_VERSION >= NTDDI_VISTASP1)

TBS_RESULT WINAPI Tbsi_Get_TCG_Log(TBS_HCONTEXT hContext, PBYTE pOutputBuf, PUINT32 pOutputBufLen);

#endif /* _WIN32_WINNT_VISTASP1 */

#if (NTDDI_VERSION >= NTDDI_WIN8)

#define TBS_CONTEXT_VERSION_TWO 2

typedef struct tdTBS_CONTEXT_PARAMS2 {
UINT32 version;
} TBS_CONTEXT_PARAMS;
__C89_NAMELESS union {
__C89_NAMELESS struct {
UINT32 requestRaw : 1;
UINT32 includeTpm12 : 1;
UINT32 includeTpm20 : 1;
};
UINT32 asUINT32;
};
} TBS_CONTEXT_PARAMS2, *PTBS_CONTEXT_PARAMS2;
typedef const TBS_CONTEXT_PARAMS2 *PCTBS_CONTEXT_PARAMS2;

typedef struct tdTPM_WNF_PROVISIONING {
UINT32 status;
BYTE message[28];
} TPM_WNF_PROVISIONING;

#define TPM_WNF_INFO_CLEAR_SUCCESSFUL 0x00000001
#define TPM_WNF_INFO_OWNERSHIP_SUCCESSFUL 0x00000002

#define TPM_WNF_INFO_NO_REBOOT_REQUIRED 1

#ifndef TPM_VERSION_UNKNOWN

#define TPM_VERSION_UNKNOWN 0
#define TPM_VERSION_12 1
#define TPM_VERSION_20 2

#define TPM_IFTYPE_UNKNOWN 0
#define TPM_IFTYPE_1 1
#define TPM_IFTYPE_TRUSTZONE 2
#define TPM_IFTYPE_HW 3
#define TPM_IFTYPE_EMULATOR 4
#define TPM_IFTYPE_SPB 5

typedef struct _TPM_DEVICE_INFO {
UINT32 structVersion;
UINT32 tpmVersion;
UINT32 tpmInterfaceType;
UINT32 tpmImpRevision;
} TPM_DEVICE_INFO, *PTPM_DEVICE_INFO;
typedef const TPM_DEVICE_INFO *PCTPM_DEVICE_INFO;

#endif /* TPM_VERSION_UNKNOWN */

TBS_RESULT WINAPI Tbsi_GetDeviceInfo(UINT32 Size, PVOID Info);
TBS_RESULT WINAPI Tbsi_Get_OwnerAuth(TBS_HCONTEXT hContext, TBS_OWNERAUTH_TYPE ownerauthType, PBYTE pOutputBuf, PUINT32 pOutputBufLen);
TBS_RESULT WINAPI Tbsi_Revoke_Attestation(void);

#endif /* (NTDDI_VERSION >= NTDDI_WIN8) */

#if (NTDDI_VERSION >= NTDDI_WINBLUE)

#ifndef _NTDDK_

typedef LPVOID TBS_HCONTEXT;
HRESULT GetDeviceID(PBYTE pbWindowsAIK, UINT32 cbWindowsAIK, PUINT32 pcbResult, WINBOOL *pfProtectedByTPM);
HRESULT GetDeviceIDString(PWSTR pszWindowsAIK, UINT32 cchWindowsAIK, PUINT32 pcchResult, WINBOOL *pfProtectedByTPM);

TBS_RESULT WINAPI Tbsi_Context_Create(const TBS_CONTEXT_PARAMS *pContextParams,TBS_HCONTEXT *phContext);
TBS_RESULT WINAPI Tbsi_Get_TCG_Log(TBS_HCONTEXT hContext,BYTE *pOutputBuf,UINT32 *pOutputBufLen);
TBS_RESULT WINAPI Tbsi_Physical_Presence_Command(TBS_HCONTEXT hContext,const BYTE *pInputBuf,UINT32 InputBufLen,BYTE *pOutputBuf,UINT32 *pOutputBufLen);
TBS_RESULT WINAPI Tbsip_Cancel_Commands(TBS_HCONTEXT hContext);
TBS_RESULT WINAPI Tbsip_Context_Close(TBS_HCONTEXT hContext);
TBS_RESULT WINAPI Tbsip_Submit_Command(TBS_HCONTEXT hContext,TBS_COMMAND_LOCALITY locality,TBS_COMMAND_PRIORITY priority,const BYTE *pCommandBuf,UINT32 commandBufLen,BYTE *pResultBuf,UINT32 *pResultBufLen);
#endif /* ifndef _NTDDK_ */

#ifdef __cplusplus
#endif /* (NTDDI_VERSION >= NTDDI_WINBLUE) */

#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD)

TBS_RESULT WINAPI Tbsi_Create_Windows_Key(TBS_HANDLE keyHandle);

#endif /* (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) */

#if (NTDDI_VERSION >= NTDDI_WIN10_RS4)

#define TBS_TCGLOG_SRTM_CURRENT 0
#define TBS_TCGLOG_DRTM_CURRENT 1
#define TBS_TCGLOG_SRTM_BOOT 2
#define TBS_TCGLOG_SRTM_RESUME 3
#define TBS_TCGLOG_DRTM_BOOT 4
#define TBS_TCGLOG_DRTM_RESUME 5

TBS_RESULT WINAPI Tbsi_Get_TCG_Log_Ex(UINT32 logType, PBYTE pbOutput, PUINT32 pcbOutput);

#endif /* (NTDDI_VERSION >= NTDDI_WIN10_RS4) */

#if (NTDDI_VERSION >= NTDDI_WIN10_NI)

WINBOOL WINAPI Tbsi_Is_Tpm_Present(void);

#endif /* (NTDDI_VERSION >= NTDDI_WIN10_NI) */

#if defined(__cplusplus)
}
#endif

#endif /*(_WIN32_WINNT >= 0x0600)*/
#endif /*_INC_TBH*/
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */

#endif /* _TBS_H_ */
Loading

0 comments on commit d6fb927

Please sign in to comment.