This change would require a lot of 64-bit ingw-w64 libraries and
executables to be recompiled, and possibly require code changes, right?
Does the use of 64-bit ints for PIDs actually cause any bugs?
--David
On Feb 28, 2016 7:14 AM, "Stefan Weil" <[email protected]> wrote:
> Windows always uses 32 bit (int or DWORD) process ids,
> even on 64 bit Windows.
>
> Signed-off-by: Stefan Weil <[email protected]>
> ---
> mingw-w64-headers/crt/sys/types.h | 5 -----
> mingw-w64-libraries/winpthreads/include/pthread_compat.h | 6 +-----
> 2 files changed, 1 insertion(+), 10 deletions(-)
>
> diff --git a/mingw-w64-headers/crt/sys/types.h
> b/mingw-w64-headers/crt/sys/types.h
> index bc0a54f..be7a01b 100644
> --- a/mingw-w64-headers/crt/sys/types.h
> +++ b/mingw-w64-headers/crt/sys/types.h
> @@ -56,12 +56,7 @@ typedef unsigned int dev_t;
>
> #ifndef _PID_T_
> #define _PID_T_
> -#ifndef _WIN64
> typedef int _pid_t;
> -#else
> -__MINGW_EXTENSION
> -typedef __int64 _pid_t;
> -#endif
>
> #ifndef NO_OLDNAMES
> #undef pid_t
> diff --git a/mingw-w64-libraries/winpthreads/include/pthread_compat.h
> b/mingw-w64-libraries/winpthreads/include/pthread_compat.h
> index 8a3eb61..8d519ea 100644
> --- a/mingw-w64-libraries/winpthreads/include/pthread_compat.h
> +++ b/mingw-w64-libraries/winpthreads/include/pthread_compat.h
> @@ -70,11 +70,7 @@
>
> #include "pthread_time.h"
>
> -#ifdef _WIN64
> -typedef __int64 pid_t;
> -#else
> -typedef int pid_t;
> -#endif
> +typedef int pid_t;
> typedef int clockid_t;
>
> #define WINPTHREADS_INLINE __inline
> --
> 2.1.4
>
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public