From: frezidok1@gmail.com
To: yocto-patches@lists.yoctoproject.org
Cc: Dmitry Sakhonchik <frezidok1@gmail.com>
Subject: [pseudo] [PATCH v3 3/6] ports/linux/pseudo_wrappers.c: Add syscall support for open_tree() wrapper
Date: Mon, 7 Sep 2026 14:18:40 +0300 [thread overview]
Message-ID: <20260907111843.26746-4-frezidok1@gmail.com> (raw)
In-Reply-To: <20260907111843.26746-1-frezidok1@gmail.com>
From: Dmitry Sakhonchik <frezidok1@gmail.com>
[YOCTO #16379]
Signed-off-by: Dmitry Sakhonchik <frezidok1@gmail.com>
---
ports/linux/pseudo_wrappers.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/ports/linux/pseudo_wrappers.c b/ports/linux/pseudo_wrappers.c
index b920cb2..33cba2d 100644
--- a/ports/linux/pseudo_wrappers.c
+++ b/ports/linux/pseudo_wrappers.c
@@ -102,6 +102,20 @@ syscall(long number, ...) {
#error SYS_openat2 not defined
#endif
+#ifdef SYS_open_tree
+ if (number == SYS_open_tree) {
+ pseudo_debug(PDBGF_SYSCALL, "syscall, faking open_tree.\n");
+ va_start(ap, number);
+ int dirfd = va_arg(ap, int);
+ const char *path = va_arg(ap, const char*);
+ unsigned int flags = va_arg(ap, unsigned int);
+
+ return wrap_open_tree(dirfd, path, flags);
+ }
+#else
+#error SYS_open_tree not defined
+#endif
+
#ifdef SYS_renameat2
/* Call out wrapper, expanding the variable arguments first */
if (number == SYS_renameat2) {
next prev parent reply other threads:[~2026-09-07 11:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-07 11:18 [pseudo] [PATCH v3 0/6] Add open_tree() wrapper frezidok1
2026-09-07 11:18 ` [pseudo] [PATCH v3 1/6] ports/linux/guts: Add open_tree wrapper frezidok1
2026-09-07 11:18 ` [pseudo] [PATCH v3 2/6] test: Add open_tree test frezidok1
2026-09-07 11:18 ` frezidok1 [this message]
2026-09-07 11:18 ` [pseudo] [PATCH v3 4/6] test: Add open_tree syscall test frezidok1
2026-09-07 11:18 ` [pseudo] [PATCH v3 5/6] test: Add open_tree_attr " frezidok1
2026-09-07 11:18 ` [pseudo] [PATCH v3 6/6] ports/linux/guts: Add open_tree_attr wrapper frezidok1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260907111843.26746-4-frezidok1@gmail.com \
--to=frezidok1@gmail.com \
--cc=yocto-patches@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.