From patchwork Tue Jul 16 17:08:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 1961203 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=HXJkJdlx; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WNmVs0ZNtz1xrQ for ; Wed, 17 Jul 2024 03:37:57 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9DBD93870C39 for ; Tue, 16 Jul 2024 17:37:54 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 6682138708AD for ; Tue, 16 Jul 2024 17:37:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6682138708AD Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6682138708AD Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::331 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721151438; cv=none; b=CfAmop7L22nKqPiV8n+NgWMr3MTPXzihn0CXcmuLbEfghQr6sQ7tn/TRhQUccWdiAHDm29ywNBRPS1eW+nb/hr2Tu/E28vkLuqLKVbNvQ+Kmr4UTnDki/taDWyjSroodI0maR37sivN5diUqqXbal2j5lvkxXw959Y9+NCL8+MM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721151438; c=relaxed/simple; bh=PYB9gyDP9cywLlO2hm5mv9jZF9Rs1OIp52Dc6ti/CmY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=nkpbb97e8+gtTHJM8eQ7XoK/T6YXv11XxZbADCB/9+24dp0HGvufQ1nmpjJecxTOBQh62SFFE4muZyRbg4EvNst0i5zrDR0W1+KRjabomdv7e59JlYYDzB4qUzmcCgEhq9PMvTFeUrUBuiqBwUe0W0MuS2+cR9tnk3TwkeOccu8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4266fd39527so43181305e9.1 for ; Tue, 16 Jul 2024 10:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721151433; x=1721756233; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=jo2ApX12pOMcOThK7T3KXixBeikSD9l2GpVFZAAJeh4=; b=HXJkJdlx78JFCXrD0msB3djz8VdNG1toqLEJx/Nq6kIpu/vAO8Am2Y77LkOZcLNAer JOS8k4xEkT64gEoRhrEjz45ykl+ZyPaHRiTP359HaJcCcFoNnxe6gptJs6ep69po2IHR O8eIEcnYlqDrwzT6QNTZvfQc8MjrGPCrdLGvgy/nzceUl6NwL9TLTVLdvxwR6MInTKug r4E+SjVYyd/GMbXct2FFGU6okwcluSrjk/KMwZQcohPm4By8U6GSU4zwV0TWGrU0sANm wcjQnIbw6yZI/kcOEJknbUPoqqjVbOYFXb/PODKeVtmFsO/wv8zckmcHcc5cnsZAcHoo fWBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721151433; x=1721756233; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jo2ApX12pOMcOThK7T3KXixBeikSD9l2GpVFZAAJeh4=; b=s4iSzb2X0ZrxkRtTbVv70CkfUDR+fD+ZxbUNZCBGh1JzVAlIFuav97u9WNwzqqIRaH ajBmD6yklqjYQgMFi296EzfzEXGmLi1cuMplOTdcvtQUk6S9M/kzJCkFu0NPBZjQYjYX DpBdoPQN8I1bdP6+Oye/lmBYb6nmVUN1tbC3fwJasO+8Ma8Psn7uHMEBjL09O0YULkTR XVucTSVJhBqu1sSzk0G9LXT8NZzjhSo2KWgj51Q96DYFeaLqcHaAOupZ5/JvrhksZusS cbB7H2I67rLk1ygfyGRsSllPAhDu221ALbLR7OjQKtgK0+1lLiJTCu+hh/Sx4BJKSJR+ RfNQ== X-Gm-Message-State: AOJu0Yw2EOteOZjcnA7TMahK7pQ7MlKjLt+r720pAmXiB0nTrsxvnABg zO4p7B2F7Hv+DAM7eJe0XEAvZQq9qWQYPIDno0oo+StSJ4v4akK4FhFl4sEewf9X3NfC1wDRR8t k7Jw= X-Google-Smtp-Source: AGHT+IG2jzZTDubkeMQQA1onR6KpX3/ODep8CEnHJOO/+hlxYmeCtmcE8exLliFYdwyt4GzLS0Y1sQ== X-Received: by 2002:a5d:5347:0:b0:35e:6472:4390 with SMTP id ffacd0b85a97d-368261029e0mr1742105f8f.27.1721151433562; Tue, 16 Jul 2024 10:37:13 -0700 (PDT) Received: from ubuntu-vm.. (51-148-40-55.dsl.zen.co.uk. [51.148.40.55]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3680dafbe9esm9622115f8f.78.2024.07.16.10.37.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 10:37:12 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 5/5] Add F_DUPFD_QUERY from Linux 6.10 to bits/fcntl-linux.h Date: Tue, 16 Jul 2024 17:08:49 +0000 Message-ID: <20240716173702.1505620-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240716173702.1505620-1-adhemerval.zanella@linaro.org> References: <20240716173702.1505620-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org It was added by commit c62b758bae6af16 as a way for userspace to check if two file descriptors refer o the same struct file. Checked on aarch64-linux-gnu. Reviewed-by: Florian Weimer --- sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h index 628612b885..61c100d984 100644 --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h @@ -200,6 +200,7 @@ # define F_SETLEASE 1024 /* Set a lease. */ # define F_GETLEASE 1025 /* Enquire what lease is active. */ # define F_NOTIFY 1026 /* Request notifications on a directory. */ +# define F_DUPFD_QUERY 1027 /* Compare two file descriptors for sameness. */ # define F_SETPIPE_SZ 1031 /* Set pipe page size array. */ # define F_GETPIPE_SZ 1032 /* Set pipe page size array. */ # define F_ADD_SEALS 1033 /* Add seals to file. */