{"id":20348,"url":"https://patchwork.libcamera.org/api/patches/20348/?format=json","web_url":"https://patchwork.libcamera.org/patch/20348/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20240617214343.2302454-1-pobrn@protonmail.com>","date":"2024-06-17T21:43:45","name":"[v1] v4l2: v4l2_compat: Fix redirect from `__open(at)64_2()`","commit_ref":"bab056eb8621d499d0a2be688ef1a06797a7da1b","pull_url":null,"state":"accepted","archived":false,"hash":"f145e553e9ce92d16bf09c343f32009da1ab15e6","submitter":{"id":133,"url":"https://patchwork.libcamera.org/api/people/133/?format=json","name":"Pőcze Barnabás","email":"pobrn@protonmail.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/20348/mbox/","series":[{"id":4404,"url":"https://patchwork.libcamera.org/api/series/4404/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4404","date":"2024-06-17T21:43:45","name":"[v1] v4l2: v4l2_compat: Fix redirect from `__open(at)64_2()`","version":1,"mbox":"https://patchwork.libcamera.org/series/4404/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/20348/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/20348/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 6EF85C3237\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 17 Jun 2024 21:43:54 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 807CA6548B;\n\tMon, 17 Jun 2024 23:43:53 +0200 (CEST)","from mail-40133.protonmail.ch (mail-40133.protonmail.ch\n\t[185.70.40.133])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id CEE9B61A1C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 17 Jun 2024 23:43:51 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=protonmail.com header.i=@protonmail.com\n\theader.b=\"u1GCO9AA\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;\n\ts=protonmail3; t=1718660631; x=1718919831;\n\tbh=jW6mPIPXM4sEAE7qfA6M4xx7usDmie/huTyY7+gJQb4=;\n\th=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:\n\tSubject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector;\n\tb=u1GCO9AAndsOtHGaxr5TqrEBBZbUkyJplLpJ6ISe9Ec2yyt8ocos2IUsbao9CK5RQ\n\tqA5oB70O/1DShMqeQpM7EtLD1u/k4vyQokH+9o81VMQIi/Hq4lkQb7YGOfc2L0n0oQ\n\tMtkbfapvH6JvaPKF1TxlB9hZqYmXyONqHOS2nA4sFCZTU+mG06gsNVlvH+8KPM7jbs\n\tZLHQ5d+O7dsdZ9iRZ1LLjQffzhB7u+HzaCESed/CFlrB/ExoQ2MnMArEkS8pa1V7QS\n\tcUY7aoqiO9zH9o2E1mkK0fMsf5rTNubbhWRzHfILWyfUXt0wZR7IeMpbtz9mov4y+1\n\tqSo0o2Plp3iBw==","Date":"Mon, 17 Jun 2024 21:43:45 +0000","To":"libcamera-devel@lists.libcamera.org","From":"=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <pobrn@protonmail.com>","Subject":"[PATCH v1] v4l2: v4l2_compat: Fix redirect from `__open(at)64_2()`","Message-ID":"<20240617214343.2302454-1-pobrn@protonmail.com>","Feedback-ID":"20568564:user:proton","X-Pm-Message-ID":"36deabbeebf80779f70f2e743579d465ec08c65b","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Transfer-Encoding":"quoted-printable","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"`__open64_2()` and `__openat64_2()` should redirect\nto `open64()` and `openat64()`, respectively, otherwise\nthe `O_LARGEFILE` flag will not be applied.\n\nFixes: 1023107b6405 (\"v4l2: v4l2_compat: Intercept open64, openat64, and mmap64\")\nSigned-off-by: Barnabás Pőcze <pobrn@protonmail.com>\n---\n src/v4l2/v4l2_compat.cpp | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)","diff":"diff --git a/src/v4l2/v4l2_compat.cpp b/src/v4l2/v4l2_compat.cpp\nindex 8e2b7e92..8a44403e 100644\n--- a/src/v4l2/v4l2_compat.cpp\n+++ b/src/v4l2/v4l2_compat.cpp\n@@ -59,7 +59,7 @@ LIBCAMERA_PUBLIC int open64(const char *path, int oflag, ...)\n \n LIBCAMERA_PUBLIC int __open64_2(const char *path, int oflag)\n {\n-\treturn open(path, oflag);\n+\treturn open64(path, oflag);\n }\n #endif\n \n@@ -90,7 +90,7 @@ LIBCAMERA_PUBLIC int openat64(int dirfd, const char *path, int oflag, ...)\n \n LIBCAMERA_PUBLIC int __openat64_2(int dirfd, const char *path, int oflag)\n {\n-\treturn openat(dirfd, path, oflag);\n+\treturn openat64(dirfd, path, oflag);\n }\n #endif\n \n","prefixes":["v1"]}