/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* Maintains a list of currently loaded DLLs (Dynamic Link Libraries)
* and their associated handles. Library names are case-insensitive.
*/
#include <windows.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <io.h>
#include "sys.h"
#include "path_md.h"
// Based on os_windows.cpp
if (p == NULL) {
}
/* check for NULL path */
if (p == pathname) {
continue;
}
if (*(p-1) == ':' || *(p-1) == '\\') {
} else {
}
break;
}
pathname = p + 1;
*buffer = '\0';
}
}
/*
* From system_md.c v1.54
*/
int
{
long errval;
if ((errval = GetLastError()) != 0) {
/* DOS error */
if (n > 3) {
/* Drop final '.', CR, LF */
buf[n] = '\0';
}
return n;
}
if (errno != 0) {
/* C runtime error that has no corresponding DOS error code */
int n = (int)strlen(s);
buf[n] = '\0';
return n;
}
return 0;
}
/*
* Build a machine dependent library name out of a path and file name.
*/
void
{
*holder = '\0';
/* Quietly truncates on buffer overflow. Should be an error. */
return;
}
if (pnamelen == 0) {
} else {
}
}
void *
{
/* Error message is pretty lame, try to make a better guess. */
if (errcode == ERROR_MOD_NOT_FOUND) {
} else {
}
}
return result;
}
{
}
{
}