[PATCH 1/5] ipc: add protected payload

2014-02-21 Thread Justus Winter
Add a field ip_protected_payload and a flag ip_has_protected_payload to struct ipc_port. Clear the protected payload when a receive port is moved from one ipc space to another. This is done to retain the old behavior of mach_msg, so that a port name is sent in the msgh_local_port field. If the

[PATCH 3/5] include: add msgh_protected_payload to mach_msg_header_t

2014-02-21 Thread Justus Winter
* include/mach/message.h (mach_msg_header_t): Add msgh_protected_payload as a union with msgh_local_port. * doc/mach.texi (Message Format): Document msgh_protected_payload. --- doc/mach.texi | 9 + include/mach/message.h | 5 - 2 files changed, 13 insertions(+), 1

[PATCH 2/5] ipc: implement mach_port_{set,clear}_protected_payload

2014-02-21 Thread Justus Winter
* include/mach/mach_port.defs: Add mach_port_{set,clear}_protected_payload. * ipc/mach_port.c: Implement mach_port_{set,clear}_protected_payload. * doc/mach.texi (Receive Rights): Document mach_port_{set,clear}_protected_payload. --- doc/mach.texi | 35 ++

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

2014-02-21 Thread Justus Winter
* 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. --- doc/mach.texi | 19 +++ ipc/ipc_kmsg.c | 58

[PATCH 4/5] include: define MACH_MSG_TYPE_PROTECTED_PAYLOAD

2014-02-21 Thread Justus Winter
* include/mach/message.h: Define MACH_MSG_TYPE_PROTECTED_PAYLOAD. (MACH_MSG_TYPE_LAST): Adjust accordingly. * doc/mach.texi (Message Format): Document MACH_MSG_TYPE_PROTECTED_PAYLOAD. --- doc/mach.texi | 6 ++ include/mach/message.h | 4 +++- 2 files changed, 9 insertions(+), 1

[PATCH] Re: [PATCH 0/4] [RFC] Patches for vlc

2014-02-21 Thread Svante Signell
On Tue, 2014-02-18 at 21:25 -0800, Samuel Thibault wrote: Gabriele Giacone, le Tue 18 Feb 2014 23:49:14 +0100, a écrit : [1] http://anonscm.debian.org/viewvc/pkg-glibc/glibc-package/branches/eglibc-2.17/debian/patches/hurd-i386/local-clock_gettime_MONOTONIC.diff?revision=5436view=markup

Re: [PATCH 1/5] ipc: add protected payload

2014-02-21 Thread Richard Braun
On Fri, Feb 21, 2014 at 12:48:49PM +0100, Justus Winter wrote: Add a field ip_protected_payload and a flag ip_has_protected_payload to struct ipc_port. diff --git a/ipc/ipc_port.h b/ipc/ipc_port.h index 27d2e49..4c7c742 100644 --- a/ipc/ipc_port.h +++ b/ipc/ipc_port.h @@ -71,6 +71,10 @@

[PATCH 2/5] ipc: implement mach_port_{set,clear}_protected_payload

2014-02-21 Thread Justus Winter
* include/mach/mach_port.defs: Add mach_port_{set,clear}_protected_payload. * ipc/mach_port.c: Implement mach_port_{set,clear}_protected_payload. * doc/mach.texi (Receive Rights): Document mach_port_{set,clear}_protected_payload. --- doc/mach.texi | 35 ++

[PATCH 3/5] include: add msgh_protected_payload to mach_msg_header_t

2014-02-21 Thread Justus Winter
* include/mach/message.h (mach_msg_header_t): Add msgh_protected_payload as a union with msgh_local_port. * doc/mach.texi (Message Format): Document msgh_protected_payload. --- doc/mach.texi | 9 + include/mach/message.h | 5 - 2 files changed, 13 insertions(+), 1

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

2014-02-21 Thread Justus Winter
* 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. --- doc/mach.texi | 19 +++ ipc/ipc_kmsg.c | 58

[PATCH 4/5] include: define MACH_MSG_TYPE_PROTECTED_PAYLOAD

2014-02-21 Thread Justus Winter
* include/mach/message.h: Define MACH_MSG_TYPE_PROTECTED_PAYLOAD. (MACH_MSG_TYPE_LAST): Adjust accordingly. * doc/mach.texi (Message Format): Document MACH_MSG_TYPE_PROTECTED_PAYLOAD. --- doc/mach.texi | 6 ++ include/mach/message.h | 4 +++- 2 files changed, 9 insertions(+), 1

[PATCH 1/5] ipc: add protected payload

2014-02-21 Thread Justus Winter
Add a field ip_protected_payload and a flag ip_has_protected_payload to struct ipc_port. Clear the protected payload when a receive port is moved from one ipc space to another. This is done to retain the old behavior of mach_msg, so that a port name is sent in the msgh_local_port field. If the

Re: [PATCH 1/5] ipc: add protected payload

2014-02-21 Thread Richard Braun
On Fri, Feb 21, 2014 at 05:49:24PM +0100, Justus Winter wrote: -#define IO_BITS_OTYPE0x7fff /* determines a cache */ +#define IO_BITS_OTYPE0x3fff /* determines a cache */ +/* The following masks are used to store attributes of ipc ports. */

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

2014-02-21 Thread Justus Winter
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. --- exec/exec.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git

[PATCH 2/2] Fix build

2014-02-21 Thread Justus Winter
--- exec/Makefile | 2 +- exec/gnumach.defs | 74 +++ exec/mach_debug/hash_info.h | 41 ++ exec/mach_debug/ipc_info.h| 100 +++ exec/mach_debug/mach_debug.defs | 233

[PATCH] Fix variable-sized c strings

2014-02-21 Thread Justus Winter
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 zero. Fix this by properly accounting for the byte for the

[PATCH] kern: fix mig_strncpy

2014-02-21 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

Re: Improving performance of Hurd.

2014-02-21 Thread Jetro Costa
Em Sexta-feira, 21 de Fevereiro de 2014 18:31, Jetro Costa gordao...@yahoo.com escreveu: please, show me how to participate of development of HURD, and oders FSF projects, and projects licensed with GNU lincese. Em Segunda-feira, 25 de Novembro de 2013 10:03, Jetro Costa

Re: Improving performance of Hurd.

2014-02-21 Thread Jetro Costa
please, show me how to participate of development of HURD, and oders FSF projects, and projects licensed with GNU lincese. Em Segunda-feira, 25 de Novembro de 2013 10:03, Jetro Costa gordao...@yahoo.com escreveu: Em Segunda-feira, 25 de Novembro de 2013 9:43, Jetro Costa

Re: Improving performance of Hurd.

2014-02-21 Thread Jetro Costa
Em Sexta-feira, 21 de Fevereiro de 2014 18:44, Jetro Costa gordao...@yahoo.com escreveu: Em Sexta-feira, 21 de Fevereiro de 2014 18:31, Jetro Costa gordao...@yahoo.com escreveu: please, show me how to participate of development of HURD, and oders FSF projects, and projects licensed

[task #6990] Avoid copying source files from other projects

2014-02-21 Thread Justus Winter
Update of task #6990 (project hurd): Status:None = Done Open/Closed:Open = Closed Wiki-like text discussion box: = Fixed in b39be886ee3562ff924b631a365b1e46d424f636

[PATCH] kern: fix mig_strncpy

2014-02-21 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