Re: [PATCH gnumach] Include stddef.h in sys/types.h to get size_t and NULL.

2024-07-10 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le mer. 10 juil. 2024 17:05:02 +0100, a ecrit: > Remove unnecessary definitions from sys/types.h. > --- > include/sys/types.h | 23 +-- > 1 file changed, 1 insertion(+), 22 deletions(-) > > diff --git a/include/sys/types.h b/include/sys/types.h >

Re: [PATCH gnumach] Ensure we always pass -ffreestanding -nostdlib even if CFLAGS are overridden.

2024-07-10 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le mer. 10 juil. 2024 17:04:40 +0100, a ecrit: > --- > Makefile.am | 5 + > configure.ac | 6 +- > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/Makefile.am b/Makefile.am > index 357e847..837d602 100644 > --- a/Makefile.am > +++ b/Makefi

Re: [PATCH hurd] netfs and diskfs: make showtrans work correctly when translators are set on top of sylink/device/fifo/socket files.

2024-07-10 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le mer. 10 juil. 2024 17:05:34 +0100, a ecrit: > While these are short-circuited translators and simply change st_mode, > actual translators can be set on top. We want `showtrans` to > show the actual passive translator, not the short-circuited one. > --- > libdiskfs

Re: [PATCH glibc] Add pthread_getname_np and pthread_setname_np for Hurd

2024-07-10 Thread Samuel Thibault
Sergey Bugaev, le mer. 10 juil. 2024 21:07:21 +0300, a ecrit: > Do you expect the process itself to query its threads' names locally, > or do you expect another process (GDB) to issue thread_get_name > remotely? We'll want e.g. gdb to use thread_get_name to get it indeed. > On Wed, Jul 10, 2024 a

Re: [PATCH glibc] Add pthread_getname_np and pthread_setname_np for Hurd

2024-07-10 Thread Samuel Thibault
Sergey Bugaev, le mer. 10 juil. 2024 21:07:21 +0300, a ecrit: > in general, what's this useful for? Debugging, maybe? Yes, but also because we see more and more software assuming that these functions are available... (just because they are on Linux) Samuel

Re: [PATCH glibc] Add pthread_getname_np and pthread_setname_np for Hurd

2024-07-10 Thread Sergey Bugaev
Hi Flavio, in general, what's this useful for? Debugging, maybe? Do you expect the process itself to query its threads' names locally, or do you expect another process (GDB) to issue thread_get_name remotely? On Wed, Jul 10, 2024 at 7:04 PM Flavio Cruz wrote: > diff --git a/htl/pt-internal.h b/

[PATCH hurd] netfs and diskfs: make showtrans work correctly when translators are set on top of sylink/device/fifo/socket files.

2024-07-10 Thread Flavio Cruz
While these are short-circuited translators and simply change st_mode, actual translators can be set on top. We want `showtrans` to show the actual passive translator, not the short-circuited one. --- libdiskfs/file-get-trans.c | 37 -- libnetfs/file-get-transla

[PATCH gnumach] Include stddef.h in sys/types.h to get size_t and NULL.

2024-07-10 Thread Flavio Cruz
Remove unnecessary definitions from sys/types.h. --- include/sys/types.h | 23 +-- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/include/sys/types.h b/include/sys/types.h index 8d5af37..82b2e4d 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -28,16

[PATCH gnumach] Ensure we always pass -ffreestanding -nostdlib even if CFLAGS are overridden.

2024-07-10 Thread Flavio Cruz
--- Makefile.am | 5 + configure.ac | 6 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 357e847..837d602 100644 --- a/Makefile.am +++ b/Makefile.am @@ -72,6 +72,11 @@ AM_CFLAGS += \ AM_CFLAGS += \ -fno-strict-aliasing +# We use

[PATCH glibc] Add pthread_getname_np and pthread_setname_np for Hurd

2024-07-10 Thread Flavio Cruz
Some notable differences with Linux: - We are not inheriting the program name. - The name can be up to 64 chars (versus Linux's 16). Also added a mach_RPC_CHECK to check for the existing of gnumach RPCs. --- config.h.in | 3 + htl/Makefile