]> granicus.if.org Git - php/commitdiff
ext/standard/dl.c
authorAnantha Kesari H Y <hyanantha@php.net>
Mon, 25 Jul 2005 13:08:32 +0000 (13:08 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Mon, 25 Jul 2005 13:08:32 +0000 (13:08 +0000)
NetWare LibC dlsym works perfectly only thing that each of the extension need to export a symbol with FULL capital prefix.

ext/standard/fsock.h
Removing redundant inclusion of headers for NetWare

ext/standard/lcg.c
NetWare LibC SDK sys/time.h implicitly includes sys/timval.h so nothing special needed for NetWare here.

ext/standard/link.c
NetWare LibC SDK has pwd.h.

ext/standard/microtime.c
Removing redundant NEW_LIBC checks and nothing special about NetWare here. including sys/time.h will do the needful.

--Kamesh

ext/standard/dl.c
ext/standard/fsock.h
ext/standard/lcg.c
ext/standard/link.c
ext/standard/microtime.c

index 07352e35a35438662811e46d9dcc70a787b0906a..293b1e200365436f7a374d8d51d541601bac73e4 100644 (file)
@@ -143,7 +143,6 @@ void php_dl(pval *file, int type, pval *return_value TSRMLS_DC)
 
        efree(libpath);
 
-#ifndef NETWARE
        get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, "get_module");
 
        /*
@@ -154,23 +153,6 @@ void php_dl(pval *file, int type, pval *return_value TSRMLS_DC)
 
        if (!get_module)
                get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, "_get_module");
-#else
-       /* NetWare doesn't support two NLMs exporting same symbol */
-       {
-               char symbol_name[64] = "\0";
-               int module_name_length = Z_STRLEN_P(file) - 4;  /* '.nlm' is 4 characters; knock it off */
-
-               /* Take the module name (e.g.: 'php_ldap') and append '@get_module' to it */
-               strncpy(symbol_name, Z_STRVAL_P(file), module_name_length);
-               symbol_name[module_name_length] = '\0';
-               strcat(symbol_name, "@");
-               strcat(symbol_name, "get_module");
-
-               get_module = (zend_module_entry *(*)(void)) DL_FETCH_SYMBOL(handle, symbol_name);
-       }
-       /* NetWare doesn't prepend '_' to symbol names; so the corresponding portion of code is also
-          not required for NetWare */
-#endif
 
        if (!get_module) {
                DL_UNLOAD(handle);
index 966fc1ecec665bcb9f4f8eccd6914a3352090c7a..00d0df6639fd6ca052b4baba801b2d1f55620701 100644 (file)
 #ifndef FSOCK_H
 #define FSOCK_H
 
-#ifdef NETWARE
-#ifdef NEW_LIBC
-#include "sys/timeval.h"
-#else
-#include "netware/time_nw.h"    /* For 'timeval' */
-#endif
-#endif
-
 #include "file.h"
 
 #include "php_network.h"
index 2d9f5ba82ce4434af9756c20ff70843246665faf..215954644f8962e8efe5c6356e101aa386b0c94a 100644 (file)
@@ -27,8 +27,6 @@
 
 #ifdef PHP_WIN32
 #include "win32/time.h"
-#elif defined(NETWARE)
-#include <sys/timeval.h>
 #else
 #include <sys/time.h>
 #endif
index 5dde068b67a1ee733e94a7a48a76b700c7222a3c..cb6ef2a7c067299b15d3ca3ec24205bd1c1685cc 100644 (file)
@@ -33,8 +33,6 @@
 #if HAVE_PWD_H
 #ifdef PHP_WIN32
 #include "win32/pwd.h"
-#elif defined(NETWARE)
-#include "netware/pwd.h"
 #else
 #include <pwd.h>
 #endif
@@ -91,11 +89,7 @@ PHP_FUNCTION(readlink)
 PHP_FUNCTION(linkinfo)
 {
        zval **filename;
-#if defined(NETWARE) && defined(CLIB_STAT_PATCH)
-       struct stat_libc sb;
-#else
        struct stat sb;
-#endif
        int ret;
 
        if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
index 46f5babf797eec1139918bc6106c2e16b029d83f..7ee73a8439b1065384a665896d58953e25543b56 100644 (file)
 #endif
 #ifdef PHP_WIN32
 #include "win32/time.h"
-#elif defined(NETWARE)
-#ifdef NEW_LIBC
-#include <sys/timeval.h>
-#else
-#include "netware/time_nw.h"
-#endif
 #else
 #include <sys/time.h>
 #endif