From patchwork Wed Dec 26 23:05:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randall S. Becker" X-Patchwork-Id: 10743319 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 52D0813AD for ; Wed, 26 Dec 2018 23:05:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42B32283E7 for ; Wed, 26 Dec 2018 23:05:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 370C028451; Wed, 26 Dec 2018 23:05:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E019D283E7 for ; Wed, 26 Dec 2018 23:05:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727093AbeLZXFt (ORCPT ); Wed, 26 Dec 2018 18:05:49 -0500 Received: from sonic315.consmr.mail.bf2.yahoo.com ([74.6.134.253]:44534 "EHLO sonic315-17.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726966AbeLZXFt (ORCPT ); Wed, 26 Dec 2018 18:05:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1545865548; bh=aHCDJPX9Tdx+uImJw/KTaMH/aCokILHqrz6P5Eng9Ks=; h=From:To:Cc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EtHtsuYcXk9_5tb1sX.o9IjRrtKvjbTIzYTqgSzp8YFlyWWxeqdU3h9WCSOtjrQGp AcT1fj7bBVRN3VAAQh7jqIlsBHrXQ4ml._wgbD7714QPfbjn6MEv0VY2VVP5iHrVGHH3VR4vHUWZ Lgyp_LVfe55Hz4H_0PSIT0iZ8zJhiiUpKEwB1.AJNSEM8Zljxwtn0wa7jgoaxa3PrzKY5Zx4PNsz He2jVd6_iz92ZUYSX5iiVuLhKQgovXZ4f4Fv0g59y7_dNi5oQjT2JMvQ3bP0NLCPvfzCX2Q5Gtzg kYsGYWW7JlCME6FViwystB8mlT5aYU_INziRfvH1ZvNryHPu49kAj2Eml1diJl7BK_Xkl1lKYWgc RoiEsw2NmJRsECvFOLziuJbZqkj1KM7xHCVQ2_N3jKYxiAVIykwLDjPmMZSUp85E7k3X6uSzJ1vh q53.0vkYud25_sXZWHL1MGRf8Qw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Wed, 26 Dec 2018 23:05:48 +0000 Received: from 99.229.179.249 (EHLO localhost.localdomain) ([99.229.179.249]) by smtp429.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 98f6f8df7851f5cc32b027b3d2c09fa1; Wed, 26 Dec 2018 23:05:46 +0000 (UTC) From: randall.s.becker@rogers.com To: git@vger.kernel.org Cc: "Randall S. Becker" Subject: [PATCH v1 1/4] transport-helper: use xread instead of read Date: Wed, 26 Dec 2018 18:05:20 -0500 Message-Id: <20181226230523.16572-2-randall.s.becker@rogers.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20181226230523.16572-1-randall.s.becker@rogers.com> References: <20181226230523.16572-1-randall.s.becker@rogers.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Randall S. Becker" This fix was needed on HPE NonStop NSE and NSX where SSIZE_MAX is less than BUFFERSIZE resulting in EINVAL. The call to read in transport-helper.c was the only place outside of wrapper.c where it is used instead of xread. Signed-off-by: Randall S. Becker --- transport-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport-helper.c b/transport-helper.c index bf225c698f..a290695a12 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -1225,7 +1225,7 @@ static int udt_do_read(struct unidirectional_transfer *t) return 0; /* No space for more. */ transfer_debug("%s is readable", t->src_name); - bytes = read(t->src, t->buf + t->bufuse, BUFFERSIZE - t->bufuse); + bytes = xread(t->src, t->buf + t->bufuse, BUFFERSIZE - t->bufuse); if (bytes < 0 && errno != EWOULDBLOCK && errno != EAGAIN && errno != EINTR) { error_errno(_("read(%s) failed"), t->src_name); From patchwork Wed Dec 26 23:05:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randall S. Becker" X-Patchwork-Id: 10743321 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 816026C2 for ; Wed, 26 Dec 2018 23:05:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 71450283E7 for ; Wed, 26 Dec 2018 23:05:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 656BC28481; Wed, 26 Dec 2018 23:05:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12169283E7 for ; Wed, 26 Dec 2018 23:05:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727204AbeLZXFx (ORCPT ); Wed, 26 Dec 2018 18:05:53 -0500 Received: from sonic312-24.consmr.mail.bf2.yahoo.com ([74.6.128.86]:41991 "EHLO sonic312-24.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727108AbeLZXFw (ORCPT ); Wed, 26 Dec 2018 18:05:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1545865551; bh=C7+4e9vvLdtWht+g3X3jPNzAko6EeL4TIzuPDzCGhcM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject; b=XbmEvu4NgWhUJtUPYZMXigMdzOUBSiSE3WftpsEfDt5waY8XuYiUvX0TipSqlhYH6xKmsoyTk38n6mRfiHrh4EUNR0hjxCH9OPhBebcobWERXAcWtFPRxIOQF7kG2Ska78vmkNoUxcS14Zrh/X+j2cc4ALIdY/w7k594i8gLTHlxXpAu1Gmj3L0AosdQbbUYMYAJ6aACYx8ucsa+8hMLklVuGWf0RC3FWLlkXTr2aLRFNHnDGUGZ5ySf9JszLeWVY4sIRo6AcSfCZ6Afpm94ZgV1qXdZbPpkBfdqolg5dmg1EVNo3p7jlRO5WnkhJcmVujLWpRX7j1q5sNB9vLLgzg== X-YMail-OSG: dCXl2VsVM1lPUmWbnV2kxBTn7v8sVvzHdaWKcUXO2QduJichDQT_hknJUz25aN_ _DyhEN6x4QtHEOIiFVAkF7Dd7sDVbIooOOGAccoMrcjKh9IYM4gPGqgRnta7RGgf2pfMHDIRh6Xa SDgrgnTwrtg6YTTvTY2u.JeqAzv3FazmOvTbGh6bj_sj5Qh1oauxvrUu2ZweBxQB.Jzg9IQYvjq2 H9PZ6HugtQiaeITxfl8cpzBS8DGycOaSUPPV3dCq2FmdhxLS0DsFw1rY9FZ1KSTjjCC8G5ijAmbz aG2R4gvozeYYb5760DnjMdWQW.KSpQ6Ne8qH7NTaAPOTaxxswPQzAINaHMcIfSYYpjD_A19qLGYJ y3xMm2VKff5GA8JdGx1AJKqAztvVB.kv_06O4FaB.1puPaYfGpyCDI5JYENBQqYxwb9DLhKNlgUt PWuzge4WzEPgNaWb664o_jROCeeACzntqoivD69A2mWknWeiCj..XuL5WiaZZgRZMPdB49bQ5eSC POotVbrac7251_ZWdwsgCvr8dvqHDxv2jmPfo8F0su7e8weaNTTsQ02H2FntTsdKPGp4E7UlbxrA 7E8LyIbOLhMYeI0HDqGaa4d_FueLMWfCrG1HCAorjEH.BVW5m_CjNww_dfVT6GAKn3x_r09clbjU e5GRRXvOS3gvAcS3fcGjE_7qJYyIyCs_1UrbRkTcOrgeRSBm5gClG.WBlyx25SGOpGUaWrrBRekd mn_YVd5WxBYgFNpayeJwCLeo2dwE0HoCAom.0c6__pPc2LUxg1TzNMWaTfAbdHzNzcxSHAhyDrLV NWt6ccUdumVRzINJ0CVdC8w0OKOA1LcKu2u01pjkiWW1v4_IpQwpyn9.lvBgQ_aSFhJ3WehfQJiW OTOf7t5OajuteAclDAI4RCI5ckTNeU4JdjCr3qxzfmwCJSF8rBXnrE_5dj3_wq1X5tFrniNbqTq4 JtQtjrKherpLYvn71JB8uBwjx0ZUK1kT657nabornxoRAbPnCDxwbNs72ffnkYnNH_I.ZE_atUSz FLAw0mxJsN0FpRYKLd3S0kTb_UQpysnvDZNZCSAYdyF.mYrjaCe1tOJTIGwxxrQSW_TCORpFeS_R DBmbTj7A6uWx08XGMsvykcCwLVg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Wed, 26 Dec 2018 23:05:51 +0000 Received: from 99.229.179.249 (EHLO localhost.localdomain) ([99.229.179.249]) by smtp429.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 98f6f8df7851f5cc32b027b3d2c09fa1; Wed, 26 Dec 2018 23:05:49 +0000 (UTC) From: randall.s.becker@rogers.com To: git@vger.kernel.org Cc: "Randall S. Becker" Subject: [PATCH v1 2/4] config.mak.uname: support for modern HPE NonStop config. Date: Wed, 26 Dec 2018 18:05:21 -0500 Message-Id: <20181226230523.16572-3-randall.s.becker@rogers.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20181226230523.16572-1-randall.s.becker@rogers.com> References: <20181226230523.16572-1-randall.s.becker@rogers.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Randall S. Becker" A number of configuration options are not automatically detected by configure mechanisms, including the location of Perl and Python. There was a problem at a specific set of operating system versions that caused getopt to have compile errors. Accounted for this by providing emulation defines for those versions. Signed-off-by: Randall S. Becker --- config.mak.uname | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/config.mak.uname b/config.mak.uname index 3ee7da0e23..aa4432ac2f 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -441,26 +441,45 @@ ifeq ($(uname_S),NONSTOP_KERNEL) # INLINE='' would just replace one set of warnings with another and # still not compile in c89 mode, due to non-const array initializations. CC = cc -c99 + # Build down-rev compatible objects that don't use our new getopt_long. + ifeq ($(uname_R).$(uname_V),J06.21) + CC += -WRVU=J06.20 + endif + ifeq ($(uname_R).$(uname_V),L17.02) + CC += -WRVU=L16.05 + endif + # Disable all optimization, seems to result in bad code, with -O or -O2 # or even -O1 (default), /usr/local/libexec/git-core/git-pack-objects # abends on "git push". Needs more investigation. - CFLAGS = -g -O0 + CFLAGS = -g -O0 -Winline # We'd want it to be here. prefix = /usr/local # Our's are in ${prefix}/bin (perl might also be in /usr/bin/perl). - PERL_PATH = ${prefix}/bin/perl - PYTHON_PATH = ${prefix}/bin/python - + PERL_PATH = /usr/bin/perl + PYTHON_PATH = /usr/bin/python + # The current /usr/coreutils/rm at lowest support level does not work + # with the git test structure. Default to the older rm. + RM = /bin/rm -f # As detected by './configure'. # Missdetected, hence commented out, see below. #NO_CURL = YesPlease # Added manually, see above. + # Missdetected, hence commented out, see below. + #NO_CURL = YesPlease + # Added manually, see above. + # Not detected by ./configure. Add manually. + NEEDS_SSL_WITH_CURL = YesPlease + NEEDS_CRYPTO_WITH_SSL = YesPlease + HAVE_DEV_TTY = YesPlease + HAVE_LIBCHARSET_H = YesPlease HAVE_STRINGS_H = YesPlease NEEDS_LIBICONV = YesPlease NEEDS_LIBINTL_BEFORE_LIBICONV = YesPlease NO_SYS_SELECT_H = UnfortunatelyYes NO_D_TYPE_IN_DIRENT = YesPlease + NO_GETTEXT = YesPlease NO_HSTRERROR = YesPlease NO_STRCASESTR = YesPlease NO_MEMMEM = YesPlease @@ -470,8 +489,13 @@ ifeq ($(uname_S),NONSTOP_KERNEL) NO_MKDTEMP = YesPlease # Currently libiconv-1.9.1. OLD_ICONV = UnfortunatelyYes - NO_REGEX = YesPlease + NO_REGEX=NeedsStartEnd NO_PTHREADS = UnfortunatelyYes + ifdef NO_PTHREADS + else # WIP, use of Posix User Threads is planned but not working yet + PTHREAD_CFLAGS = -D_PUT_MODEL_ -I/usr/include + PTHREAD_LIBS = -lput + endif # Not detected (nor checked for) by './configure'. # We don't have SA_RESTART on NonStop, unfortunalety. From patchwork Wed Dec 26 23:05:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randall S. Becker" X-Patchwork-Id: 10743323 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A68666C2 for ; Wed, 26 Dec 2018 23:05:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95A96283E7 for ; Wed, 26 Dec 2018 23:05:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A38D28481; Wed, 26 Dec 2018 23:05:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3AF12283E7 for ; Wed, 26 Dec 2018 23:05:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727218AbeLZXF6 (ORCPT ); Wed, 26 Dec 2018 18:05:58 -0500 Received: from sonic312-24.consmr.mail.bf2.yahoo.com ([74.6.128.86]:37941 "EHLO sonic312-24.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726798AbeLZXF5 (ORCPT ); Wed, 26 Dec 2018 18:05:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1545865556; bh=QkjIuD26Pm9qNz2/fZxqtL/P4r36+Yk+uixs0aJZiPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject; b=Ie7OZuhbV0Ro1qmkcoRlp2DhfLgInv/6ihaVJXz1bzpa647Z6P5Y8iJOf5r2rOlpa8BWJ3oex1RW7XR+uU+ShqNtu1o4ke1o7hc4wzpNfhCKBYfLeC6lg6/PIEb4Q6uksyD0yUkt+s3sVNFdrWDtr0Z21sfxiX2b80vENg8nCDX63daLmfgviZVumIuBNvdBy04K81r5jrNnx82/kS7VAyqIfD8rY/mjbcxGlZF2JAC//uFPXJ+c4d8AO5xduc6WkYQ82rpniLikjv5m1IP0m1Il31k6nt+2/l9eFWtsmGAZ2vPPU90Dn5SR0121Yp/CzQLuDaXi8gvB2Pfj3upYSg== X-YMail-OSG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m1VkqSfyAXL11x19lYDsb.hub15P.CKO5p5XObErlKwfuSNamoe1VYX TrAVriAXk6AFL1LdY5oI79JVXHYo- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Wed, 26 Dec 2018 23:05:56 +0000 Received: from 99.229.179.249 (EHLO localhost.localdomain) ([99.229.179.249]) by smtp429.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 98f6f8df7851f5cc32b027b3d2c09fa1; Wed, 26 Dec 2018 23:05:51 +0000 (UTC) From: randall.s.becker@rogers.com To: git@vger.kernel.org Cc: "Randall S. Becker" Subject: [PATCH v1 3/4] git-compat-util.h: add FLOSS headers for HPE NonStop Date: Wed, 26 Dec 2018 18:05:22 -0500 Message-Id: <20181226230523.16572-4-randall.s.becker@rogers.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20181226230523.16572-1-randall.s.becker@rogers.com> References: <20181226230523.16572-1-randall.s.becker@rogers.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Randall S. Becker" The HPE NonStop (a.k.a. __TANDEM) platform cannot build git without using the FLOSS package supplied by HPE. The convenient location for including the relevant headers is in this file. The NSIG define is also not defined on __TANDEM, so we define it here as 100 if it is not defined only for __TANDEM builds. Signed-off-by: Randall S. Becker --- git-compat-util.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/git-compat-util.h b/git-compat-util.h index 09b0102cae..3f615f7ed8 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -397,6 +397,21 @@ static inline char *git_find_last_dir_sep(const char *path) #define query_user_email() NULL #endif +#ifdef __TANDEM +#if !defined(_THREAD_SUPPORT_FUNCTIONS) && !defined(_PUT_MODEL_) +/* #include */ +/* #include */ +#endif +#include +#include +#if ! defined NSIG +/* NonStop NSE and NSX do not provide NSIG. SIGGUARDIAN(99) is the highest + known, by detective work using kill -l as a list is all signals + instead of signal.h where it should be. */ +# define NSIG 100 +#endif +#endif + #if defined(__HP_cc) && (__HP_cc >= 61000) #define NORETURN __attribute__((noreturn)) #define NORETURN_PTR From patchwork Wed Dec 26 23:05:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randall S. Becker" X-Patchwork-Id: 10743325 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6A87913AD for ; Wed, 26 Dec 2018 23:06:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AD47283E7 for ; Wed, 26 Dec 2018 23:06:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F5FB28481; Wed, 26 Dec 2018 23:06:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5472283E7 for ; Wed, 26 Dec 2018 23:06:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727260AbeLZXGA (ORCPT ); Wed, 26 Dec 2018 18:06:00 -0500 Received: from sonic310.consmr.mail.bf2.yahoo.com ([74.6.135.253]:37217 "EHLO sonic310-18.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727231AbeLZXF7 (ORCPT ); Wed, 26 Dec 2018 18:05:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1545865558; bh=CcJ+uFKxIKm/3L9CCJ0S5xdsZ0iyjxnOTQ+N4kmgOSA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject; b=rgPiO4Dc6CsRWPYqAFW1YrW3XH/V0BLIhhrKIv117IJcLh9m81paAiO0pz7a8DvXsjKKEdCVzsa0weRvMjjGdfnoqy66EL1Cie6ZuRStY+6cT3j9qe+bPYxtaElvdsexZLltgsOIllFxMGFuPrw1xiseZiKapeCicwBO2g/qmqKLIsiQN58X56fwku22tD/i43WlWM3KgaTnrfTpyRfT/05WSr4EXse91adp9KULJUha7PoxPSWPeUm7MCakLH6Fa98hXXhbjJR8MQxa+sTuf+YrISgWDroxvV/u21n0+W0MRSeBruGgJJ30GiD3c4NjhJ4jsmrkFlDbV3W5CpsBcg== X-YMail-OSG: AFYQ6h0VM1nH3kV4UVISy9ptLdoIrIU11SN6UlLfyEw0ZhLP1wLCp3Dfcpmm7kv Umb7pOI7ttqv2XoO3u.FMXhlNac5XxziXSrDOAJ3BIrzaAEOpcf1VLiZEyPOGlX24.LoBgYFM.fb g.fLOyP8r1.5Ajv28JWcR_iUxbUudDs9oHg_yQrWEl_5PxeA.kVUYAwwh3Ag_zpMdHwiB9WpIimV hsy1U_1o8VoTqsDgtohEQFhIkWEmyHWUnDNh4t3jsKtuneTUmH1WpmK_QQK1PZzxecENcg3XnuUh M6xy_SoxxAm07OEKSqynil9zL49L4v8hOHLgt9cbaITN1YWuOdlQhIaF1gQGAvHatY9V1pD.PJ1K YuJeV1W509OB8PD38aMde0yKPyP1K66X_cy.dFST1GAXDOF.No9gBg7mU81N.1o4VUY0TPX_7PEl r4w.cA1gE9zbwXqV__fYENi0dsNH9mvvkN8lEGya_fGRGpF3LsEHETi595aB4es_zUdXIEyyg8st lmk2uR.lMmDK2PjODnBZQmECKzXhViRihxACPOjsQoltZHlH3BVAKm_pKRHiEE1jFOtv6HspJhiY OU4wKQ6ASu25QPE4Qxh0wVY03EVheVq5bqxFUR9TZwiofnpEhpX9EAhNnfd9Ma6PHUJRZ.lLbnkc Q.1DSLvGXxYr_z2_RwTh3sek9bi1a9WilAg4wWpnerU8o6EHQFVmHzB7L2HtGjjXTjZWUstnQH0B DsEduyGcpqFYboDMnmbYmKNZKvGyt9w3FnJiMg70XPedJQkaOsAvGt159ToizCF38joeMl6WKkwF HCh_xTt.ojz7OhxqgJAO_C1vqPseSL_5dxlK0fAvVmEOtJTR_CFEgAorEJuJY0gL7gEZv71RSLaU JkaR1XTvTkj2e6AZL7ddcWheXhCSUrjriHOvkk8s5Y_rhmI4u2e5._YL88uWpOo_NDTru_nR4CM0 y9aQHtweTm6u5CwTkZ3pXt_nNnnRjW74HBlZyDtJtYy0wGsHKUEk.1DXi3DSrCeTlYgLCdv.mt1K qQwPUYL89xG2ZmVL6.nBpXoR1fWOioAYm.G5rBsOltZe4g00xSPwe6z47JnAksh1cVpWbJ6qg8bn z6l9dfLZr34BcgEnRjjIjLthZboVJZXM- Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Wed, 26 Dec 2018 23:05:58 +0000 Received: from 99.229.179.249 (EHLO localhost.localdomain) ([99.229.179.249]) by smtp429.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 98f6f8df7851f5cc32b027b3d2c09fa1; Wed, 26 Dec 2018 23:05:53 +0000 (UTC) From: randall.s.becker@rogers.com To: git@vger.kernel.org Cc: "Randall S. Becker" Subject: [PATCH v1 4/4] compat/regex/regcomp.c: define intptr_t and uintptr_t on NonStop Date: Wed, 26 Dec 2018 18:05:23 -0500 Message-Id: <20181226230523.16572-5-randall.s.becker@rogers.com> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20181226230523.16572-1-randall.s.becker@rogers.com> References: <20181226230523.16572-1-randall.s.becker@rogers.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Randall S. Becker" The system definition header files on HPE NonStop do not define intptr_t and uintptr_t as do other platforms. These typedefs are added specifically wrapped in a __TANDEM ifdef. Signed-off-by: Randall S. Becker --- compat/regex/regcomp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compat/regex/regcomp.c b/compat/regex/regcomp.c index 51cd60baa3..c0d838834a 100644 --- a/compat/regex/regcomp.c +++ b/compat/regex/regcomp.c @@ -17,6 +17,14 @@ License along with the GNU C Library; if not, see . */ +#if defined __TANDEM + /* This is currently duplicated from git-compat-utils.h */ +# ifdef NO_INTPTR_T + typedef long intptr_t; + typedef unsigned long uintptr_t; +# endif +#endif + static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern, size_t length, reg_syntax_t syntax); static void re_compile_fastmap_iter (regex_t *bufp,