Received: from eggs.gnu.org ([140.186.70.92]:54601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtJZp-00029H-IS for qemu-devel@nongnu.org; Fri, 03 Feb 2012 08:53:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtJZl-0006Pw-SE for qemu-devel@nongnu.org; Fri, 03 Feb 2012 08:53:21 -0500 Received: from mnementh.archaic.org.uk ([81.2.115.146]:56497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtJZl-0006Ow-Lt for qemu-devel@nongnu.org; Fri, 03 Feb 2012 08:53:17 -0500 From: Peter Maydell Date: Fri, 3 Feb 2012 13:53:04 +0000 Message-Id: <1328277186-21665-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/2] linux-user: Support prctl PR_GET/SET_NAME List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio , patches@linaro.org These patches add support for the prctl options PR_GET_NAME and PR_SET_NAME. In particular, perl 5.14 will use PR_SET_NAME if you change the value of $0, which means that adduser will fail if run under qemu with a sufficiently modern perl. Patch one is just indentation cleanup, the meat is patch 2. The only other prctl options which take pointer arguments are all architecture specific, so there didn't seem much point in adding them (they all work like PR_GET_PDEATHSIG in that they pass an int* to be filled in); we'd have to actually emulate them if we cared about them. Peter Maydell (2): linux-user/syscall.c: Fix indentation in prctl handling linux-user: Add support for prctl PR_GET_NAME and PR_SET_NAME linux-user/syscall.c | 53 ++++++++++++++++++++++++++++++++++++------------- 1 files changed, 39 insertions(+), 14 deletions(-)