Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / src / nonsfi / loader / elf_loader.h
1 /*
2  * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 #ifndef NATIVE_CLIENT_SRC_NONSFI_LOADER_ELF_LOADER_H_
8 #define NATIVE_CLIENT_SRC_NONSFI_LOADER_ELF_LOADER_H_ 1
9
10 #include "native_client/src/include/nacl_base.h"
11
12 EXTERN_C_BEGIN
13
14 /*
15  * Loads the ELF binary from the given file descriptor.
16  * This takes the ownership of the given fd, so a caller does not need to
17  * close it.
18  * On error, this function crashes with NaClLog(LOG_FATAL).
19  */
20 uintptr_t NaClLoadElfFile(int fd);
21
22 EXTERN_C_END
23
24 #endif