From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1792) id 421E23858414; Wed, 3 Jan 2024 21:00:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 421E23858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704315618; bh=vpA3xLpplS6csyTVeIjWqBBeAu3v6+jAB25IQuSotnQ=; h=From:To:Subject:Date:From; b=Vu3nLqWuNasyaAzTfX0M16j6M3l7ZGeAD30CdwHyhDpkcZ2Z2GSM6E32LBrUxdweJ tlXI0bhq71Hzu5i1kmPB4gwAn0FL5kKS3X2HswqvPeWEwZJrMaA1h+JvwCgFara0IO PsQr2t58zGBZN5XfXh7tYhu3sjqnsns/ckmI3k4E= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Samuel Thibault To: glibc-cvs@sourceware.org Subject: [glibc] mach: Drop SNARF_ARGS macro X-Act-Checkin: glibc X-Git-Author: Sergey Bugaev X-Git-Refname: refs/heads/master X-Git-Oldrev: 114de961e093a815b1fd6f53a92ec120fb84c092 X-Git-Newrev: 0d4a2f3576ebd92ca0001645a533bf70289f264e Message-Id: <20240103210018.421E23858414@sourceware.org> Date: Wed, 3 Jan 2024 21:00:18 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0d4a2f3576ebd92ca0001645a533bf70289f264e commit 0d4a2f3576ebd92ca0001645a533bf70289f264e Author: Sergey Bugaev Date: Wed Jan 3 20:14:39 2024 +0300 mach: Drop SNARF_ARGS macro We're obtaining arguments from the stack differently, see init-first.c. Signed-off-by: Sergey Bugaev Diff: --- sysdeps/mach/sysdep.h | 7 ------- sysdeps/mach/x86/sysdep.h | 14 -------------- 2 files changed, 21 deletions(-) diff --git a/sysdeps/mach/sysdep.h b/sysdeps/mach/sysdep.h index 8eeac45bad..3e0553d80f 100644 --- a/sysdeps/mach/sysdep.h +++ b/sysdeps/mach/sysdep.h @@ -56,13 +56,6 @@ /* This is not used on all machines. */ #endif -/* Set variables ARGC, ARGV, and ENVP for the arguments - left on the stack by the microkernel. */ -#ifndef SNARF_ARGS -#define SNARF_ARGS(argc, argv, envp) -#error SNARF_ARGS not defined by sysdeps/mach/MACHINE/sysdep.h -#endif - /* LOSE can be defined as the `halt' instruction or something similar which will cause the process to die in a characteristic way suggesting a bug. */ diff --git a/sysdeps/mach/x86/sysdep.h b/sysdeps/mach/x86/sysdep.h index ed9f7f462a..63be5638e8 100644 --- a/sysdeps/mach/x86/sysdep.h +++ b/sysdeps/mach/x86/sysdep.h @@ -25,20 +25,6 @@ #define LOSE asm volatile ("hlt") -#define SNARF_ARGS(entry_sp, argc, argv, envp) \ - do \ - { \ - char **p; \ - argc = (int) *entry_sp; \ - argv = (char **) (entry_sp + 1); \ - p = argv; \ - while (*p++ != NULL) \ - ; \ - if (p >= (char **) argv[0]) \ - --p; \ - envp = p; \ - } while (0) - #define STACK_GROWTH_DOWN /* Get the machine-independent Mach definitions. */