[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:
Justin C. Miller
2022-01-03 00:03:29 -08:00
parent 5f88f5ed02
commit cd9b85b555
68 changed files with 231 additions and 203 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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];

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"