Condor defines its own netdb-related functions (proxy functions) for its own DNS system called NO_DNS. -{section: Returning a pointer of a static buffer inside a function} - -It is quite common practice in Condor source code that returning a pointer of a static buffer in a function. It was perfectly fine in a world that pthread is rare and multi-core is unknown. It is obviously non-re-entrant and non-thread-safe. Well, I could do as it was. But, I am slightly uncomfortable of writing such a function. So, I decided to use MyString instead of returning a pointer of a static buffer. - {section: Test required} Don't forget below lists. @@ -173,3 +169,7 @@ The possible case for a failure of my_addr() is that when Sock class did not assign a socket descriptor. In this case, peer_addr() can also fail. + +{subsection: Returning a pointer of a static buffer inside a function} + +It is quite common practice in Condor source code that returning a pointer of a static buffer in a function. It was perfectly fine in a world that pthread is rare and multi-core is unknown. It is obviously non-re-entrant and non-thread-safe. Well, I could do as it was. But, I am slightly uncomfortable of writing such a function. So, I decided to use MyString instead of returning a pointer of a static buffer.