Thrift: Better handling of strerror_r.
authorDavid Reiss <dreiss@apache.org>
Wed, 22 Aug 2007 23:20:24 +0000 (23:20 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 22 Aug 2007 23:20:24 +0000 (23:20 +0000)
commitbc3dddb91c1e26ecfa290c10f9a5950adc8dedd1
tree72dd53e97fb611ea7eaafaa6b6328673a1e832b5
parent95aaaf1852dd245e106a5879eb5b9baba32ce5a8
Thrift: Better handling of strerror_r.

Summary:
Someone thought it would be a good idea to have two different signatures
for strerror_r, with subtly different semantics (strlcpy = smart).
We now work properly with either of them.

Also fixed a test to work on 32-bit, you sloppy <expletive>s.

Reviewed By: mcslee

Test Plan:
Rebuild thrift.
Force one of these errors to be thrown.

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665215 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/Makefile.am
lib/cpp/configure.ac
lib/cpp/src/transport/TServerSocket.cpp
lib/cpp/src/transport/TSocket.cpp
lib/cpp/src/transport/TTransportException.cpp [new file with mode: 0644]
lib/cpp/src/transport/TTransportException.h
test/cpp/src/TestClient.cpp
test/cpp/src/TestServer.cpp