stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r523863 - /incubator/stdcxx/trunk/tests/src/process.cpp
Date Thu, 29 Mar 2007 22:46:18 GMT
Author: sebor
Date: Thu Mar 29 15:46:17 2007
New Revision: 523863

URL: http://svn.apache.org/viewvc?view=rev&rev=523863
Log:
2007-03-29  Martin Sebor  <sebor@roguewave.com>

	* process.cpp (<signal.h>, <sys/types.h>): Included for kill(), pid_t.
	(E2BIG, SIGCHLD, SIGHUP, SIGQUIT, SIGKILL): Defined if not defined by
	system headers.
	(kill): Declared for EDG eccp demo.

Modified:
    incubator/stdcxx/trunk/tests/src/process.cpp

Modified: incubator/stdcxx/trunk/tests/src/process.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/process.cpp?view=diff&rev=523863&r1=523862&r2=523863
==============================================================================
--- incubator/stdcxx/trunk/tests/src/process.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/process.cpp Thu Mar 29 15:46:17 2007
@@ -33,13 +33,15 @@
 
 #include <rw_process.h>
 
+#include <ctype.h>        // for isspace()
+#include <errno.h>        // for EACCES, errno
+#include <signal.h>       // for SIGXXX, kill()
 #include <stddef.h>       // for size_t
 #include <stdarg.h>       // for va_copy, va_list, ...
 #include <stdlib.h>       // for free(), exit()
 #include <string.h>       // for strchr()
-#include <ctype.h>        // for isspace()
 
-#include <errno.h>        // for EACCES, errno
+#include <sys/types.h>    // for pid_t
 
 #include <driver.h>       // for rw_note(), ...
 #include <rw_printf.h>    // for rw_fprintf()
@@ -48,6 +50,46 @@
 // use the Windows API on Cygwin
 #  define _WIN32
 #endif
+
+#ifndef E2BIG
+#  define E2BIG   7   /* AIX, HP-UX, Linux, Solaris */
+#endif
+
+#ifndef SIGCHLD
+#  if defined (_RWSTD_OS_AIX) || defined (_RWSTD_OS_OSF)
+     // AIX, Tru64
+#    define SIGCHLD   20
+#  elif defined (_RWSTD_OS_LINUX)
+#    define SIGCHLD   17
+#  else
+     // (System V-based) HP-UX, IRIX, and Solaris
+#    define SIGCHLD   18
+#  endif
+#endif
+
+// all known Unices
+#ifndef SIGHUP
+#  define SIGHUP   1
+#endif
+
+#ifndef SIGQUIT
+#  define SIGQUIT  3
+#endif
+
+#ifndef SIGKILL
+#  define SIGKILL  9
+#endif
+
+
+#ifdef _RWSTD_EDG_ECCP
+
+extern "C" {
+
+int kill (pid_t, int);
+
+}   // extern "C"
+
+#endif   // _RWSTD_EDG_ECCP
 
 /**************************************************************************/
 



Mime
View raw message