Re: [PATCH] linux-user: Implement fchmodat2 syscall

2025-07-10 Thread Richard Henderson
On 7/10/25 05:31, Peter Maydell wrote: The fchmodat2 syscall is new from Linux 6.6; it is like the existing fchmodat syscall except that it takes a flags parameter. Signed-off-by: Peter Maydell --- v1->v2: don't bother with trying to fall back to libc fchmodat(); add missing braces for if() Q

Re: [PATCH] linux-user: Implement fchmodat2 syscall

2025-07-10 Thread Richard Henderson
On 7/10/25 05:31, Peter Maydell wrote: The fchmodat2 syscall is new from Linux 6.6; it is like the existing fchmodat syscall except that it takes a flags parameter. Signed-off-by: Peter Maydell --- v1->v2: don't bother with trying to fall back to libc fchmodat(); add missing braces for if() ---

Re: [PATCH] linux-user: Implement fchmodat2 syscall

2025-07-10 Thread Philippe Mathieu-Daudé
On 10/7/25 13:31, Peter Maydell wrote: The fchmodat2 syscall is new from Linux 6.6; it is like the existing fchmodat syscall except that it takes a flags parameter. Signed-off-by: Peter Maydell --- v1->v2: don't bother with trying to fall back to libc fchmodat(); add missing braces for if() ---

[PATCH] linux-user: Implement fchmodat2 syscall

2025-07-10 Thread Peter Maydell
The fchmodat2 syscall is new from Linux 6.6; it is like the existing fchmodat syscall except that it takes a flags parameter. Signed-off-by: Peter Maydell --- v1->v2: don't bother with trying to fall back to libc fchmodat(); add missing braces for if() --- linux-user/syscall.c | 13 +

Re: [PATCH] linux-user: Implement fchmodat2 syscall

2025-07-09 Thread Richard Henderson
On 7/8/25 10:10, Peter Maydell wrote: You could argue that the fallback-to-libc-fchmodat here isn't worth bothering with, I guess. Indeed not. Support for fchmodat2 is at least 2 years old already. r~

[PATCH] linux-user: Implement fchmodat2 syscall

2025-07-08 Thread Peter Maydell
The fchmodat2 syscall is new from Linux 6.6; it is like the existing fchmodat syscall except that it takes a flags parameter. If we have the host fchmodat2 syscall, we implement it as a direct passthrough call; if we do not, then we can fall back to using the libc fchmodat() function. The fallback