Files
ipxe/src/include/wchar.h
Michael Brown 6cccb3bdc0 [build] Mark core files as permitted for UEFI Secure Boot
Mark all files used in a standard build of bin-x86_64-efi/snponly.efi
as permitted for UEFI Secure Boot.  These files represent the core
functionality of iPXE that is guaranteed to have been included in
every binary that was previously subject to a security review and
signed by Microsoft.  It is therefore legitimate to assume that at
least these files have already been reviewed to the required standard
multiple times.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2026-01-14 13:25:34 +00:00

32 lines
671 B
C

#ifndef WCHAR_H
#define WCHAR_H
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( PERMITTED );
#include <stddef.h>
typedef void mbstate_t;
/**
* Convert wide character to multibyte sequence
*
* @v buf Buffer
* @v wc Wide character
* @v ps Shift state
* @ret len Number of characters written
*
* This is a stub implementation, sufficient to handle basic ASCII
* characters.
*/
static inline __attribute__ (( always_inline ))
size_t wcrtomb ( char *buf, wchar_t wc, mbstate_t *ps __unused ) {
*buf = wc;
return 1;
}
extern size_t wcsnlen ( const wchar_t *string, size_t max );
extern size_t wcslen ( const wchar_t *string );
#endif /* WCHAR_H */