Re: [PATCH v7 08/11] openat_proc_name: port to OS/2 kLIBC

2016-01-19 Thread KO Myung-Hun
Ping ? -- KO Myung-Hun Using Mozilla SeaMonkey 2.7.2 Under OS/2 Warp 4 for Korean with FixPak #15 In VirtualBox v4.1.32 on Intel Core i7-3615QM 2.30GHz with 8GB RAM Korean OS/2 User Community : http://www.ecomstation.co.kr

Re: [PATCH v7 08/11] openat_proc_name: port to OS/2 kLIBC

2016-01-15 Thread KO Myung-Hun
Hi/2. Not work here. I attach the fix. Paul Eggert wrote: > Thanks, I installed the attached somewhat-different patch. It also > incorporates the ChangeLog fixes from your earlier patches that I forgot > to install earlier. Please give it a try. -- KO Myung-Hun Using Mozilla SeaMonkey 2.7.2 Un

Re: [PATCH v7 08/11] openat_proc_name: port to OS/2 kLIBC

2016-01-15 Thread Paul Eggert
Thanks, I installed the attached somewhat-different patch. It also incorporates the ChangeLog fixes from your earlier patches that I forgot to install earlier. Please give it a try. From 022ffb2ee017a738d6ba51e3e7683efe80be504d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 17 Jan 2015 18

Re: [PATCH v7 08/11] openat_proc_name: port to OS/2 kLIBC

2016-01-14 Thread KO Myung-Hun
Hi/2. Paul Eggert wrote: > On 01/13/2016 06:23 PM, KO Myung-Hun wrote: > >> +if (__libc_Back_ioFHToPath (fd, path, sizeof (path))) > > Don't parenthesize the argument of sizeof here. > >> +sprintf (result, "%s/%s", path, file); > > This won't work if PATH or FILE is longer than INT_MAX

Re: [PATCH v7 08/11] openat_proc_name: port to OS/2 kLIBC

2016-01-14 Thread Paul Eggert
On 01/13/2016 06:23 PM, KO Myung-Hun wrote: +if (__libc_Back_ioFHToPath (fd, path, sizeof (path))) Don't parenthesize the argument of sizeof here. +sprintf (result, "%s/%s", path, file); This won't work if PATH or FILE is longer than INT_MAX bytes. Please just use memcpy or strcpy

[PATCH v7 08/11] openat_proc_name: port to OS/2 kLIBC

2016-01-13 Thread KO Myung-Hun
OS/2 kLIBC provides a function to retrive a path from a fd. Use it instead of /proc/self/fd. * lib/openat-proc.c (openat_proc_name): Port to OS/2 kLIBC with __libc_Back_ioFHToPath(). --- lib/openat-proc.c | 29 + 1 file changed, 29 insertions(+) diff --git a/lib/opena