From nobody Mon Feb 9 23:40:11 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1599594783; cv=none; d=zohomail.com; s=zohoarc; b=ZCkb0raCRlsQ967k/yjSoVYLEMpgkTwlAzQGCM+HkaOn0/6dcUh0m7ayYRVHubUBYsrIM/ogIzNGyQhIzEJIoaKMXTNES6Woa40nI2OwLjsF5NhXOraqF43K22stBVNsHzT0OyQzpYQMBMPeAFm0nl/Cf/DJAIXGkboUjUXSYuY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599594783; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XFEZh3+xvAfqz2f0h/nVnmxCipA8eA9k8U4UHOk894U=; b=hjIYOznuhIkGwVfNaCU1epvvvG0zu7ymmaayEblDA/LtSdh+v/Ws69AU2WRPf0C8Gj0T73Vh8LbmMrlrtPjRSMC2gtyoPxnrmcuxEi9rEDyONfGESq76DpQv4XFFJXaqrPoPQ10oMw3Q7ACUiENbMp6FDoS8C9fVqRs+PCtIOAY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1599594783436380.52473423953256; Tue, 8 Sep 2020 12:53:03 -0700 (PDT) Received: from localhost ([::1]:58548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFjfq-0005Fi-0O for importer@patchew.org; Tue, 08 Sep 2020 15:53:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFjcD-00060f-TL; Tue, 08 Sep 2020 15:49:17 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:43352) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFjcC-0002XL-Bf; Tue, 08 Sep 2020 15:49:17 -0400 Received: by mail-pf1-x42e.google.com with SMTP id f18so23474pfa.10; Tue, 08 Sep 2020 12:49:15 -0700 (PDT) Received: from localhost.localdomain ([222.95.248.6]) by smtp.googlemail.com with ESMTPSA id n127sm216922pfn.155.2020.09.08.12.49.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 12:49:13 -0700 (PDT) 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=XFEZh3+xvAfqz2f0h/nVnmxCipA8eA9k8U4UHOk894U=; b=b9Jz+yFLKdvbyfqRNfyX+pj+pQdmgwK96Mmn1NqM3m7Re3Kbu5mQ5RgCJSnsm/ul6o uBEsQEGxc6HVJ8jQmflr9eJU/oOdd+1RrMgJUJDktCD0fUJn8Qi410biySUeytKieBa2 0F1s2/gcmm0aJy6INd8avwkHA9G06pIAF+iYgC/56GL2r4ixMk9CNXYlzlbhmpMDBllJ Dg+YG1WOOoEi+yhSbLRScbx7QYpAFVzydcb41nebjuQtcuqX0tVUKFHuUcZc22Xeesxq kjQRK0+HQ/7wp9kdMJQo9cAmvtD3q2l4cDPybFoB9HA6m0Z0hsHoNLbd55RPBcSL2tjT SbVQ== 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=XFEZh3+xvAfqz2f0h/nVnmxCipA8eA9k8U4UHOk894U=; b=fAKLvT3ORjQHYC8LkLraOPvFZa0DtolmRNWNnaBQP5HEe1Gyn2o7gkzxLpg8pEp3K9 seOae21VWX0IzGEOJK74c4oVsM9Rim6cuqexbVYSaz6espARP+iYx4WFDnOwhdy+TtQg VJ2wJKkDfF5jLmcg2cMOkEILwoGVrxlV92Ip8f+sauD1ysuy+VhZyPgMIqjwM9aTcD50 Mgw0KPn8nbeluQ+CuuU5mxl6RY70G4kC/+jU3AzWaKH0DiWw/2bgkznJ12abngILovaZ x3Dxi9SsSm5MUzdcczNmSomAI7nuGMXfPkB63+tAPUSAmukbTSin2mS1ebyOuHmqjtR6 S2zQ== X-Gm-Message-State: AOAM5308MKuaZxlKKNs+0lMI2zJg+Wj+0CpV//H+SzINQPe16cRJhaMC ofx+3yw3veFa+ml/TXlVunKw3vA9scu9+bHJ X-Google-Smtp-Source: ABdhPJwhGI60FA1ia0Cg6mDAzAE8FTNof1LIQ+rqzksih1Ry/t+o8zghnJ06WgqXTYQxcLLLGZ1org== X-Received: by 2002:a17:902:ac83:b029:d0:cbe1:e71c with SMTP id h3-20020a170902ac83b02900d0cbe1e71cmr698009plr.42.1599594554182; Tue, 08 Sep 2020 12:49:14 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Subject: [PATCH 09/16] osdep: These function are only available on Non-Win32 system. Date: Wed, 9 Sep 2020 03:48:13 +0800 Message-Id: <20200908194820.702-10-luoyonggang@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20200908194820.702-1-luoyonggang@gmail.com> References: <20200908194820.702-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=luoyonggang@gmail.com; helo=mail-pf1-x42e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Ed Maste , Michael Roth , qemu-block@nongnu.org, Stefan Weil , Xie Changlong , Richard Henderson , Markus Armbruster , Max Reitz , Yonggang Luo , Gerd Hoffmann , Wen Congyang , Li-Wen Hsu , Peter Lieven Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" int qemu_lock_fd(int fd, int64_t start, int64_t len, bool exclusive); int qemu_unlock_fd(int fd, int64_t start, int64_t len); int qemu_lock_fd_test(int fd, int64_t start, int64_t len, bool exclusive); bool qemu_has_ofd_lock(void); Signed-off-by: Yonggang Luo --- include/qemu/osdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 412962d91a..e80fddd1e8 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -502,11 +502,11 @@ int qemu_close(int fd); int qemu_unlink(const char *name); #ifndef _WIN32 int qemu_dup(int fd); -#endif int qemu_lock_fd(int fd, int64_t start, int64_t len, bool exclusive); int qemu_unlock_fd(int fd, int64_t start, int64_t len); int qemu_lock_fd_test(int fd, int64_t start, int64_t len, bool exclusive); bool qemu_has_ofd_lock(void); +#endif =20 #if defined(__HAIKU__) && defined(__i386__) #define FMT_pid "%ld" --=20 2.28.0.windows.1