Socket++ is a C++ class library that provides you with an iostream based interface to sockets.
34 lines
923 B
Text
34 lines
923 B
Text
$NetBSD: patch-ad,v 1.1.1.1 2005/03/27 17:45:38 wiz Exp $
|
|
|
|
--- test/tsig-0.C.orig 2003-03-14 19:26:07.000000000 +0100
|
|
+++ test/tsig-0.C
|
|
@@ -9,6 +9,7 @@
|
|
#include <iostream>
|
|
#include <socket++/sig.h>
|
|
#include <unistd.h>
|
|
+#include <signal.h>
|
|
|
|
using namespace std;
|
|
|
|
@@ -29,9 +30,11 @@ using namespace std;
|
|
|
|
// cout << "Pending signals = " << hex << sig::nal.pending () << dec << endl; // commented out by LN
|
|
sigset_t set;
|
|
+#ifdef _SIGSET_NWORDS
|
|
for (unsigned int i=0; i<_SIGSET_NWORDS; i++) {
|
|
cout << "sigset[" << i << "]: " << set.__val[i] << endl;
|
|
}
|
|
+#endif
|
|
for (unsigned int i=1; i<15; i++) {
|
|
cout << "ispending(" << i << "): " << sig::nal.ispending (i) << endl;
|
|
}
|
|
@@ -58,7 +61,9 @@ int main (int ac, char** av)
|
|
sig::nal.set (SIGQUIT, &squit);
|
|
*/
|
|
|
|
+#ifdef _SIGSET_NWORDS
|
|
cout << "SIGSET_NWORDS: " << _SIGSET_NWORDS << endl;
|
|
+#endif
|
|
try {
|
|
hnd illegal (300);
|
|
}
|