[util] Replace kutil with util
Now that kutil has no kernel-specific code in it anymore, it can actually be linked to by anything, so I'm renaming it 'util'. Also, I've tried to unify the way that the system libraries from src/libraries are #included using <> instead of "". Other small change: util::bip_buffer got a spinlock to guard against state corruption.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "j6/errors.h"
|
||||
#include "j6/types.h"
|
||||
#include <j6/errors.h>
|
||||
#include <j6/types.h>
|
||||
|
||||
#include "objects/channel.h"
|
||||
#include "syscalls/helpers.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "j6/errors.h"
|
||||
#include "j6/types.h"
|
||||
#include <j6/errors.h>
|
||||
#include <j6/types.h>
|
||||
|
||||
#include "log.h"
|
||||
#include "objects/endpoint.h"
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
/// \file syscalls/helpers.h
|
||||
/// Utility functions for use in syscall handler implementations
|
||||
|
||||
#include "j6/types.h"
|
||||
#include <j6/types.h>
|
||||
|
||||
#include "objects/kobject.h"
|
||||
#include "objects/process.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "j6/errors.h"
|
||||
#include "j6/signals.h"
|
||||
#include "j6/types.h"
|
||||
#include <j6/errors.h>
|
||||
#include <j6/signals.h>
|
||||
#include <j6/types.h>
|
||||
#include <util/vector.h>
|
||||
|
||||
#include "assert.h"
|
||||
#include "log.h"
|
||||
@@ -50,7 +51,7 @@ kobject_wait(j6_handle_t handle, j6_signal_t mask, j6_signal_t *sigs)
|
||||
j6_status_t
|
||||
kobject_wait_many(j6_handle_t * handles, size_t handles_count, uint64_t mask, j6_handle_t * handle, uint64_t * signals)
|
||||
{
|
||||
kutil::vector<kobject*> objects {uint32_t(handles_count)};
|
||||
util::vector<kobject*> objects {uint32_t(handles_count)};
|
||||
|
||||
for (unsigned i = 0; i < handles_count; ++i) {
|
||||
j6_handle_t h = handles[i];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "j6/errors.h"
|
||||
#include "j6/types.h"
|
||||
#include <j6/errors.h>
|
||||
#include <j6/types.h>
|
||||
|
||||
#include "log.h"
|
||||
#include "objects/process.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "j6/errors.h"
|
||||
#include "j6/types.h"
|
||||
#include <j6/errors.h>
|
||||
#include <j6/types.h>
|
||||
|
||||
#include "cpu.h"
|
||||
#include "device_manager.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "j6/errors.h"
|
||||
#include "j6/types.h"
|
||||
#include <j6/errors.h>
|
||||
#include <j6/types.h>
|
||||
|
||||
#include "log.h"
|
||||
#include "objects/process.h"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "j6/errors.h"
|
||||
#include "j6/signals.h"
|
||||
#include "j6/types.h"
|
||||
#include <j6/errors.h>
|
||||
#include <j6/signals.h>
|
||||
#include <j6/types.h>
|
||||
|
||||
#include "log.h"
|
||||
#include "objects/process.h"
|
||||
|
||||
Reference in New Issue
Block a user