headers/kernel: Move B_WAIT_TILL_LOADED to a syscall header.
It is only used as an argument to _kern_load_image directly, not to any of the load_image functions in image.h, so it belongs in a syscall- specific header like other such constants. No functional change intended.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2019, Haiku, Inc. All Rights Reserved.
|
* Copyright 2007-2019, Haiku, Inc. All rights reserved.
|
||||||
* Distributed under the terms of the MIT license.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _IMAGE_H
|
#ifndef _IMAGE_H
|
||||||
#define _IMAGE_H
|
#define _IMAGE_H
|
||||||
@@ -67,17 +67,6 @@ typedef struct {
|
|||||||
/* pointer to a symbol in the callers image */
|
/* pointer to a symbol in the callers image */
|
||||||
|
|
||||||
|
|
||||||
/* flags for _kern_load_image() (private API) */
|
|
||||||
enum {
|
|
||||||
B_WAIT_TILL_LOADED = 0x01,
|
|
||||||
/* Wait till the loader has loaded and relocated (but not yet
|
|
||||||
initialized) the application image and all dependencies. If not
|
|
||||||
supplied, the function returns before the loader started to do
|
|
||||||
anything at all, i.e. it returns success, even if the executable
|
|
||||||
doesn't exist. */
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2019, Haiku, Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
#ifndef _SYSTEM_SYSCALL_LOAD_IMAGE_H
|
||||||
|
#define _SYSTEM_SYSCALL_LOAD_IMAGE_H
|
||||||
|
|
||||||
|
|
||||||
|
enum {
|
||||||
|
B_WAIT_TILL_LOADED = 0x01,
|
||||||
|
/* Wait till the loader has loaded and relocated (but not yet
|
||||||
|
initialized) the application image and all dependencies. If not
|
||||||
|
supplied, the function returns before the loader started to do
|
||||||
|
anything at all, i.e. it returns success, even if the executable
|
||||||
|
doesn't exist. */
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _SYSTEM_SYSCALL_LOAD_IMAGE_H */
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include <libroot_private.h>
|
#include <libroot_private.h>
|
||||||
#include <syscalls.h>
|
#include <syscalls.h>
|
||||||
|
#include <syscall_load_image.h>
|
||||||
|
|
||||||
|
|
||||||
extern const char* __progname;
|
extern const char* __progname;
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include <libroot_private.h>
|
#include <libroot_private.h>
|
||||||
#include <syscalls.h>
|
#include <syscalls.h>
|
||||||
|
#include <syscall_load_image.h>
|
||||||
|
|
||||||
|
|
||||||
BTeamDebugger::BTeamDebugger()
|
BTeamDebugger::BTeamDebugger()
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ respective holders. All rights reserved.
|
|||||||
#include <AutoLocker.h>
|
#include <AutoLocker.h>
|
||||||
#include <libroot/libroot_private.h>
|
#include <libroot/libroot_private.h>
|
||||||
#include <system/syscalls.h>
|
#include <system/syscalls.h>
|
||||||
|
#include <system/syscall_load_image.h>
|
||||||
|
|
||||||
#include "Attributes.h"
|
#include "Attributes.h"
|
||||||
#include "Bitmaps.h"
|
#include "Bitmaps.h"
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
#include <posix/xsi_semaphore.h>
|
#include <posix/xsi_semaphore.h>
|
||||||
#include <sem.h>
|
#include <sem.h>
|
||||||
#include <syscall_process_info.h>
|
#include <syscall_process_info.h>
|
||||||
|
#include <syscall_load_image.h>
|
||||||
#include <syscall_restart.h>
|
#include <syscall_restart.h>
|
||||||
#include <syscalls.h>
|
#include <syscalls.h>
|
||||||
#include <tls.h>
|
#include <tls.h>
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include <libroot_private.h>
|
#include <libroot_private.h>
|
||||||
#include <runtime_loader.h>
|
#include <runtime_loader.h>
|
||||||
#include <syscalls.h>
|
#include <syscalls.h>
|
||||||
|
#include <syscall_load_image.h>
|
||||||
#include <user_runtime.h>
|
#include <user_runtime.h>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user