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
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.
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
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
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
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
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
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 +
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