New declarations in curl.h reported to curl.inc.in.
Copyrights extended to 2008.
SONAME handling introduced in build scripts.
_ Binding directory CURL_A, to be used at calling program link time for
statically binding the modules (specify BNDSRVPGM(QADRTTS QGLDCLNT QGLDBRDR)
when creating a program using CURL_A).
-_ Service program CURL, to be used at calling program run-time when this program
- has dynamically bound curl at link time.
+_ Service program CURL.<soname>, where <soname> is extracted from the
+ lib/Makefile.am VERSION variable. To be used at calling program run-time
+ when this program has dynamically bound curl at link time.
_ Binding directory CURL. To be used to dynamically bind libcurl when linking a
calling program.
_ Source file H. It contains all the include members needed to compile a C/C++
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
*
d CURL_READFUNC_ABORT...
d c X'10000000'
+ d CURL_READFUNC_PAUSE...
+ d c X'10000001'
+ *
+ d CURL_WRITEFUNC_PAUSE...
+ d c X'10000001'
*
d CURLAUTH_NONE c X'00000000'
d CURLAUTH_BASIC c X'00000001'
d CURL_CSELECT_ERR...
d c X'00000004'
*
+ d CURLPAUSE_RECV c X'00000001'
+ d CURLPAUSE_RECV_CONT...
+ d c X'00000000'
+ d CURLPAUSE_SEND c X'00000004'
+ d CURLPAUSE_SEND_CONT...
+ d c X'00000000'
+ d CURLPAUSE_ALL c X'00000005'
+ d CURLPAUSE_CONT c X'00000000'
+ *
**************************************************************************
* Types
**************************************************************************
d c 10165
d CURLOPT_PROXY_TRANSFER_MODE...
d c 00166
+ d CURLOPT_SEEKFUNCTION...
+ d c 20167
+ d CURLOPT_SEEKDATA...
+ d c 10168
*
d CURLFORMcode s 10i 0 based(######ptr######) Enum
d CURL_FORMADD_OK...
d curl_read_callback...
d s * based(######ptr######) procptr
*
+ d curl_seek_callback...
+ d s * based(######ptr######) procptr
+ *
d curl_sockopt_callback...
d s * based(######ptr######) procptr
*
d pr extproc('curl_easy_reset')
d curl * value CURL *
*
+ d curl_easy_pause...
+ d pr extproc('curl_easy_pause')
+ d curl * value CURL *
+ d bitmask 10i 0 value
+ *
d curl_multi_init...
d pr * extproc('curl_multi_init') CURLM *
*
TOPDIR=`dirname "${TOPDIR}"`
export SCRIPTDIR TOPDIR
+# Extract the SONAME from the library makefile.
+
+SONAME=`sed -e '/^VERSION=/!d' -e 's/^.* \([0-9]*\):.*$/\1/' \
+ < "${TOPDIR}/lib/Makefile.am"`
+export SONAME
+
################################################################################
#
TARGETLIB='CURL' # Target OS/400 program library
STATBNDDIR='CURL_A' # Static binding directory.
DYNBNDDIR='CURL' # Dynamic binding directory.
-SRVPGM='CURL' # Service program.
+SRVPGM="CURL.${SONAME}" # Service program.
TGTCCSID='500' # Target CCSID of objects
DEBUG='*ALL' # Debug level
OPTIMIZE='10' # Optimisation level
echo '#pragma comment(user, "libcurl version '"${LIBCURL_VERSION}"'")' > os400.c
echo '#pragma comment(date)' >> os400.c
-echo '#pragma comment(copyright, "Copyright (C) 1998-2007 Daniel Stenberg et al. OS/400 version by P. Monnerat")' >> os400.c
+echo '#pragma comment(copyright, "Copyright (C) 1998-2008 Daniel Stenberg et al. OS/400 version by P. Monnerat")' >> os400.c
make_module OS400 os400.c
LINK= # No need to rebuild service program yet.
MODULES=
BSF="${LIBIFSNAME}/TOOLS.FILE/BNDSRC.MBR"
-if action_needed "${BSF}"
+if action_needed "${BSF}" Makefile.am
then LINK=YES
fi
if [ "${LINK}" ]
-then echo " STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('LIBCURL')" > "${BSF}"
+then echo " STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('LIBCURL_${SONAME}')" \
+ > "${BSF}"
for EXPORT in ${EXPORTS}
do echo ' EXPORT SYMBOL("'"${EXPORT}"'")' >> "${BSF}"
done
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms