From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4BEB0A0547; Sat, 6 Mar 2021 01:05:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA1E1406A3; Sat, 6 Mar 2021 01:05:11 +0100 (CET) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by mails.dpdk.org (Postfix) with ESMTP id 83EB14014D for ; Sat, 6 Mar 2021 01:05:10 +0100 (CET) Received: by mail-lf1-f52.google.com with SMTP id k9so6761901lfo.12 for ; Fri, 05 Mar 2021 16:05:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=G/dZ+rxcPO6tnKJm2oaId1kz2ill42yEffOAf8pc8jQ=; b=UlGaT0qkGPvgrjJ2UVTtTUTVBH50NzhHrcdHLPY50gTLZV3gzrmQR2VPwj2pPPW18X oHnT4SZjnDkWS2kbXONv8Nh1uDTv8evpiHC3muu2W+cIdhYHD0hYorsKdzij9smZyHY1 6TCB3SD5QaUbwDZ+RL49zuAd2S+1oEYWzzJKpvNH0KpKcuHnK33NAZGlG7CKlO3j671H S9pAi3rA2FNaPjkHBpfZkqq1X8/6B9lupWkiVB7tP/wYt2HcfFzPKksa2dYwE74o3EyQ vVgKBsjTwTFIxgYeOlcWvz/bSKKN9teZpYLLzx9ZKK2HkWX9gLNzPmAWgogdP8F4z1Gi fvhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=G/dZ+rxcPO6tnKJm2oaId1kz2ill42yEffOAf8pc8jQ=; b=mkBGBaQrCvn6NKGhx5wO474voR0G90wM7n+8wxvzsGtPuCaoZcxr1MADojWEyfpe8I /R9zUS9K1EbICjZcs8/wqeMGI+uHCE0NmF59Z0EQbiZ/ES6dDldsouo56NKIacza1tO2 TQU3LpStsWJE95n6qZwK4EO1kZ+yTUQVQhUpdJ+z0Er7Hqy+7iWePLyO+uyzUPR5Gn2V Iuwz0y8AzsTa1ox7NrRx2bkvaMr17Jq9WWsZhs0PVsHSB/cr94B8EEMSA/2qQjL9Bwyc hlNp3VwKKsrO23ga30jf0CMdV7oj6Y1jdnNKs1PygtKDTRqyPRk2sZKHkpYKAaSrNcUt BMUg== X-Gm-Message-State: AOAM531Ft1aF2NzY3p/zqPs+zOcKjtVrObOEMi/tF2qLhS9aMUp0amzi 2MlW8WYDkNFC0h8WkkWvsVmzdwhCMAttBA== X-Google-Smtp-Source: ABdhPJztl7esDpSaLjNLRchSvGr59qTscw5zMgR8X0oLabH/f8oU4emXRoMjzw7pE9+MkG/DWXIxzg== X-Received: by 2002:a19:bd7:: with SMTP id 206mr7158927lfl.318.1614989109749; Fri, 05 Mar 2021 16:05:09 -0800 (PST) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id s22sm494645ljd.28.2021.03.05.16.05.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 16:05:08 -0800 (PST) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Nick Connolly , Khoa To , Dmitry Kozlyuk Date: Sat, 6 Mar 2021 03:04:56 +0300 Message-Id: <20210306000500.8698-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210221142819.6769-1-dmitry.kozliuk@gmail.com> References: <20210221142819.6769-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 0/4] eal/windows: do not expose POSIX symbols X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Windows, rte_os.h contains a small POSIX compatibility set of functions and macros. Exposing it from EAL can break consumer own POSIX compatibility layer and is against standards in general. Hide these symbols from external consumers, while keeping them available for DPDK code. v4: * Instead of creating wrappers and replacing POSIX names in lib/ and drivers/, provide POSIX names only to internal consumers. * Move renaming from librte_cmdline to librte_eal. Dmitry Kozlyuk (4): eal: add sleep API eal: add asprintf() internal wrapper build: indicate usage at build time for public headers eal/windows: do not expose POSIX symbols config/meson.build | 3 + doc/guides/rel_notes/release_21_05.rst | 3 + lib/librte_cmdline/cmdline.c | 4 - lib/librte_cmdline/cmdline_socket.c | 4 - lib/librte_eal/common/eal_common_errno.c | 4 + lib/librte_eal/common/eal_common_lcore.c | 2 +- lib/librte_eal/common/eal_common_options.c | 10 +- lib/librte_eal/common/eal_common_timer.c | 5 +- lib/librte_eal/common/eal_common_trace.c | 2 +- lib/librte_eal/common/eal_common_trace_ctf.c | 2 +- .../common/eal_common_trace_utils.c | 2 +- lib/librte_eal/common/eal_private.h | 18 +++ lib/librte_eal/include/rte_thread.h | 11 ++ lib/librte_eal/rte_eal_exports.def | 2 + lib/librte_eal/unix/rte_thread.c | 10 +- lib/librte_eal/version.map | 3 + lib/librte_eal/windows/eal.c | 30 +++++ lib/librte_eal/windows/eal_thread.c | 9 +- lib/librte_eal/windows/include/rte_os.h | 103 ++++-------------- 19 files changed, 122 insertions(+), 105 deletions(-) -- 2.29.2