From: William A. Rowe Jr Date: Sun, 15 Oct 2000 20:13:24 +0000 (+0000) Subject: This is a pretty significant cleanup of things already moved to OS2's X-Git-Tag: APACHE_2_0_ALPHA_8~361 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92e94d18cf7db824584970abc2e0da00d0062dd4;p=apache This is a pretty significant cleanup of things already moved to OS2's APR - Brian, please review closely. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86601 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/os/os2/os.h b/os/os2/os.h index 811d919fb2..9cb02be796 100644 --- a/os/os2/os.h +++ b/os/os2/os.h @@ -96,21 +96,7 @@ char *ap_os_systemcase_filename(apr_pool_t *p, const char *szFile); /* FIXME: the following should be implemented on this platform */ #define ap_os_is_filename_valid(f) (1) -/* Use a specialized kill() function */ -int ap_os_kill(int pid, int sig); - -/* Maps an OS error code to an error message */ -char *ap_os_error_message(int err); - /* OS/2 doesn't have symlinks so S_ISLNK is always false */ #define S_ISLNK(m) 0 -/* Dynamic loading functions */ -#define ap_os_dso_handle_t unsigned long -void ap_os_dso_init(void); -ap_os_dso_handle_t ap_os_dso_load(const char *); -void ap_os_dso_unload(ap_os_dso_handle_t); -void * ap_os_dso_sym(ap_os_dso_handle_t, const char *); -const char *ap_os_dso_error(void); - #endif /* ! APACHE_OS_H */ diff --git a/os/os2/util_os2.c b/os/os2/util_os2.c index 180bf7c69e..e51a2ea7c7 100644 --- a/os/os2/util_os2.c +++ b/os/os2/util_os2.c @@ -170,149 +170,3 @@ char *ap_os_canonical_filename(apr_pool_t *pPool, const char *szFile) strlwr(szCanonicalFile); return szCanonicalFile; } - - - -int ap_os_kill(pid_t pid, int sig) -{ -/* SIGTERM's don't work too well in OS/2 (only affects other EMX programs). - CGIs may not be, esp. REXX scripts, so use a native call instead */ - - int rc; - - if ( sig == SIGTERM ) { - rc = DosSendSignalException( pid, XCPT_SIGNAL_BREAK ); - - if ( rc ) { - errno = ESRCH; - rc = -1; - } - } else { - rc = kill(pid, sig); - } - - return rc; -} - - - -char *ap_os_error_message(int err) -{ - static char result[200]; - unsigned char message[HUGE_STRING_LEN]; - ULONG len; - char *pos; - int c; - - if (DosGetMessage(NULL, 0, message, HUGE_STRING_LEN, err, "OSO001.MSG", &len) == 0) { - len--; - message[len] = 0; - pos = result; - - if (len >= sizeof(result)) - len = sizeof(result-1); - - for (c=0; ctv_usec / 1000 + timeout->tv_sec * 1000; - - rc = os2_select(fds, num_read, num_write, num_except, ms_timeout); - - if (rc > 0) { - fd_count = 0; - - if (readfds) { - for (s=0; s