summaryrefslogtreecommitdiff
path: root/boot/efi/fexecve.c
blob: 57cb03592e933f247053b2fa88d826c88b53a524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <posix/unistd.h>
#include <api/elf/elf64.h>

int fexecve(int fd, char *const argv[] char *const envp[])
{
	(void)argv;
	(void)envp;

	if (!elf64_validate_fd(fd, ET_DYN, EM_X86_64))
	{
		return -1;
	}

	size_t memsz; 

	if ((memsz = elf64_size_fd(fd)) == 0) 
	{
		return -1;
	}

	
}