OpenCore
1.0.4
OpenCore Bootloader
|
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <errno.h>
#include <dirent.h>
#include <stdint.h>
#include <endian.h>
Go to the source code of this file.
Data Structures | |
struct | __attribute__ |
Macros | |
#define | EFIRES_CURRENT_REVISION 2 |
#define | ACTION_UNPACK "unpack" |
#define | ACTION_PACK "pack" |
#define | ACTION_LIST "list" |
Functions | |
aligned (1) | |
__attribute__ ((packed, aligned(1))) | |
int | unpack_efires (const char *fname, const char *destination, unpack_flag flags, char **filelist[]) |
int | pack_efires (const char *fname, const char *fromdir, const char *filelist[]) |
int | write_filelist (const char **filelist, const char *fname) |
const char ** | parse_filelist (const char *fname) |
void | free_filelist (char **filelist) |
void | print_usage (const char *prog) |
int | main (int argc, const char *argv[]) |
Variables | |
unpack_flag | |
EfiResTool – tool to work with APPL efires archives
Copyright (c) 2018, stek29
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file EfiResTool.c.
#define ACTION_LIST "list" |
Definition at line 98 of file EfiResTool.c.
#define ACTION_PACK "pack" |
Definition at line 97 of file EfiResTool.c.
#define ACTION_UNPACK "unpack" |
Definition at line 96 of file EfiResTool.c.
#define EFIRES_CURRENT_REVISION 2 |
__attribute__ | ( | (packed, aligned(1)) | ) |
Definition at line 67 of file EfiResTool.c.
aligned | ( | 1 | ) |
Definition at line 1 of file EfiResTool.c.
void free_filelist | ( | char ** | filelist | ) |
Definition at line 169 of file EfiResTool.c.
int main | ( | int | argc, |
const char * | argv[] ) |
Definition at line 111 of file EfiResTool.c.
int pack_efires | ( | const char * | fname, |
const char * | fromdir, | ||
const char * | filelist[] ) |
Definition at line 360 of file EfiResTool.c.
const char ** parse_filelist | ( | const char * | fname | ) |
Definition at line 177 of file EfiResTool.c.
void print_usage | ( | const char * | prog | ) |
Definition at line 100 of file EfiResTool.c.
int unpack_efires | ( | const char * | fname, |
const char * | destination, | ||
unpack_flag | flags, | ||
char ** | filelist[] ) |
Definition at line 237 of file EfiResTool.c.
int write_filelist | ( | const char ** | filelist, |
const char * | fname ) |
Definition at line 217 of file EfiResTool.c.
unpack_flag |
Definition at line 87 of file EfiResTool.c.