Re: [PATCH] Fix variable-sized c strings

2014-02-22 Thread Samuel Thibault
Justus Winter, le Fri 21 Feb 2014 23:12:03 +0100, a écrit : > Previously, the terminating zero of variable-sized c strings was only > included when copying the message if the length of the string was not > a multiple of four. mig_strncpy returns the length of the string > excluding the terminating

Re: [PATCH] kern: fix mig_strncpy

2014-02-22 Thread Samuel Thibault
Justus Winter, le Sat 22 Feb 2014 16:17:13 +0100, a écrit : > Quoting Samuel Thibault (2014-02-22 15:37:29) > > Justus Winter, le Sat 22 Feb 2014 11:25:14 +0100, a écrit : > > > * kern/ipc_mig.c (mig_strncpy): Do not zero-terminate the destination > > > string. Return length of destination string.

Re: [PATCH] kern: fix mig_strncpy

2014-02-22 Thread Justus Winter
Quoting Samuel Thibault (2014-02-22 15:37:29) > Justus Winter, le Sat 22 Feb 2014 11:25:14 +0100, a écrit : > > * kern/ipc_mig.c (mig_strncpy): Do not zero-terminate the destination > > string. Return length of destination string. > > Well, that calls for some rationale :) > > I guess this is re

Re: [PATCH 2/2] Fix build

2014-02-22 Thread Justus Winter
Quoting Samuel Thibault (2014-02-22 15:20:28) > This is just for people who don't have the newer mach headers, right? > I'd rather not copy them, but simply depend on the newer gnumach. Yes. Justus

Re: [PATCH] kern: fix mig_strncpy

2014-02-22 Thread Samuel Thibault
Justus Winter, le Sat 22 Feb 2014 11:25:14 +0100, a écrit : > * kern/ipc_mig.c (mig_strncpy): Do not zero-terminate the destination > string. Return length of destination string. Well, that calls for some rationale :) I guess this is related with the other, MIG change? I.e. that this modified v

Re: [PATCH 5/5] ipc: provide the protected payload in ipc_kmsg_copyout_header

2014-02-22 Thread Samuel Thibault
Justus Winter, le Fri 21 Feb 2014 17:49:28 +0100, a écrit : > * ipc/ipc_kmsg.c (ipc_kmsg_copyout_header): If a protected payload is > set for the destination port, provide it in msgh_protected_payload. > * doc/mach.texi (Message Receive): Document message semantics with > protected payloads. Mmm

Re: [PATCH 2/2] Fix build

2014-02-22 Thread Samuel Thibault
This is just for people who don't have the newer mach headers, right? I'd rather not copy them, but simply depend on the newer gnumach. Samuel

Re: [PATCH 1/2] exec: provide a meaningful name for new tasks

2014-02-22 Thread Samuel Thibault
Justus Winter, le Fri 21 Feb 2014 20:52:04 +0100, a écrit : > The name will be used in error messages printed by the kernel. This > makes attributing the errors to processes possible. > > * exec/exec.c (do_exec): Set the name of the new task. Ack. > --- > exec/exec.c | 27 +

[PATCH] kern: fix mig_strncpy

2014-02-22 Thread Justus Winter
Previously, the function mig_strncpy would always zero-terminate the destination string. Make mig_strncpy behave like mig_strncpy and strncpy in the glibc. Also fix the implementation of mig_strncpy to return the length of the written string to align the implementation with the declaration in inc