ssize_t off = 0;
format(buf, size, off, "AcpiAdr", "AcpiAdr(");
format_array(buf, size, off, "AcpiAdr", "0x%"PRIx32,
- typeof(dp->acpi_adr.adr[0]), dp->acpi_adr.adr,
+ __typeof__(dp->acpi_adr.adr[0]), dp->acpi_adr.adr,
(efidp_node_size(dp)-4) / sizeof (dp->acpi_adr.adr[0]));
format(buf, size, off, "AcpiAdr", ")");
return off;
rc = statfs(path, &buf);
if (rc == 0) {
char *tmp;
- typeof(buf.f_type) magic = EFIVARFS_MAGIC;
+ __typeof__(buf.f_type) magic = EFIVARFS_MAGIC;
if (!memcmp(&buf.f_type, &magic, sizeof (magic)))
return 1;
else
static int
efivarfs_set_immutable(char *path, int immutable)
{
- typeof(errno) error = 0;
+ __typeof__(errno) error = 0;
int fd;
int rc = 0;
char *path = NULL;
int rc = 0;
int ret = -1;
- typeof(errno) errno_value;
+ __typeof__(errno) errno_value;
rc = make_efivarfs_path(&path, guid, name);
if (rc < 0) {
efivarfs_get_variable(efi_guid_t guid, const char *name, uint8_t **data,
size_t *data_size, uint32_t *attributes)
{
- typeof(errno) errno_value;
+ __typeof__(errno) errno_value;
int ret = -1;
size_t size = 0;
uint32_t ret_attributes = 0;
if (rc < 0)
efi_error("unlink failed");
- typeof(errno) errno_value = errno;
+ __typeof__(errno) errno_value = errno;
free(path);
errno = errno_value;
size_t data_size, uint32_t attributes, mode_t mode)
{
uint8_t buf[sizeof (attributes) + data_size];
- typeof(errno) errno_value;
+ __typeof__(errno) errno_value;
int ret = -1;
if (strlen(name) > 1024) {