// MurmurHash2 was written by Austin Appleby, and is placed in the public
// domain. The author hereby disclaims copyright to this source code.
-#ifndef _MURMURHASH2_H_
-#define _MURMURHASH2_H_
+#pragma once
//-----------------------------------------------------------------------------
// Platform-specific functions and macros
uint32_t MurmurHash2 ( const void * key, int len, uint32_t seed );
//-----------------------------------------------------------------------------
-
-#endif // _MURMURHASH2_H_
-#ifndef _LINUX_SECUREBITS_H
-#define _LINUX_SECUREBITS_H 1
+#pragma once
/* This is minimal version of Linux' linux/securebits.h header file,
* which is licensed GPL2 */
issecure_mask(SECURE_NO_SETUID_FIXUP) | \
issecure_mask(SECURE_KEEP_CAPS))
#define SECURE_ALL_LOCKS (SECURE_ALL_BITS << 1)
-
-#endif /* !_LINUX_SECUREBITS_H */
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
-#ifndef SPARSE_ENDIAN_H
-#define SPARSE_ENDIAN_H
+#pragma once
#include <byteswap.h>
#include <endian.h>
#undef __sd_bitwise
#undef __sd_force
-
-#endif /* SPARSE_ENDIAN_H */
/* SPDX-License-Identifier: LGPL-2.1+ */
-
-#ifndef __SDBOOT_CONSOLE_H
-#define __SDBOOT_CONSOLE_H
+#pragma once
#define EFI_SHIFT_STATE_VALID 0x80000000
#define EFI_RIGHT_CONTROL_PRESSED 0x00000004
EFI_STATUS console_key_read(UINT64 *key, BOOLEAN wait);
EFI_STATUS console_set_mode(UINTN *mode, enum console_mode_change_type how);
-#endif
/* SPDX-License-Identifier: LGPL-2.1+ */
-
-#ifndef __SDBOOT_DISK_H
-#define __SDBOOT_DISK_H
+#pragma once
EFI_STATUS disk_get_part_uuid(EFI_HANDLE *handle, CHAR16 uuid[37]);
-#endif
* Copyright © 2013 Intel Corporation
* Authored by Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
*/
-
-#ifndef __SDBOOT_GRAPHICS_H
-#define __SDBOOT_GRAPHICS_H
+#pragma once
EFI_STATUS graphics_mode(BOOLEAN on);
-#endif
/* SPDX-License-Identifier: LGPL-2.1+ */
-
-#ifndef __SDBOOT_kernel_H
-#define __SDBOOT_kernel_H
+#pragma once
EFI_STATUS linux_exec(EFI_HANDLE *image,
CHAR8 *cmdline, UINTN cmdline_size,
UINTN linux_addr,
UINTN initrd_addr, UINTN initrd_size, BOOLEAN secure);
-#endif
/* SPDX-License-Identifier: LGPL-2.1+ */
-#ifndef __SDBOOT_MEASURE_H
-#define __SDBOOT_MEASURE_H
+#pragma once
EFI_STATUS tpm_log_event(UINT32 pcrindex, const EFI_PHYSICAL_ADDRESS buffer, UINTN buffer_size, const CHAR16 *description);
-
-#endif
/* SPDX-License-Identifier: LGPL-2.1+ */
-
-#ifndef __SDBOOT_PEFILE_H
-#define __SDBOOT_PEFILE_H
+#pragma once
EFI_STATUS pe_memory_locate_sections(CHAR8 *base,
CHAR8 **sections, UINTN *addrs, UINTN *offsets, UINTN *sizes);
EFI_STATUS pe_file_locate_sections(EFI_FILE *dir, CHAR16 *path,
CHAR8 **sections, UINTN *addrs, UINTN *offsets, UINTN *sizes);
-#endif
* Copyright © 2012 <James.Bottomley@HansenPartnership.com>
* https://github.com/mjg59/efitools
*/
-
-#ifndef __SDBOOT_SHIM_H
-#define __SDBOOT_SHIM_H
+#pragma once
BOOLEAN shim_loaded(void);
EFI_STATUS security_policy_install(void);
EFI_STATUS security_policy_uninstall(void);
-
-#endif
/* SPDX-License-Identifier: LGPL-2.1+ */
-
-#ifndef __SDBOOT_SPLASH_H
-#define __SDBOOT_SPLASH_H
+#pragma once
EFI_STATUS graphics_splash(UINT8 *content, UINTN len, const EFI_GRAPHICS_OUTPUT_BLT_PIXEL *background);
-#endif
/* SPDX-License-Identifier: LGPL-2.1+ */
-
-#ifndef __SDBOOT_UTIL_H
-#define __SDBOOT_UTIL_H
+#pragma once
#include <efi.h>
#include <efilib.h>
#define _cleanup_(x) __attribute__((cleanup(x)))
#define _cleanup_freepool_ _cleanup_(FreePoolp)
-
-#endif
/* SPDX-License-Identifier: LGPL-2.1+ */
-
-#ifndef __fsprgh__
-#define __fsprgh__
+#pragma once
/*
* fsprg v0.1 - (seekable) forward-secure pseudorandom generator
#ifdef __cplusplus
}
#endif
-
-#endif
* Version: @(#)initreq.h 1.28 31-Mar-2004 MvS
*/
-#ifndef _INITREQ_H
-#define _INITREQ_H
+#pragma once
#include <sys/param.h>
char data[368];
} i;
};
-
-#endif