1592N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1592N/A * This code is free software; you can redistribute it and/or modify it 1592N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 1592N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 1592N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1592N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1592N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1592N/A * version 2 for more details (a copy is included in the LICENSE file that 1592N/A * You should have received a copy of the GNU General Public License version 1592N/A * 2 along with this work; if not, write to the Free Software Foundation, 1592N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1592N/A/* zutil.c -- target dependent utility functions for the compression library 1592N/A * Copyright (C) 1995-2005 Jean-loup Gailly. 1592N/A * For conditions of distribution and use, see copyright notice in zlib.h 1592N/A"need dictionary",
/* Z_NEED_DICT 2 */ 1592N/A"stream end",
/* Z_STREAM_END 1 */ 1592N/A"file error",
/* Z_ERRNO (-1) */ 1592N/A"stream error",
/* Z_STREAM_ERROR (-2) */ 1592N/A"data error",
/* Z_DATA_ERROR (-3) */ 1592N/A"insufficient memory",
/* Z_MEM_ERROR (-4) */ 1592N/A"buffer error",
/* Z_BUF_ERROR (-5) */ 1592N/A"incompatible version",
/* Z_VERSION_ERROR (-6) */ 1592N/A/* exported to allow conversion of error code to string for compress() and 1592N/A /* The Microsoft C Run-Time Library for Windows CE doesn't have 1592N/A * errno. We define it as a global variable to simplify porting. 1592N/A * Its value is always 0 and should not be used. 1592N/A/* Turbo C in 16-bit mode */ 1592N/A/* Turbo C malloc() does not allow dynamic allocation of 64K bytes 1592N/A * and farmalloc(64K) returns a pointer with an offset of 8, so we 1592N/A * must fix the pointer. Warning: the pointer must be put back to its 1592N/A * original form in order to free it, use zcfree(). 1592N/A/* This table is used to remember the original form of pointers 1592N/A * to large buffers (64K). Such pointers are normalized with a zero offset. 1592N/A * Since MSDOS is not a preemptive multitasking OS, this table is not 1592N/A * protected from concurrent access. This hack doesn't work anyway on 1592N/A * a protected system like OS/2. Use Microsoft C instead. 1592N/A /* If we allocate less than 65520 bytes, we assume that farmalloc 1592N/A * will return a usable pointer which doesn't have to be normalized. 1592N/A /* Normalize the pointer to seg:0 */ 1592N/A /* Find the original pointer */ 1592N/A/* Microsoft C in 16-bit mode */