Re: [Mingw-w64-public] getpid issue

2014-11-07 Thread Dongsheng Song
On Sat, Nov 8, 2014 at 12:05 AM, Ozkan Sezer wrote: > On 11/7/14, Dongsheng Song wrote: >> On Fri, Nov 7, 2014 at 7:51 PM, Ozkan Sezer wrote: >>> On 11/7/14, Ray Donnelly wrote: On Fri, Nov 7, 2014 at 11:10 AM, Ozkan Sezer wrote: > On 11/7/14, Ruben Van Boxem wrote: >> 2014-11-07

Re: [Mingw-w64-public] getpid issue

2014-11-07 Thread Ozkan Sezer
On 11/7/14, Dongsheng Song wrote: > On Fri, Nov 7, 2014 at 7:51 PM, Ozkan Sezer wrote: >> On 11/7/14, Ray Donnelly wrote: >>> On Fri, Nov 7, 2014 at 11:10 AM, Ozkan Sezer wrote: On 11/7/14, Ruben Van Boxem wrote: > 2014-11-07 9:25 GMT+01:00 Ozkan Sezer : > >> On 11/7/14, Dongs

Re: [Mingw-w64-public] [PATCH] Copy getpid declaration in process.h to unistd.h

2014-11-07 Thread Dongsheng Song
On Fri, Nov 7, 2014 at 9:48 PM, Ruben Van Boxem wrote: > 2014-11-07 14:45 GMT+01:00 Dongsheng Song : >> >> On Fri, Nov 7, 2014 at 4:44 PM, lh_mouse wrote: >> > Minor suggestion: use the word `DECLARED` instead `DEFINED` please. >> > >> >> I don't known which is better:-) >> Here is some stats: >>

Re: [Mingw-w64-public] getpid issue

2014-11-07 Thread Dongsheng Song
On Fri, Nov 7, 2014 at 7:51 PM, Ozkan Sezer wrote: > On 11/7/14, Ray Donnelly wrote: >> On Fri, Nov 7, 2014 at 11:10 AM, Ozkan Sezer wrote: >>> On 11/7/14, Ruben Van Boxem wrote: 2014-11-07 9:25 GMT+01:00 Ozkan Sezer : > On 11/7/14, Dongsheng Song wrote: > > If we define _POS

Re: [Mingw-w64-public] [PATCH] Copy getpid declaration in process.h to unistd.h

2014-11-07 Thread Ruben Van Boxem
2014-11-07 14:45 GMT+01:00 Dongsheng Song : > On Fri, Nov 7, 2014 at 4:44 PM, lh_mouse wrote: > > Minor suggestion: use the word `DECLARED` instead `DEFINED` please. > > > > I don't known which is better:-) > Here is some stats: > > $ grep -r "_DEFINED[^A-Z0-9]" . | wc -l > 26145 > > $ grep -r "_

Re: [Mingw-w64-public] [PATCH] Copy getpid declaration in process.h to unistd.h

2014-11-07 Thread Dongsheng Song
On Fri, Nov 7, 2014 at 4:44 PM, lh_mouse wrote: > Minor suggestion: use the word `DECLARED` instead `DEFINED` please. > I don't known which is better:-) Here is some stats: $ grep -r "_DEFINED[^A-Z0-9]" . | wc -l 26145 $ grep -r "_DECLARED[^A-Z0-9]" . | wc -l 15 ---

Re: [Mingw-w64-public] getpid issue

2014-11-07 Thread Ozkan Sezer
On 11/7/14, Ray Donnelly wrote: > On Fri, Nov 7, 2014 at 11:10 AM, Ozkan Sezer wrote: >> On 11/7/14, Ruben Van Boxem wrote: >>> 2014-11-07 9:25 GMT+01:00 Ozkan Sezer : >>> On 11/7/14, Dongsheng Song wrote: > If we define _POSIX_, then getpid (process.h) was hidden. > Is it correc

Re: [Mingw-w64-public] getpid issue

2014-11-07 Thread Ray Donnelly
On Fri, Nov 7, 2014 at 11:10 AM, Ozkan Sezer wrote: > On 11/7/14, Ruben Van Boxem wrote: >> 2014-11-07 9:25 GMT+01:00 Ozkan Sezer : >> >>> On 11/7/14, Dongsheng Song wrote: >>> > If we define _POSIX_, then getpid (process.h) was hidden. >>> > Is it correct ? >>> > >>> > PS: MSVC 2012 is the last

Re: [Mingw-w64-public] getpid issue

2014-11-07 Thread Ozkan Sezer
On 11/7/14, Ruben Van Boxem wrote: > 2014-11-07 9:25 GMT+01:00 Ozkan Sezer : > >> On 11/7/14, Dongsheng Song wrote: >> > If we define _POSIX_, then getpid (process.h) was hidden. >> > Is it correct ? >> > >> > PS: MSVC 2012 is the last compiler which use _POSIX_, MSVC 2013 do not >> > use _POSIX_

Re: [Mingw-w64-public] [PATCH] Copy getpid declaration in process.h to unistd.h

2014-11-07 Thread lh_mouse
Minor suggestion: use the word `DECLARED` instead `DEFINED` please. -- Best regards, lh_mouse 2014-11-07 - 发件人:Dongsheng Song 发送日期:2014-11-07 16:01 收件人:mingw64 抄送: 主题:[Mingw-w64-public] [PA

Re: [Mingw-w64-public] getpid issue

2014-11-07 Thread Ruben Van Boxem
2014-11-07 9:25 GMT+01:00 Ozkan Sezer : > On 11/7/14, Dongsheng Song wrote: > > If we define _POSIX_, then getpid (process.h) was hidden. > > Is it correct ? > > > > PS: MSVC 2012 is the last compiler which use _POSIX_, MSVC 2013 do not > > use _POSIX_ anymore. > > MSVC 2012/2013 guard getpid wit

Re: [Mingw-w64-public] getpid issue

2014-11-07 Thread Ozkan Sezer
On 11/7/14, Dongsheng Song wrote: > If we define _POSIX_, then getpid (process.h) was hidden. > Is it correct ? > > PS: MSVC 2012 is the last compiler which use _POSIX_, MSVC 2013 do not > use _POSIX_ anymore. > MSVC 2012/2013 guard getpid with !__STDC__. I believe (but not necessarily correct ab

Re: [Mingw-w64-public] [PATCH] Copy getpid declaration in process.h to unistd.h

2014-11-07 Thread Kai Tietz
Hi, 2014-11-07 9:01 GMT+01:00 Dongsheng Song : > OK for apply ? Patch is ok. Thanks, Kai -- ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://li

Re: [Mingw-w64-public] [PATCH] rand_r location

2014-11-07 Thread Kai Tietz
Looks good to me. Please apply to trunk. Regards, Kai -- ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/m

[Mingw-w64-public] [PATCH] Copy getpid declaration in process.h to unistd.h

2014-11-07 Thread Dongsheng Song
OK for apply ? --- mingw-w64-headers/crt/process.h | 3 +++ mingw-w64-headers/crt/unistd.h | 5 + 2 files changed, 8 insertions(+) diff --git a/mingw-w64-headers/crt/process.h b/mingw-w64-headers/crt/process.h index f43befb..5f635c8 100644 --- a/mingw-w64-headers/crt/process.h +++ b/mingw-w