[PATCH] Use mach_port_name in db_lookup_port

2022-12-06 Thread Flavio Cruz
--- ddb/db_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddb/db_print.c b/ddb/db_print.c index 832faf57..8a76beea 100644 --- a/ddb/db_print.c +++ b/ddb/db_print.c @@ -493,7 +493,7 @@ db_lookup_port( return(0); if (id < 0) return(0); -

[PATCH] Use long_natural_t in kern/task.h and kern/slab.h

2022-12-06 Thread Flavio Cruz
RPC interfaces already use long_natural_t so internally we can also use this type. --- kern/slab.h | 10 +- kern/task.h | 14 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/kern/slab.h b/kern/slab.h index 9d8a1156..1e916872 100644 --- a/kern/slab.h +++ b/ke

[PATCH] Update kern/ directory to use mach_port_name_t.

2022-12-06 Thread Flavio Cruz
Make it clear where exactly we use port names vs port addresses. --- kern/boot_script.c | 4 ++-- kern/boot_script.h | 4 ++-- kern/bootstrap.c| 12 ++-- kern/ipc_host.c | 2 +- kern/ipc_tt.c | 4 ++-- kern/syscall_subr.c | 4 ++-- kern/syscall_subr.h | 2 +- kern/sys

Re: [PATCH 2/2] add rpc_versions for vm types

2022-12-06 Thread Samuel Thibault
Flavio Cruz, le mar. 06 déc. 2022 00:33:08 -0500, a ecrit: > On Tue, Dec 06, 2022 at 02:10:52AM +0100, Samuel Thibault wrote: > > What do you think of that? > > I think we could just define vm_size_t as typedef of __mach_uintptr_t then > it will be unsigned int on 32 bits and unsigned long on 64 b

Re: [PATCH] Define vm_size_t and vm_offset_t as __mach_uintptr_t.

2022-12-06 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le mar. 06 déc. 2022 00:33:41 -0500, a ecrit: > This allows *printf to use %zd/%zu/%zx to print vm_size_t and > vm_offset_t. Warnings using the incorrect specifiers were fixed. > > Note that MACH_PORT_NULL became just 0 because GCC thinks that we were > comparing a p

Re: [PATCH] Make task_info.h structs more portable

2022-12-06 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le mar. 06 déc. 2022 00:35:01 -0500, a ecrit: > Changed vm_size_t to rpc_size_t so that both userland and kernel agree > on the same size. Also changed the denominator for the maximum struct > sizes to be integer_t to match the other declarations. > > Introduced long

[very WIP PATCH 0/1] Attempt at writing a GHurdFileMonitor for glib

2022-12-06 Thread Sergey Bugaev
Hello! As mentioned in [0], glib is in need of a native Hurd backend for GLocalFileMonitor. This is what this patch aims to implement. It is *nowhere* near complete yet, but there should hopefully be already enough things in place to start gathering feedback, both from the Hurd and glib sides. [0

[very WIP PATCH 1/1] Very WIP: Add GHurdFileMonitor

2022-12-06 Thread Sergey Bugaev
--- gio/giomodule.c | 4 + gio/hurd/fs_notify.defs | 9 ++ gio/hurd/fs_notify.h| 10 ++ gio/hurd/ghurdfilemonitor.c | 269 gio/hurd/ghurdfilemonitor.h | 43 ++ gio/hurd/meson.build| 20 +++ gio/meson.build