Added the disk device API to the libbe_haiku.so, so that libtracker.so builds
again for target libbe_test. Added respective syscall stubs and other functions to libhaikucompat.a. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20447 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2,11 +2,16 @@ SubDir HAIKU_TOP src build libhaikucompat ;
|
||||
|
||||
SetSubDirSupportedPlatforms libbe_test r5 dano bone ;
|
||||
|
||||
UseHeaders [ FDirName $(HAIKU_TOP) headers build private kernel ] : true ;
|
||||
|
||||
StaticLibrary libhaikucompat.a :
|
||||
strcasestr.c
|
||||
strlcat.c
|
||||
strlcpy.c
|
||||
strnlen.c
|
||||
|
||||
misc.cpp
|
||||
syscalls.cpp
|
||||
;
|
||||
|
||||
SEARCH on [ FGristFiles strcasestr.c strlcat.c strlcpy.c strnlen.c ]
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <fs_volume.h>
|
||||
|
||||
extern "C" void
|
||||
debug_printf(const char *format, ...)
|
||||
{
|
||||
va_list list;
|
||||
|
||||
va_start(list, format);
|
||||
vprintf(format, list);
|
||||
va_end(list);
|
||||
}
|
||||
|
||||
|
||||
dev_t
|
||||
fs_mount_volume(const char *where, const char *device, const char *filesystem,
|
||||
uint32 flags, const char *parameters)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
fs_unmount_volume(const char *path, uint32 flags)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
@@ -0,0 +1,436 @@
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <syscalls.h>
|
||||
|
||||
|
||||
// #prama mark - iterating, retrieving device/partition data
|
||||
partition_id
|
||||
_kern_get_next_disk_device_id(int32 *cookie, size_t *neededSize)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
partition_id
|
||||
_kern_find_disk_device(const char *filename, size_t *neededSize)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
partition_id
|
||||
_kern_find_partition(const char *filename, size_t *neededSize)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_get_disk_device_data(partition_id deviceID, bool deviceOnly,
|
||||
bool shadow, struct user_disk_device_data *buffer, size_t bufferSize,
|
||||
size_t *neededSize)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
partition_id
|
||||
_kern_register_file_device(const char *filename)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_unregister_file_device(partition_id deviceID, const char *filename)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
// #pragma mark - disk systems
|
||||
|
||||
status_t
|
||||
_kern_get_disk_system_info(disk_system_id id,
|
||||
struct user_disk_system_info *info)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_get_next_disk_system_info(int32 *cookie,
|
||||
struct user_disk_system_info *info)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_find_disk_system(const char *name,
|
||||
struct user_disk_system_info *info)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_defragmenting_partition(partition_id partitionID,
|
||||
int32 changeCounter, bool *whileMounted)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_repairing_partition(partition_id partitionID,
|
||||
int32 changeCounter, bool checkOnly, bool *whileMounted)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_resizing_partition(partition_id partitionID,
|
||||
int32 changeCounter, bool *canResizeContents, bool *whileMounted)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_moving_partition(partition_id partitionID,
|
||||
int32 changeCounter, partition_id *unmovable,
|
||||
partition_id *needUnmounting, size_t bufferSize)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_setting_partition_name(partition_id partitionID,
|
||||
int32 changeCounter)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_setting_partition_content_name(partition_id partitionID,
|
||||
int32 changeCounter, bool *whileMounted)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_setting_partition_type(partition_id partitionID,
|
||||
int32 changeCounter)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_setting_partition_parameters(partition_id partitionID,
|
||||
int32 changeCounter)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_setting_partition_content_parameters(
|
||||
partition_id partitionID, int32 changeCounter, bool *whileMounted)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_initializing_partition(partition_id partitionID,
|
||||
int32 changeCounter, const char *diskSystemName)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_creating_child_partition(partition_id partitionID,
|
||||
int32 changeCounter)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_supports_deleting_child_partition(partition_id partitionID,
|
||||
int32 changeCounter)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_is_sub_disk_system_for(disk_system_id diskSystemID,
|
||||
partition_id partitionID, int32 changeCounter)
|
||||
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_validate_resize_partition(partition_id partitionID, int32 changeCounter,
|
||||
off_t *size)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_validate_move_partition(partition_id partitionID, int32 changeCounter,
|
||||
off_t *newOffset)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_validate_set_partition_name(partition_id partitionID, int32 changeCounter,
|
||||
char *name)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_validate_set_partition_content_name(partition_id partitionID,
|
||||
int32 changeCounter, char *name)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_validate_set_partition_type(partition_id partitionID, int32 changeCounter,
|
||||
const char *type)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_validate_initialize_partition(partition_id partitionID,
|
||||
int32 changeCounter, const char *diskSystemName, char *name,
|
||||
const char *parameters, size_t parametersSize)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_validate_create_child_partition(partition_id partitionID,
|
||||
int32 changeCounter, off_t *offset, off_t *size, const char *type,
|
||||
const char *parameters, size_t parametersSize)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_get_partitionable_spaces(partition_id partitionID, int32 changeCounter,
|
||||
struct partitionable_space_data *buffer, int32 count, int32 *actualCount)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_get_next_supported_partition_type(partition_id partitionID,
|
||||
int32 changeCounter, int32 *cookie, char *type)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_get_partition_type_for_content_type(disk_system_id diskSystemID,
|
||||
const char *contentType, char *type)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
// #pragma mark - disk device modification
|
||||
|
||||
status_t
|
||||
_kern_prepare_disk_device_modifications(partition_id deviceID)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_commit_disk_device_modifications(partition_id deviceID,
|
||||
port_id port, int32 token, bool completeProgress)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_cancel_disk_device_modifications(partition_id deviceID)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
_kern_is_disk_device_modified(partition_id deviceID)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_defragment_partition(partition_id partitionID, int32 changeCounter)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_repair_partition(partition_id partitionID, int32 changeCounter,
|
||||
bool checkOnly)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_resize_partition(partition_id partitionID, int32 changeCounter,
|
||||
off_t size)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_move_partition(partition_id partitionID, int32 changeCounter,
|
||||
off_t newOffset)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_set_partition_name(partition_id partitionID, int32 changeCounter,
|
||||
const char *name)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_set_partition_content_name(partition_id partitionID,
|
||||
int32 changeCounter, const char *name)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_set_partition_type(partition_id partitionID, int32 changeCounter,
|
||||
const char *type)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_set_partition_parameters(partition_id partitionID, int32 changeCounter,
|
||||
const char *parameters, size_t parametersSize)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_set_partition_content_parameters(partition_id partitionID,
|
||||
int32 changeCounter, const char *parameters, size_t parametersSize)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_initialize_partition(partition_id partitionID, int32 changeCounter,
|
||||
const char *diskSystemName, const char *name, const char *parameters,
|
||||
size_t parametersSize)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_uninitialize_partition(partition_id partitionID, int32 changeCounter)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_create_child_partition(partition_id partitionID, int32 changeCounter,
|
||||
off_t offset, off_t size, const char *type, const char *parameters,
|
||||
size_t parametersSize, partition_id *childID)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_delete_partition(partition_id partitionID, int32 changeCounter)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
// #pragma mark - jobs
|
||||
|
||||
status_t
|
||||
_kern_get_next_disk_device_job_info(int32 *cookie,
|
||||
struct user_disk_device_job_info *info)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_get_disk_device_job_info(disk_job_id id,
|
||||
struct user_disk_device_job_info *info)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_get_disk_device_job_progress_info(disk_job_id id,
|
||||
struct disk_device_job_progress_info *info)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_pause_disk_device_job(disk_job_id id)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
_kern_cancel_disk_device_job(disk_job_id id, bool reverse)
|
||||
{
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@ SharedLibrary libbe.so :
|
||||
<libbe>app_kit.o
|
||||
<libbe>interface_kit.o
|
||||
<libbe>storage_kit.o
|
||||
<libbe>storage_diskdevice_kit.o
|
||||
<libbe>support_kit.o
|
||||
|
||||
libqoca.so
|
||||
|
||||
@@ -67,13 +67,8 @@ MergeObject <libbe>storage_kit.o :
|
||||
RPattern.cpp
|
||||
RPatternList.cpp
|
||||
Rule.cpp
|
||||
;
|
||||
|
||||
# We need to keep the DiskDevice API out of libbe_haiku as long as the
|
||||
# Interface Kit is not fully functional (at least the part we are using).
|
||||
# So, we build it separately.
|
||||
|
||||
MergeObject <libbe>storage_diskdevice_kit.o :
|
||||
# disk device API
|
||||
DiskDevice.cpp
|
||||
DiskDeviceJob.cpp
|
||||
DiskDeviceList.cpp
|
||||
@@ -86,6 +81,7 @@ MergeObject <libbe>storage_diskdevice_kit.o :
|
||||
PartitioningInfo.cpp
|
||||
;
|
||||
|
||||
|
||||
# The adapter library we need (Storage Kit).
|
||||
#
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ All rights reserved.
|
||||
#include <VolumeRoster.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
static const char *kAutoMounterSettings = "automounter_settings";
|
||||
|
||||
Reference in New Issue
Block a user