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:
Augustin Cavalier
2019-02-01 19:45:56 -05:00
parent 04b9fbfdfa
commit 475172337b
7 changed files with 26 additions and 13 deletions
+2 -13
View File
@@ -1,6 +1,6 @@
/*
* Copyright 2007-2019, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT license.
* Copyright 2007-2019, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _IMAGE_H
#define _IMAGE_H
@@ -67,17 +67,6 @@ typedef struct {
/* 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
extern "C" {
#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 */
+1
View File
@@ -17,6 +17,7 @@
#include <libroot_private.h>
#include <syscalls.h>
#include <syscall_load_image.h>
extern const char* __progname;
+1
View File
@@ -17,6 +17,7 @@
#include <libroot_private.h>
#include <syscalls.h>
#include <syscall_load_image.h>
BTeamDebugger::BTeamDebugger()
+1
View File
@@ -75,6 +75,7 @@ respective holders. All rights reserved.
#include <AutoLocker.h>
#include <libroot/libroot_private.h>
#include <system/syscalls.h>
#include <system/syscall_load_image.h>
#include "Attributes.h"
#include "Bitmaps.h"
+1
View File
@@ -45,6 +45,7 @@
#include <posix/xsi_semaphore.h>
#include <sem.h>
#include <syscall_process_info.h>
#include <syscall_load_image.h>
#include <syscall_restart.h>
#include <syscalls.h>
#include <tls.h>
+1
View File
@@ -19,6 +19,7 @@
#include <libroot_private.h>
#include <runtime_loader.h>
#include <syscalls.h>
#include <syscall_load_image.h>
#include <user_runtime.h>