Re: [Mingw-w64-public] winpthreads-api and GetLastError/SetLastError

2012-05-05 Thread niXman
2012/5/5 niXman : > 2012/5/5 Kai Tietz: >> Could somebody do tests if the LastError state can be really changed? > > About what tests there is a speech? I suppose that not only pthread_getspecific() changes last_error. As I already spoke earlier, winpthreads-api shan't change last_error value beca

Re: [Mingw-w64-public] winpthreads-api and GetLastError/SetLastError

2012-05-05 Thread niXman
2012/5/5 Kai Tietz: > Could somebody do tests if the LastError state can be really changed? About what tests there is a speech? -- Regards,   niXman -- Live Security Virtual Conference Exclusive live event will cover a

Re: [Mingw-w64-public] winpthreads-api and GetLastError/SetLastError

2012-05-05 Thread Kai Tietz
2012/5/5 Ozkan Sezer : > On 5/4/12, niXman wrote: >> Hi, >> >> This simple code change the last error which sometimes is not allowed: >>> #include >>> int main() { >>>      SetLastError(33); >>>      pthread_getspecific(0); >>>      return GetLastError(); >>> } >>> >>> $ gcc test.c -otest >>> $ .

Re: [Mingw-w64-public] winpthreads-api and GetLastError/SetLastError

2012-05-04 Thread Ozkan Sezer
On 5/4/12, niXman wrote: > Hi, > > This simple code change the last error which sometimes is not allowed: >> #include >> int main() { >> SetLastError(33); >> pthread_getspecific(0); >> return GetLastError(); >> } >> >> $ gcc test.c -otest >> $ ./test; echo $? >> $ 0 > > Tell me ple

[Mingw-w64-public] winpthreads-api and GetLastError/SetLastError

2012-05-04 Thread niXman
Hi, This simple code change the last error which sometimes is not allowed: > #include > int main() { > SetLastError(33); > pthread_getspecific(0); > return GetLastError(); > } > > $ gcc test.c -otest > $ ./test; echo $? > $ 0 Tell me please, have anyone faced with this problem?