Re: [PATCH 04/51] semihosting/arm-compat-semi: Avoid using hardcoded /tmp

2022-09-01 Thread Richard Henderson
On 9/1/22 08:11, Bin Meng wrote: -len = asprintf(, "/tmp/qemu-%x%02x", getpid(), (int)arg1 & 0xff); +len = asprintf(, "%s/qemu-%x%02x", g_get_tmp_dir(), + getpid(), (int)arg1 & 0xff); This is most likely wrong. I am not familiar with semihosting, but I

Re: [PATCH 04/51] semihosting/arm-compat-semi: Avoid using hardcoded /tmp

2022-09-01 Thread Bin Meng
On Wed, Aug 31, 2022 at 8:59 PM Marc-André Lureau wrote: > > Hi > > On Wed, Aug 24, 2022 at 1:54 PM Bin Meng wrote: >> >> From: Bin Meng >> >> Use g_get_tmp_dir() to get the directory to use for temporary files. >> >> Signed-off-by: Bin Meng >> --- >> >> semihosting/arm-compat-semi.c | 3 ++-

Re: [PATCH 04/51] semihosting/arm-compat-semi: Avoid using hardcoded /tmp

2022-08-31 Thread Marc-André Lureau
Hi On Wed, Aug 24, 2022 at 1:54 PM Bin Meng wrote: > From: Bin Meng > > Use g_get_tmp_dir() to get the directory to use for temporary files. > > Signed-off-by: Bin Meng > --- > > semihosting/arm-compat-semi.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git

[PATCH 04/51] semihosting/arm-compat-semi: Avoid using hardcoded /tmp

2022-08-24 Thread Bin Meng
From: Bin Meng Use g_get_tmp_dir() to get the directory to use for temporary files. Signed-off-by: Bin Meng --- semihosting/arm-compat-semi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/semihosting/arm-compat-semi.c b/semihosting/arm-compat-semi.c index