Changeset 1976
- Timestamp:
- 02/06/11 12:11:34 (2 years ago)
- Location:
- trunk/pdns
- Files:
-
- 106 modified
-
modules/db2backend/DB2Backend.cc (modified) (1 diff)
-
modules/db2backend/DB2Backend.hh (modified) (1 diff)
-
modules/db2backend/DB2Exception.hh (modified) (1 diff)
-
modules/geobackend/geobackend.hh (modified) (1 diff)
-
modules/geobackend/ippreftree.hh (modified) (1 diff)
-
modules/gmysqlbackend/gmysqlbackend.cc (modified) (1 diff)
-
modules/gmysqlbackend/gmysqlbackend.hh (modified) (1 diff)
-
modules/gmysqlbackend/smysql.cc (modified) (1 diff)
-
modules/goraclebackend/goraclebackend.cc (modified) (1 diff)
-
modules/goraclebackend/goraclebackend.hh (modified) (1 diff)
-
modules/goraclebackend/soracle.cc (modified) (1 diff)
-
modules/gpgsqlbackend/gpgsqlbackend.cc (modified) (1 diff)
-
modules/gpgsqlbackend/gpgsqlbackend.hh (modified) (1 diff)
-
modules/gpgsqlbackend/spgsql.cc (modified) (1 diff)
-
modules/gpgsqlbackend/spgsql.hh (modified) (1 diff)
-
modules/mydnsbackend/mydnsbackend.cc (modified) (1 diff)
-
modules/mydnsbackend/mydnsbackend.hh (modified) (1 diff)
-
modules/mysqlbackend/mysqlcbackend.cc (modified) (1 diff)
-
modules/mysqlbackend/mysqlcbackend.hh (modified) (1 diff)
-
modules/oraclebackend/oraclebackend.cc (modified) (1 diff)
-
modules/oraclebackend/oraclebackend.hh (modified) (1 diff)
-
modules/pdnsbackend/pdnsbackend.cc (modified) (1 diff)
-
modules/pdnsbackend/pdnsbackend.hh (modified) (1 diff)
-
modules/pipebackend/coprocess.hh (modified) (1 diff)
-
modules/pipebackend/pipebackend.cc (modified) (1 diff)
-
modules/pipebackend/pipebackend.hh (modified) (1 diff)
-
modules/xdbbackend/xgdbm.cc (modified) (1 diff)
-
modules/xdbbackend/xtdb.cc (modified) (1 diff)
-
pdns/ahuexception.hh (modified) (1 diff)
-
pdns/anadns.hh (modified) (1 diff)
-
pdns/argtng.hh (modified) (1 diff)
-
pdns/arguments.hh (modified) (1 diff)
-
pdns/backends/bind/bindbackend2.hh (modified) (1 diff)
-
pdns/backends/bind/bindparser.hh (modified) (1 diff)
-
pdns/backends/bind/huffman.hh (modified) (1 diff)
-
pdns/backends/bind/zone2ldap.cc (modified) (1 diff)
-
pdns/backends/bind/zone2sql.cc (modified) (2 diffs)
-
pdns/backends/gsql/gsqlbackend.cc (modified) (1 diff)
-
pdns/backends/gsql/gsqlbackend.hh (modified) (1 diff)
-
pdns/backends/gsql/ssql.hh (modified) (1 diff)
-
pdns/base32.cc (modified) (1 diff)
-
pdns/binpatch.cc (modified) (1 diff)
-
pdns/communicator.hh (modified) (3 diffs)
-
pdns/devpollmplexer.cc (modified) (1 diff)
-
pdns/dnsbackend.hh (modified) (1 diff)
-
pdns/dnsdemog.cc (modified) (1 diff)
-
pdns/dnsgram.cc (modified) (1 diff)
-
pdns/dnspacket.cc (modified) (1 diff)
-
pdns/dnsparser.cc (modified) (3 diffs)
-
pdns/dnsparser.hh (modified) (1 diff)
-
pdns/dnspcap.hh (modified) (1 diff)
-
pdns/dnsproxy.hh (modified) (1 diff)
-
pdns/dnsrecords.hh (modified) (1 diff)
-
pdns/dnsreplay.cc (modified) (3 diffs)
-
pdns/dnsscan.cc (modified) (1 diff)
-
pdns/dnsscope.cc (modified) (1 diff)
-
pdns/dnssecinfra.hh (modified) (1 diff)
-
pdns/dnswasher.cc (modified) (1 diff)
-
pdns/dnswriter.cc (modified) (1 diff)
-
pdns/dnswriter.hh (modified) (1 diff)
-
pdns/dynhandler.hh (modified) (1 diff)
-
pdns/dynlistener.hh (modified) (1 diff)
-
pdns/dynloader.cc (modified) (1 diff)
-
pdns/dynmessenger.hh (modified) (1 diff)
-
pdns/epollmplexer.cc (modified) (1 diff)
-
pdns/htimer.cc (modified) (1 diff)
-
pdns/inflighter.cc (modified) (1 diff)
-
pdns/iputils.hh (modified) (2 diffs)
-
pdns/kqueuemplexer.cc (modified) (1 diff)
-
pdns/logger.cc (modified) (1 diff)
-
pdns/logger.hh (modified) (2 diffs)
-
pdns/lua-pdns-recursor.cc (modified) (1 diff)
-
pdns/lwres.hh (modified) (1 diff)
-
pdns/md5.cc (modified) (1 diff)
-
pdns/misc.hh (modified) (2 diffs)
-
pdns/nameserver.hh (modified) (2 diffs)
-
pdns/notify.cc (modified) (1 diff)
-
pdns/nproxy.cc (modified) (1 diff)
-
pdns/packetcache.hh (modified) (2 diffs)
-
pdns/packethandler.hh (modified) (1 diff)
-
pdns/pdns_hw.cc (modified) (1 diff)
-
pdns/polarrsakeyinfra.cc (modified) (1 diff)
-
pdns/pollmplexer.cc (modified) (1 diff)
-
pdns/portsmplexer.cc (modified) (1 diff)
-
pdns/qtype.hh (modified) (1 diff)
-
pdns/rcpgenerator.hh (modified) (1 diff)
-
pdns/rec_channel.cc (modified) (1 diff)
-
pdns/rec_channel_rec.cc (modified) (1 diff)
-
pdns/rec_control.cc (modified) (1 diff)
-
pdns/recursor_cache.cc (modified) (1 diff)
-
pdns/recursor_memcached.cc (modified) (1 diff)
-
pdns/resolver.hh (modified) (1 diff)
-
pdns/selectmplexer.cc (modified) (1 diff)
-
pdns/sstuff.hh (modified) (1 diff)
-
pdns/statbag.cc (modified) (1 diff)
-
pdns/statbag.hh (modified) (1 diff)
-
pdns/tcpreceiver.hh (modified) (1 diff)
-
pdns/ueberbackend.hh (modified) (1 diff)
-
pdns/unix_utility.cc (modified) (1 diff)
-
pdns/utility.hh (modified) (1 diff)
-
pdns/webserver.hh (modified) (1 diff)
-
pdns/win32_dynloader.cc (modified) (1 diff)
-
pdns/win32_logger.cc (modified) (1 diff)
-
pdns/win32_rec_channel.cc (modified) (1 diff)
-
pdns/ws.hh (modified) (1 diff)
-
pdns/zoneparser-tng.hh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/modules/db2backend/DB2Backend.cc
r1471 r1976 6 6 #include <sstream> 7 7 8 using namespace std; 8 #include "namespaces.hh" 9 9 10 10 #include <dns.hh> -
trunk/pdns/modules/db2backend/DB2Backend.hh
r477 r1976 7 7 #include <map> 8 8 9 using namespace std; 9 #include "namespaces.hh" 10 10 11 11 #include <sqlcli1.h> -
trunk/pdns/modules/db2backend/DB2Exception.hh
r477 r1976 6 6 #include <string> 7 7 8 using namespace std; 8 #include "namespaces.hh" 9 9 10 10 #include <sqlcli1.h> -
trunk/pdns/modules/geobackend/geobackend.hh
r1471 r1976 16 16 #include "ippreftree.hh" 17 17 18 using namespace std; 18 #include "namespaces.hh" 19 19 20 20 class GeoRecord { -
trunk/pdns/modules/geobackend/ippreftree.hh
r1471 r1976 11 11 #include <stdint.h> 12 12 13 using namespace std; 13 #include "namespaces.hh" 14 14 15 15 // Use old style C structs for efficiency -
trunk/pdns/modules/gmysqlbackend/gmysqlbackend.cc
r1804 r1976 3 3 #include <map> 4 4 5 using namespace std; 5 #include "pdns/namespaces.hh" 6 6 7 7 #include "pdns/dns.hh" -
trunk/pdns/modules/gmysqlbackend/gmysqlbackend.hh
r1896 r1976 4 4 #include "pdns/backends/gsql/gsqlbackend.hh" 5 5 6 using namespace std; 6 #include "pdns/namespaces.hh" 7 7 8 8 /** The gMySQLBackend is a DNSBackend that can answer DNS related questions. It looks up data -
trunk/pdns/modules/gmysqlbackend/smysql.cc
r1471 r1976 8 8 #include "pdns/logger.hh" 9 9 #include "pdns/dns.hh" 10 using namespace std; 10 #include "pdns/namespaces.hh" 11 11 12 12 bool SMySQL::s_dolog; -
trunk/pdns/modules/goraclebackend/goraclebackend.cc
r1471 r1976 3 3 #include <map> 4 4 5 using namespace std; 5 #include "namespaces.hh" 6 6 7 7 #include "pdns/dns.hh" -
trunk/pdns/modules/goraclebackend/goraclebackend.hh
r337 r1976 4 4 #include "pdns/backends/gsql/gsqlbackend.hh" 5 5 6 using namespace std; 6 #include "namespaces.hh" 7 7 8 8 /** The gOracleBackend is a DNSBackend that can answer DNS related questions. It looks up data -
trunk/pdns/modules/goraclebackend/soracle.cc
r1471 r1976 9 9 #include "pdns/dns.hh" 10 10 #include <regex.h> 11 using namespace std; 11 #include "namespaces.hh" 12 12 13 13 bool SOracle::s_dolog; -
trunk/pdns/modules/gpgsqlbackend/gpgsqlbackend.cc
r1807 r1976 2 2 #include <map> 3 3 4 using namespace std; 4 #include "pdns/namespaces.hh" 5 5 6 6 #include "pdns/dns.hh" -
trunk/pdns/modules/gpgsqlbackend/gpgsqlbackend.hh
r78 r1976 3 3 #include "pdns/backends/gsql/gsqlbackend.hh" 4 4 5 using namespace std; 5 #include "pdns/namespaces.hh" 6 6 7 7 /** The gPgSQLBackend is a DNSBackend that can answer DNS related questions. It looks up data -
trunk/pdns/modules/gpgsqlbackend/spgsql.cc
r1471 r1976 8 8 #include "pdns/dns.hh" 9 9 10 using namespace std; 10 #include "pdns/namespaces.hh" 11 11 12 12 bool SPgSQL::s_dolog; -
trunk/pdns/modules/gpgsqlbackend/spgsql.hh
r1471 r1976 3 3 #ifndef SPGSQL_HH 4 4 #define SPGSQL_HH 5 using namespace std; 5 #include "pdns/namespaces.hh" 6 6 #include "pdns/backends/gsql/ssql.hh" 7 7 -
trunk/pdns/modules/mydnsbackend/mydnsbackend.cc
r1471 r1976 25 25 #include <sstream> 26 26 27 using namespace std; 27 #include "namespaces.hh" 28 28 29 29 #include <pdns/dns.hh> -
trunk/pdns/modules/mydnsbackend/mydnsbackend.hh
r1471 r1976 5 5 #include <map> 6 6 7 using namespace std; 7 #include "namespaces.hh" 8 8 9 9 #include <modules/gmysqlbackend/smysql.hh> -
trunk/pdns/modules/mysqlbackend/mysqlcbackend.cc
r1471 r1976 6 6 #include <sstream> 7 7 8 using namespace std; 8 #include "namespaces.hh" 9 9 10 10 #include <pdns/dns.hh> -
trunk/pdns/modules/mysqlbackend/mysqlcbackend.hh
r180 r1976 5 5 #include <map> 6 6 7 using namespace std; 7 #include "namespaces.hh" 8 8 9 9 #include <mysql.h> -
trunk/pdns/modules/oraclebackend/oraclebackend.cc
r1922 r1976 12 12 #include <string> 13 13 14 using namespace std; 14 #include "namespaces.hh" 15 15 16 16 #include "pdns/dns.hh" -
trunk/pdns/modules/oraclebackend/oraclebackend.hh
r1922 r1976 7 7 #include <oci.h> 8 8 9 using namespace std; 9 #include "namespaces.hh" 10 10 11 11 class OracleException : public DBException -
trunk/pdns/modules/pdnsbackend/pdnsbackend.cc
r1906 r1976 7 7 #include <sstream> 8 8 9 using namespace std; 9 #include "namespaces.hh" 10 10 11 11 #include <pdns/dns.hh> -
trunk/pdns/modules/pdnsbackend/pdnsbackend.hh
r1317 r1976 7 7 #include <map> 8 8 9 using namespace std; 9 #include "namespaces.hh" 10 10 11 11 #include <mysql.h> -
trunk/pdns/modules/pipebackend/coprocess.hh
r569 r1976 6 6 #include <string> 7 7 8 using namespace std;8 #include "pdns/namespaces.hh" 9 9 10 10 class CoProcess -
trunk/pdns/modules/pipebackend/pipebackend.cc
r1833 r1976 11 11 #include "coprocess.hh" 12 12 13 using namespace std; 13 #include "pdns/namespaces.hh" 14 14 15 15 #include <pdns/dns.hh> -
trunk/pdns/modules/pipebackend/pipebackend.hh
r525 r1976 12 12 #include <regex.h> 13 13 #include <boost/shared_ptr.hpp> 14 using namespace boost;15 14 16 using namespace std; 15 #include "pdns/namespaces.hh" 17 16 18 17 /** very small regex wrapper */ -
trunk/pdns/modules/xdbbackend/xgdbm.cc
r1471 r1976 7 7 #include <iostream> 8 8 9 using namespace std; 9 #include "namespaces.hh" 10 10 11 11 GDBM_FILE XGDBMWrapper::s_db; -
trunk/pdns/modules/xdbbackend/xtdb.cc
r1471 r1976 10 10 11 11 12 using namespace std; 12 #include "namespaces.hh" 13 13 14 14 TDB_CONTEXT *XTDBWrapper::s_db; -
trunk/pdns/pdns/ahuexception.hh
r681 r1976 23 23 #include<string> 24 24 25 using namespace std; 25 #include "namespaces.hh" 26 26 27 27 //! Generic Exception thrown -
trunk/pdns/pdns/anadns.hh
r1427 r1976 9 9 10 10 #include "namespaces.hh" 11 using namespace std; 11 #include "namespaces.hh" 12 12 13 13 struct QuestionIdentifier -
trunk/pdns/pdns/argtng.hh
r1472 r1976 7 7 #include <boost/shared_ptr.hpp> 8 8 #include <boost/regex.hpp> 9 using namespace std; 9 #include "namespaces.hh" 10 10 #include "namespaces.hh" 11 11 -
trunk/pdns/pdns/arguments.hh
r1348 r1976 33 33 #endif 34 34 35 using namespace std; 35 #include "namespaces.hh" 36 36 37 37 typedef AhuException ArgException; -
trunk/pdns/pdns/backends/bind/bindbackend2.hh
r1957 r1976 35 35 #include "misc.hh" 36 36 37 using namespace std; 37 #include "namespaces.hh" 38 38 using namespace boost; 39 39 using namespace ::boost::multi_index; -
trunk/pdns/pdns/backends/bind/bindparser.hh
r1400 r1976 24 24 #include <set> 25 25 26 using namespace std; 26 #include "namespaces.hh" 27 27 28 28 class BindDomainInfo -
trunk/pdns/pdns/backends/bind/huffman.hh
r681 r1976 26 26 #include "../../ahuexception.hh" 27 27 28 using namespace std; 28 #include "namespaces.hh" 29 29 30 30 class HuffmanCodec -
trunk/pdns/pdns/backends/bind/zone2ldap.cc
r1472 r1976 155 155 { 156 156 #if __GNUC__ >= 3 157 ios_base::sync_with_stdio( false );157 std::ios_base::sync_with_stdio( false ); 158 158 #endif 159 159 reportAllTypes(); -
trunk/pdns/pdns/backends/bind/zone2sql.cc
r1925 r1976 31 31 #include <stdio.h> 32 32 33 using namespace std; 33 #include "namespaces.hh" 34 34 35 35 #include "dns.hh" … … 199 199 reportFancyTypes(); 200 200 #if __GNUC__ >= 3 201 ios_base::sync_with_stdio(false);201 std::ios_base::sync_with_stdio(false); 202 202 #endif 203 203 lastsoa_qname=" "; -
trunk/pdns/pdns/backends/gsql/gsqlbackend.cc
r1931 r1976 7 7 #include <map> 8 8 9 using namespace std; 9 #include "namespaces.hh" 10 10 11 11 #include "pdns/dns.hh" -
trunk/pdns/pdns/backends/gsql/gsqlbackend.hh
r1791 r1976 3 3 #include "ssql.hh" 4 4 5 using namespace std; 5 #include "../../namespaces.hh" 6 6 7 7 /** The GSQLBackend is a DNSBackend that can answer DNS related questions. It looks up data -
trunk/pdns/pdns/backends/gsql/ssql.hh
r477 r1976 11 11 #include <string> 12 12 #include <vector> 13 using namespace std; 13 #include "../../namespaces.hh" 14 14 15 15 -
trunk/pdns/pdns/base32.cc
r1827 r1976 6 6 #include <iostream> 7 7 #include "base32.hh" 8 using namespace std; 8 #include "namespaces.hh" 9 9 10 10 /* based on freebsd:src/contrib/opie/libopie/btoe.c extract: get bit ranges from a char* */ -
trunk/pdns/pdns/binpatch.cc
r681 r1976 33 33 34 34 35 using namespace std; 35 #include "namespaces.hh" 36 36 37 37 static void imbue(char *pname, const char *search, const string &replace); -
trunk/pdns/pdns/communicator.hh
r1859 r1976 40 40 #include "packethandler.hh" 41 41 42 using namespace std; 42 #include "namespaces.hh" 43 43 44 44 struct SuckRequest … … 114 114 time_t earliest() 115 115 { 116 time_t early= numeric_limits<time_t>::max() - 1;116 time_t early=std::numeric_limits<time_t>::max() - 1; 117 117 for(d_nqueue_t::const_iterator i=d_nqueue.begin();i!=d_nqueue.end();++i) 118 118 early=min(early,i->next); … … 130 130 }; 131 131 132 typedef list<NotificationRequest>d_nqueue_t;132 typedef std::list<NotificationRequest>d_nqueue_t; 133 133 d_nqueue_t d_nqueue; 134 134 -
trunk/pdns/pdns/devpollmplexer.cc
r1432 r1976 9 9 10 10 #include "namespaces.hh" 11 using namespace std; 11 #include "namespaces.hh" 12 12 13 13 class DevPollFDMultiplexer : public FDMultiplexer -
trunk/pdns/pdns/dnsbackend.hh
r1796 r1976 39 39 #include "dns.hh" 40 40 #include <vector> 41 using namespace std; 41 #include "namespaces.hh" 42 42 43 43 class DNSBackend; -
trunk/pdns/pdns/dnsdemog.cc
r1472 r1976 12 12 13 13 #include "namespaces.hh" 14 using namespace std; 14 #include "namespaces.hh" 15 15 16 16 StatBag S; -
trunk/pdns/pdns/dnsgram.cc
r1609 r1976 13 13 14 14 #include "namespaces.hh" 15 using namespace std; 15 #include "namespaces.hh" 16 16 17 17 StatBag S; -
trunk/pdns/pdns/dnspacket.cc
r1958 r1976 399 399 400 400 if(getEDNSOpts(mdp, &edo)) { 401 d_maxreplylen= min(edo.d_packetsize, (uint16_t)1680);401 d_maxreplylen=std::min(edo.d_packetsize, (uint16_t)1680); 402 402 // cerr<<edo.d_Z<<endl; 403 403 if(edo.d_Z & EDNSOpts::DNSSECOK) -
trunk/pdns/pdns/dnsparser.cc
r1900 r1976 265 265 #endif 266 266 } 267 catch( out_of_range &re) {267 catch(std::out_of_range &re) { 268 268 if(validPacket && d_header.tc) { // don't sweat it over truncated packets, but do adjust an, ns and arcount 269 269 if(n < d_header.ancount) { … … 318 318 { 319 319 if(d_pos + len > d_content.size()) 320 throw out_of_range("Attempt to copy outside of packet");320 throw std::out_of_range("Attempt to copy outside of packet"); 321 321 322 322 memcpy(dest, &d_content.at(d_pos), len); … … 575 575 d_notyouroffset += by; 576 576 if(d_notyouroffset > d_packet.length()) 577 throw out_of_range("dns packet out of range: "+lexical_cast<string>(d_notyouroffset) +" > "577 throw std::out_of_range("dns packet out of range: "+lexical_cast<string>(d_notyouroffset) +" > " 578 578 + lexical_cast<string>(d_packet.length()) ); 579 579 } -
trunk/pdns/pdns/dnsparser.hh
r1900 r1976 48 48 */ 49 49 50 using namespace std; 50 #include "namespaces.hh" 51 51 #include "namespaces.hh" 52 52 -
trunk/pdns/pdns/dnspcap.hh
r1175 r1976 14 14 #include <vector> 15 15 #include <boost/format.hpp> 16 using namespace std; 16 #include "namespaces.hh" 17 17 18 18 struct pdns_pcap_file_header { -
trunk/pdns/pdns/dnsproxy.hh
r1549 r1976 32 32 #include "iputils.hh" 33 33 34 using namespace std; 34 #include "namespaces.hh" 35 35 36 36 /** -
trunk/pdns/pdns/dnsrecords.hh
r1936 r1976 27 27 #include <bitset> 28 28 29 using namespace std; 29 #include "namespaces.hh" 30 30 #include "namespaces.hh" 31 31 -
trunk/pdns/pdns/dnsreplay.cc
r1472 r1976 62 62 #include "namespaces.hh" 63 63 using namespace ::boost::multi_index; 64 using namespace std; 64 #include "namespaces.hh" 65 65 66 66 StatBag S; … … 370 370 s_wednserrors++; 371 371 } 372 catch( out_of_range &e)372 catch(std::out_of_range &e) 373 373 { 374 374 s_wednserrors++; … … 552 552 s_origdnserrors++; 553 553 } 554 catch( out_of_range &e)554 catch(std::out_of_range &e) 555 555 { 556 556 s_origdnserrors++; -
trunk/pdns/pdns/dnsscan.cc
r1472 r1976 20 20 #include "namespaces.hh" 21 21 using namespace ::boost::multi_index; 22 using namespace std; 22 #include "namespaces.hh" 23 23 StatBag S; 24 24 -
trunk/pdns/pdns/dnsscope.cc
r1544 r1976 12 12 13 13 #include "namespaces.hh" 14 using namespace std; 14 #include "namespaces.hh" 15 15 16 16 StatBag S; -
trunk/pdns/pdns/dnssecinfra.hh
r1967 r1976 88 88 89 89 90 struct CanonicalCompare: public binary_function<string, string, bool>90 struct CanonicalCompare: public std::binary_function<string, string, bool> 91 91 { 92 92 bool operator()(const std::string& a, const std::string& b) { -
trunk/pdns/pdns/dnswasher.cc
r1472 r1976 17 17 18 18 #include "namespaces.hh" 19 using namespace std; 19 #include "namespaces.hh" 20 20 21 21 StatBag S; -
trunk/pdns/pdns/dnswriter.cc
r1900 r1976 155 155 else 156 156 for (unsigned int i = 0; i < beg->length(); i += 0xff){ 157 d_record.push_back( min((string::size_type)0xffU, beg->length()-i));157 d_record.push_back(std::min((string::size_type)0xffU, beg->length()-i)); 158 158 const uint8_t* ptr=(uint8_t*)(beg->c_str()) + i; 159 d_record.insert(d_record.end(), ptr, ptr+ min((string::size_type)0xffU, beg->length()-i));159 d_record.insert(d_record.end(), ptr, ptr+ std::min((string::size_type)0xffU, beg->length()-i)); 160 160 } 161 161 } -
trunk/pdns/pdns/dnswriter.hh
r1900 r1976 11 11 #endif 12 12 #include "dns.hh" 13 using namespace std; 13 #include "namespaces.hh" 14 14 15 15 /** this class can be used to write DNS packets. It knows about DNS in the sense that it makes -
trunk/pdns/pdns/dynhandler.hh
r681 r1976 32 32 #endif // WIN32 33 33 34 using namespace std; 34 #include "namespaces.hh" 35 35 36 36 -
trunk/pdns/pdns/dynlistener.hh
r1246 r1976 38 38 #endif // WIN32 39 39 40 using namespace std; 40 #include "namespaces.hh" 41 41 42 42 class DynListener : public boost::noncopyable -
trunk/pdns/pdns/dynloader.cc
r1472 r1976 38 38 #include "statbag.hh" 39 39 #include "misc.hh" 40 using namespace std; 40 #include "namespaces.hh" 41 41 #include "namespaces.hh" 42 42 -
trunk/pdns/pdns/dynmessenger.hh
r1246 r1976 39 39 #include "ahuexception.hh" 40 40 41 using namespace std; 41 #include "namespaces.hh" 42 42 43 43 //! The DynMessenger can send messages to UNIX domain sockets and TCP sockets -
trunk/pdns/pdns/epollmplexer.cc
r1432 r1976 11 11 12 12 #include "namespaces.hh" 13 using namespace std; 13 #include "namespaces.hh" 14 14 15 15 class EpollFDMultiplexer : public FDMultiplexer -
trunk/pdns/pdns/htimer.cc
r1893 r1976 5 5 HTimer::timers_t HTimer::s_timers; 6 6 7 using namespace std; 7 #include "namespaces.hh" 8 8 #include "namespaces.hh" 9 9 -
trunk/pdns/pdns/inflighter.cc
r1717 r1976 11 11 #include <sys/socket.h> 12 12 13 using namespace std; 13 #include "namespaces.hh" 14 14 using namespace boost::multi_index; 15 15 -
trunk/pdns/pdns/iputils.hh
r1638 r1976 37 37 #include <boost/lexical_cast.hpp> 38 38 39 using namespace std; 39 #include "namespaces.hh" 40 40 41 41 union ComboAddress { … … 79 79 } 80 80 81 struct addressOnlyLessThan: public binary_function<string, string, bool>81 struct addressOnlyLessThan: public std::binary_function<string, string, bool> 82 82 { 83 83 bool operator()(const ComboAddress& a, const ComboAddress& b) const -
trunk/pdns/pdns/kqueuemplexer.cc
r1432 r1976 13 13 14 14 #include "namespaces.hh" 15 using namespace std; 15 #include "namespaces.hh" 16 16 17 17 class KqueueFDMultiplexer : public FDMultiplexer -
trunk/pdns/pdns/logger.cc
r680 r1976 24 24 #endif 25 25 26 using namespace std; 26 #include "namespaces.hh" 27 27 28 28 Logger &theL(const string &pname) -
trunk/pdns/pdns/logger.hh
r1472 r1976 37 37 #endif // WIN32 38 38 39 using namespace std; 39 #include "namespaces.hh" 40 40 41 41 //! The Logger class can be used to log messages in various ways. … … 118 118 119 119 #ifndef WIN32 120 Logger& operator<<( ostream & (&)(ostream &)); //!< this is to recognise the endl, and to commit the log120 Logger& operator<<(std::ostream & (&)(std::ostream &)); //!< this is to recognise the endl, and to commit the log 121 121 #else 122 122 // This is a hack to keep MSVC from generating a internal compiler error. -
trunk/pdns/pdns/lua-pdns-recursor.cc
r1636 r1976 41 41 #include <stdexcept> 42 42 #include "logger.hh" 43 using namespace std; 43 #include "namespaces.hh" 44 44 45 45 bool netmaskMatchTable(lua_State* lua, const std::string& ip) -
trunk/pdns/pdns/lwres.hh
r1472 r1976 39 39 #include "ahuexception.hh" 40 40 #include "dns.hh" 41 using namespace std; 41 #include "namespaces.hh" 42 42 43 43 int asendto(const char *data, int len, int flags, const ComboAddress& ip, uint16_t id, -
trunk/pdns/pdns/md5.cc
r1427 r1976 9 9 #include "md5.hh" 10 10 11 using namespace std; 11 #include "namespaces.hh" 12 12 13 13 namespace { -
trunk/pdns/pdns/misc.hh
r1968 r1976 69 69 #include <boost/optional.hpp> 70 70 71 using namespace std; 71 #include "namespaces.hh" 72 72 bool chopOff(string &domain); 73 73 bool chopOffDotted(string &domain); … … 415 415 416 416 417 struct CIStringCompare: public binary_function<string, string, bool>417 struct CIStringCompare: public std::binary_function<string, string, bool> 418 418 { 419 419 bool operator()(const string& a, const string& b) const -
trunk/pdns/pdns/nameserver.hh
r1472 r1976 1 1 /* 2 2 PowerDNS Versatile Database Driven Nameserver 3 Copyright (C) 2005 PowerDNS.COM BV3 Copyright (C) 2005 - 2011 PowerDNS.COM BV 4 4 5 5 This program is free software; you can redistribute it and/or modify it … … 33 33 #include <vector> 34 34 #include "statbag.hh" 35 using namespace std; 35 #include "namespaces.hh" 36 36 37 37 /** This is the main class. It opens a socket on udp port 53 and waits for packets. Those packets can -
trunk/pdns/pdns/notify.cc
r1608 r1976 16 16 #include "namespaces.hh" 17 17 using namespace ::boost::multi_index; 18 using namespace std; 18 #include "namespaces.hh" 19 19 20 20 namespace po = boost::program_options; -
trunk/pdns/pdns/nproxy.cc
r1730 r1976 19 19 #include "namespaces.hh" 20 20 using namespace ::boost::multi_index; 21 using namespace std; 21 #include "namespaces.hh" 22 22 23 23 namespace po = boost::program_options; -
trunk/pdns/pdns/packetcache.hh
r1869 r1976 26 26 #include "dns.hh" 27 27 #include <boost/version.hpp> 28 using namespace std; 28 #include "namespaces.hh" 29 29 using namespace ::boost::multi_index; 30 30 … … 45 45 */ 46 46 47 struct CIBackwardsStringCompare: public binary_function<string, string, bool>47 struct CIBackwardsStringCompare: public std::binary_function<string, string, bool> 48 48 { 49 49 bool operator()(const string& str_a, const string& str_b) const -
trunk/pdns/pdns/packethandler.hh
r1930 r1976 31 31 #include "dnsseckeeper.hh" 32 32 33 using namespace std; 33 #include "namespaces.hh" 34 34 35 35 // silly Solaris people define PC -
trunk/pdns/pdns/pdns_hw.cc
r1711 r1976 12 12 #include <sstream> 13 13 14 using namespace std; 14 #include "namespaces.hh" 15 15 int main() 16 16 { -
trunk/pdns/pdns/polarrsakeyinfra.cc
r1966 r1976 325 325 { 326 326 string keystring; 327 char tmp[ max(mpi_size(&d_context.E), mpi_size(&d_context.N))];327 char tmp[std::max(mpi_size(&d_context.E), mpi_size(&d_context.N))]; 328 328 329 329 mpi_write_binary(&d_context.E, (unsigned char*)tmp, mpi_size(&d_context.E) ); -
trunk/pdns/pdns/pollmplexer.cc
r1911 r1976 8 8 #include "utility.hh" 9 9 #include "namespaces.hh" 10 using namespace std; 10 #include "namespaces.hh" 11 11 12 12 -
trunk/pdns/pdns/portsmplexer.cc
r1622 r1976 13 13 14 14 #include "namespaces.hh" 15 using namespace std; 15 #include "namespaces.hh" 16 16 17 17 class PortsFDMultiplexer : public FDMultiplexer -
trunk/pdns/pdns/qtype.hh
r1944 r1976 25 25 #include <utility> 26 26 27 using namespace std; 27 #include "namespaces.hh" 28 28 29 29 /** The QType class is meant to deal easily with the different kind of resource types, like 'A', 'NS', -
trunk/pdns/pdns/rcpgenerator.hh
r1900 r1976 29 29 #endif 30 30 31 using namespace std; 31 #include "namespaces.hh" 32 32 33 33 class RecordTextException : public runtime_error -
trunk/pdns/pdns/rec_channel.cc
r1675 r1976 12 12 #include "ahuexception.hh" 13 13 14 using namespace std; 14 #include "namespaces.hh" 15 15 16 16 RecursorControlChannel::RecursorControlChannel() -
trunk/pdns/pdns/rec_channel_rec.cc
r1750 r1976 24 24 #endif 25 25 26 using namespace std; 26 #include "namespaces.hh" 27 27 #include "namespaces.hh" 28 28 map<string, const uint32_t*> d_get32bitpointers; -
trunk/pdns/pdns/rec_control.cc
r1943 r1976 22 22 #include "config.h" 23 23 24 using namespace std; 24 #include "namespaces.hh" 25 25 26 26 #ifndef RECURSOR -
trunk/pdns/pdns/recursor_cache.cc
r1748 r1976 9 9 #include "cachecleaner.hh" 10 10 11 using namespace std; 11 #include "namespaces.hh" 12 12 #include "namespaces.hh" 13 13 -
trunk/pdns/pdns/recursor_memcached.cc
r1362 r1976 5 5 #include <boost/lexical_cast.hpp> 6 6 7 using namespace std; 7 #include "namespaces.hh" 8 8 using boost::lexical_cast; 9 9 -
trunk/pdns/pdns/resolver.hh
r1859 r1976 36 36 #include "ahuexception.hh" 37 37 #include "dns.hh" 38 using namespace std; 38 #include "namespaces.hh" 39 39 40 40 class ResolverException : public AhuException -
trunk/pdns/pdns/selectmplexer.cc
r1432 r1976 9 9 10 10 #include "namespaces.hh" 11 using namespace std; 11 #include "namespaces.hh" 12 12 13 13 static FDMultiplexer* make() -
trunk/pdns/pdns/sstuff.hh
r1472 r1976 20 20 #include <boost/utility.hpp> 21 21 #include <csignal> 22 using namespace std; 22 #include "namespaces.hh" 23 23 #include "namespaces.hh" 24 24 -
trunk/pdns/pdns/statbag.cc
r1284 r1976 27 27 #include "lock.hh" 28 28 29 using namespace std; 29 #include "namespaces.hh" 30 30 31 31 StatBag::StatBag() -
trunk/pdns/pdns/statbag.hh
r1284 r1976 24 24 #include <vector> 25 25 #include "lock.hh" 26 using namespace std; 26 #include "namespaces.hh" 27 27 28 28 class StatRing -
trunk/pdns/pdns/tcpreceiver.hh
r1443 r1976 40 40 #endif // WIN32 41 41 42 using namespace std; 42 #include "namespaces.hh" 43 43 44 44 class TCPNameserver -
trunk/pdns/pdns/ueberbackend.hh
r1932 r1976 41 41 #include "dnsbackend.hh" 42 42 43 using namespace std; 43 #include "namespaces.hh" 44 44 45 45 class BackendReporter; -
trunk/pdns/pdns/unix_utility.cc
r1681 r1976 36 36 37 37 38 using namespace std; 38 #include "namespaces.hh" 39 39 40 40 // Closes a socket. -
trunk/pdns/pdns/utility.hh
r1681 r1976 72 72 #include <string> 73 73 74 using namespace std; 74 #include "namespaces.hh" 75 75 76 76 //! A semaphore class. -
trunk/pdns/pdns/webserver.hh
r1629 r1976 23 23 24 24 25 using namespace std; 25 #include "namespaces.hh" 26 26 class Server; 27 27 -
trunk/pdns/pdns/win32_dynloader.cc
r1472 r1976 37 37 #include "statbag.hh" 38 38 #include "misc.hh" 39 using namespace std; 39 #include "namespaces.hh" 40 40 41 41 ArgvMap &arg() -
trunk/pdns/pdns/win32_logger.cc
r1472 r1976 22 22 #include "ntservice.hh" 23 23 #include "pdnsmsg.hh" 24 using namespace std; 24 #include "namespaces.hh" 25 25 26 26 Logger &theL(const string &pname) -
trunk/pdns/pdns/win32_rec_channel.cc
r802 r1976 7 7 #include "ahuexception.hh" 8 8 9 using namespace std; 9 #include "namespaces.hh" 10 10 11 11 RecursorControlChannel::RecursorControlChannel() -
trunk/pdns/pdns/ws.hh
r1629 r1976 35 35 36 36 #include "misc.hh" 37 using namespace std; 37 #include "namespaces.hh" 38 38 39 39 class Ewma -
trunk/pdns/pdns/zoneparser-tng.hh
r1240 r1976 24 24 #include <stack> 25 25 26 using namespace std; 26 #include "namespaces.hh" 27 27 28 28 class ZoneParserTNG … … 58 58 int d_lineno; 59 59 }; 60 st ack<filestate> d_filestates;60 std::stack<filestate> d_filestates; 61 61 }; 62 62