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: 812772 Delivered-To: patch@linaro.org Received: by 2002:a5d:42c4:0:b0:367:895a:4699 with SMTP id t4csp422433wrr; Tue, 16 Jul 2024 10:37:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdFfuWSQ37ldJG+ABRbLpPc0GH7e6lZOMGLXW/TER34Y/1e6SfMQfssG2EEFxJCUuzpMjvx0kWOq7LeNJldKBB X-Google-Smtp-Source: AGHT+IGkVhC0vbdw5o7Ued51VsV2MqXEURjmmWmKekhSjzBhZyfz8oKzCJEPJNl/vVRKILvWqp9o X-Received: by 2002:a05:620a:f05:b0:795:5f15:f9e8 with SMTP id af79cd13be357-7a17ccecfb1mr463985785a.31.1721151469119; Tue, 16 Jul 2024 10:37:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1721151469; cv=pass; d=google.com; s=arc-20160816; b=BIFtyN80IMLWGJ2cxwWRYrMj9mQT8PJ+Gs5vmCue8zZe8maOxQPegZ0p11Tubjy03t C7uUWItuHJF95UZi7PI46T0u/FYQCNlWdsyagD5bvpFr5KQl+cDp1BJcMFAMJjtSWHsX OSAhco3vJ2WvstPdxpC22osfSSPVXIHOHTacMtGmOIXVVTm4+ipmEh9zTob6Rv2fIeX1 E7lN0bx0FpM62y56WAPnWIXN5FEMN/SsCP3ZVvcg3bEhTC0E9NJwMzo+6NlcLT7AB6Gx vUfSUybMy6hTkjWX5XZbGjLs8PPX2QLrYL2P68EkfQvSoXzFyrGcVjYAXIDmFkNw7CJf OfHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=jo2ApX12pOMcOThK7T3KXixBeikSD9l2GpVFZAAJeh4=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=H7JkxxYabmLJuQg/V7x+qFokVq+YiVvSyVmfUfnSEYhy+Dv8O7vNmb0p8gMY4ZAMTT SzSakdAA5GxkU2X67x27dY5m6KRBqUbQu7/yv+JRi4bvQguCp+JTHoXtPcARtf6+dUMk ozjkI7TWd0wXqAjuSZdk4FQ6d0R+JEHBXZB/gP0mhCb5KvSwiagsaKXIdP6K5qkr9bpW VoXGmd+7NGrkLJyKenJe8/q1VV44koGgagOlgwFywt9buO4IVR24JivFd7A+KJbKIvzR MbOJr8IWUsGy+O3zhwXcf1Xg+bWnt4V37SOsl3eJ+pAHz2umuAP2nggVn+WhC1FvlknR ZDYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HXJkJdlx; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id af79cd13be357-7a160c6a572si783285985a.519.2024.07.16.10.37.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 10:37:49 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HXJkJdlx; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AD1663870C23 for ; Tue, 16 Jul 2024 17:37:48 +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-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~patch=linaro.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. */