[PATCH Web] Translator: Add the introduction to the rtc translator

2024-12-31 Thread Zhaoming Luo
* hurd/translator.mdwn: Add an entry for the rtc translator * hurd/translator/rtc.mdwn: Add the introduction to the rtc translator Signed-off-by: Zhaoming Luo --- hurd/translator.mdwn | 1 + hurd/translator/rtc.mdwn | 17 + 2 files changed, 18 insertions(+) create mode 10

Re: [PATCH Mach] kern: Add a mach host operation which returns elapsed time since bootup

2024-12-31 Thread Zhaoming Luo
On 12/31/24 7:33 AM, Samuel Thibault wrote: Zhaoming Luo, le mar. 31 déc. 2024 07:24:08 +0800, a ecrit: On 12/29/24 5:21 PM, Samuel Thibault wrote: Zhaoming Luo, le dim. 29 déc. 2024 12:44:27 +0800, a ecrit: On 12/29/24 9:28 AM, Samuel Thibault wrote: Hello, Zhaoming Luo, le mar. 24 déc. 202

Re: [hurd-amd64] ibus test failures

2024-12-31 Thread Diego Nieto Cid
On Tue, Dec 31, 2024 at 08:32:47PM +, Diego Nieto Cid wrote: > > Adding the following line to the program: > > printf("cmsghdr: %lu\n", sizeof (struct cmsghdr)); > > shows 12 on Hurd and 16 on Linux. I think I'm closer :) The only difference in the structure definition is the cmsg_len f

Re: [hurd-amd64] ibus test failures

2024-12-31 Thread Diego Nieto Cid
On Tue, Dec 31, 2024 at 08:25:00PM +, Diego Nieto Cid wrote: > On Tue, Dec 31, 2024 at 04:01:08PM +, Diego Nieto Cid wrote: > > > > Ok, I'll have a look in both OSes behaviour. > > There's something wrong with our CMSG_DATA macro. It produces the wrong > output (or at least different fro

Re: [hurd-amd64] ibus test failures

2024-12-31 Thread Diego Nieto Cid
On Tue, Dec 31, 2024 at 04:01:08PM +, Diego Nieto Cid wrote: > > Ok, I'll have a look in both OSes behaviour. There's something wrong with our CMSG_DATA macro. It produces the wrong output (or at least different from Linux). The attached program prints: cmsg: 0x101040a90; data: 0x10104

Re: [hurd-amd64] ibus test failures

2024-12-31 Thread Diego Nieto Cid
Hi, On Tue, Dec 31, 2024 at 02:52:53PM +0100, Samuel Thibault wrote: > > You should probably check precisely the difference between Linux and > Hurd on these alignment questions at the various stages. > I placed a `g_message` call in `g_unix_credentials_message_deserialize` and on Linux it does

Re: [hurd-amd64] ibus test failures

2024-12-31 Thread Diego Nieto Cid
On Tue, Dec 31, 2024 at 02:52:53PM +0100, Samuel Thibault wrote: > Samuel Thibault, le mar. 31 déc. 2024 14:36:02 +0100, a ecrit: > > > I'm not sure how to fix it. Should the expectations of GLib be updated > > > to be aligned? Like below: > > > > > > - if (size != G_CREDENTIALS_NATIVE_SIZE) > > >

Re: [hurd-amd64] ibus test failures

2024-12-31 Thread Samuel Thibault
Samuel Thibault, le mar. 31 déc. 2024 14:36:02 +0100, a ecrit: > > I'm not sure how to fix it. Should the expectations of GLib be updated > > to be aligned? Like below: > > > > - if (size != G_CREDENTIALS_NATIVE_SIZE) > > + if (size != CMSG_ALIGN(G_CREDENTIALS_NATIVE_SIZE)) > > > > Or should the

Re: [hurd-amd64] ibus test failures

2024-12-31 Thread Samuel Thibault
Diego Nieto Cid, le mar. 31 déc. 2024 02:47:35 +, a ecrit: > On Tue, Dec 31, 2024 at 02:02:53AM +, Diego Nieto Cid wrote: > > > > Here are the results for `hurd-amd64`: > > > > $ cc -I/usr/include/glib-2.0 -I/usr/lib/x86_64-gnu/glib-2.0/include \ > > -pthread cred_size.c -lgi

Re: [PATCH gnumach v2] Implement per task virtual memory limit

2024-12-31 Thread Samuel Thibault
Sergey Bugaev, le mar. 31 déc. 2024 07:41:14 +0300, a ecrit: > On Tue, Dec 31, 2024 at 1:30 AM Diego Nieto Cid wrote: > > On Mon, Dec 30, 2024 at 07:08:55PM +0100, Samuel Thibault wrote: > > > You also need to take into account the case where > > > current->max_protection was NONE and new_prot is