ICU-408 leak libraries on hpux, shl_unload is broken

X-SVN-Rev: 1522
This commit is contained in:
Steven R. Loomis 2000-05-30 21:47:19 +00:00
parent 86c216a59e
commit a441c8ef2c

View File

@ -369,7 +369,11 @@ typedef struct {
}
/* get a view of the mapping */
#ifndef HPUX
data=mmap(0, length, PROT_READ, MAP_SHARED, fd, 0);
#else
data=mmap(0, length, PROT_READ, MAP_PRIVATE, fd, 0);
#endif
close(fd); /* no longer needed */
if(data==MAP_FAILED) {
@ -1058,6 +1062,10 @@ unloadDataMemory(UDataMemory *pData) {
U_CAPI UDataMemory * U_EXPORT2
udata_open(const char *path, const char *type, const char *name,
UErrorCode *pErrorCode) {
#ifdef UDATA_DEBUG
fprintf(stderr, "udata_open(): Opening: %s . %s\n", name, type);
#endif
if(pErrorCode==NULL || U_FAILURE(*pErrorCode)) {
return NULL;
} else if(name==NULL || *name==0) {