00001 /*************************************************************************** 00002 * _ _ ____ _ 00003 * Project ___| | | | _ \| | 00004 * / __| | | | |_) | | 00005 * | (__| |_| | _ <| |___ 00006 * \___|\___/|_| \_\_____| 00007 * 00008 * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al. 00009 * 00010 * This software is licensed as described in the file COPYING, which 00011 * you should have received as part of this distribution. The terms 00012 * are also available at https://curl.haxx.se/docs/copyright.html. 00013 * 00014 * You may opt to use, copy, modify, merge, publish, distribute and/or sell 00015 * copies of the Software, and permit persons to whom the Software is 00016 * furnished to do so, under the terms of the COPYING file. 00017 * 00018 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 00019 * KIND, either express or implied. 00020 * 00021 * 00022 ***************************************************************************/ 00023 00024 /* OS/400 additional definitions. */ 00025 00026 #ifndef __OS400_SYS_ 00027 #define __OS400_SYS_ 00028 00029 00030 /* Per-thread item identifiers. */ 00031 00032 typedef enum { 00033 LK_SSL_ERROR, 00034 LK_GSK_ERROR, 00035 LK_LDAP_ERROR, 00036 LK_CURL_VERSION, 00037 LK_VERSION_INFO, 00038 LK_VERSION_INFO_DATA, 00039 LK_EASY_STRERROR, 00040 LK_SHARE_STRERROR, 00041 LK_MULTI_STRERROR, 00042 LK_ZLIB_VERSION, 00043 LK_ZLIB_MSG, 00044 LK_LAST 00045 } localkey_t; 00046 00047 00048 extern char * (* Curl_thread_buffer)(localkey_t key, long size); 00049 00050 00051 /* Maximum string expansion factor due to character code conversion. */ 00052 00053 #define MAX_CONV_EXPANSION 4 /* Can deal with UTF-8. */ 00054 00055 #endif