nproxy_SOURCES=nproxy.cc dnsparser.cc dnsrecords.cc dnsparser.hh \
rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh dnswriter.cc dnswriter.hh \
- sillyrecords.cc selectmplexer.cc pollmplexer.cc mplexer.hh
+ sillyrecords.cc selectmplexer.cc mplexer.hh
nproxy_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
nproxy_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS)
notify_SOURCES=notify.cc dnsparser.cc dnsrecords.cc dnsparser.hh \
rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh dnswriter.cc dnswriter.hh \
- sillyrecords.cc selectmplexer.cc pollmplexer.cc nsecrecords.cc base32.cc misc.cc unix_utility.cc \
+ sillyrecords.cc selectmplexer.cc nsecrecords.cc base32.cc misc.cc unix_utility.cc \
logger.cc qtype.cc statbag.cc
notify_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS)
rec_channel_rec.cc selectmplexer.cc epollmplexer.cc sillyrecords.cc htimer.cc htimer.hh \
aes/dns_random.cc aes/aescrypt.c aes/aeskey.c aes/aestab.c aes/aes_modes.c \
lua-pdns-recursor.cc lua-pdns-recursor.hh randomhelper.cc \
-recpacketcache.cc recpacketcache.hh dns.cc nsecrecords.cc base32.cc pollmplexer.cc
+recpacketcache.cc recpacketcache.hh dns.cc nsecrecords.cc base32.cc
#../modules/gmysqlbackend/smysql.cc
string s_pidfname;
static void writePid(void)
{
- ofstream of(s_pidfname.c_str(), ios_base::app);
+ ofstream of(s_pidfname.c_str(), std::ios_base::app);
if(of)
of<< Utility::getpid() <<endl;
else
}
}
- uint32_t minTTL=numeric_limits<uint32_t>::max();
+ uint32_t minTTL=std::numeric_limits<uint32_t>::max();
if(res<0) {
pw.getHeader()->rcode=RCode::ServFail;
// no commit here, because no record
counts[*i]++;
}
- typedef multimap<int, ComboAddress> rcounts_t;
+ typedef std::multimap<int, ComboAddress> rcounts_t;
rcounts_t rcounts;
for(counts_t::const_iterator i=counts.begin(); i != counts.end(); ++i)
try {
parseACLs();
}
- catch(exception& e)
+ catch(std::exception& e)
{
return e.what() + string("\n");
}
if(d_records.size()==1)
return d_records.begin()->d_ttd;
- uint32_t earliest=numeric_limits<uint32_t>::max();
+ uint32_t earliest=std::numeric_limits<uint32_t>::max();
for(records_t::const_iterator i=d_records.begin(); i != d_records.end(); ++i)
earliest=min(earliest, i->d_ttd);
return earliest;
}
close(fd);
}
-catch(...)
+catch(std::exception& e)
{
+ cerr<<"Signing thread died because of std::exception: "<<e.what()<<endl;
close(fd);
}
{
if(d_collection.empty())
return 0;
- double ret=numeric_limits<double>::max();
+ double ret=std::numeric_limits<double>::max();
double tmp;
for(collection_t::iterator pos=d_collection.begin(); pos != d_collection.end(); ++pos) {
if((tmp=pos->second.get(now)) < ret) {
}
};
-struct PacketIDBirthdayCompare: public binary_function<PacketID, PacketID, bool>
+struct PacketIDBirthdayCompare: public std::binary_function<PacketID, PacketID, bool>
{
bool operator()(const PacketID& a, const PacketID& b) const
{