Artifactspublic-v0

curl

master
ply4 git calls30 ms289 KiB3 cachedprotocol v2
181 lines5.9 KiBexecutableRaw
1#!/bin/sh
2#***************************************************************************
3# _ _ ____ _
4# Project ___| | | | _ \| |
5# / __| | | | |_) | |
6# | (__| |_| | _ <| |___
7# \___|\___/|_| \_\_____|
8#
9# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11# This software is licensed as described in the file COPYING, which
12# you should have received as part of this distribution. The terms
13# are also available at https://curl.se/docs/copyright.html.
15# You may opt to use, copy, modify, merge, publish, distribute and/or sell
16# copies of the Software, and permit persons to whom the Software is
17# furnished to do so, under the terms of the COPYING file.
19# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20# KIND, either express or implied.
22# SPDX-License-Identifier: curl
24###########################################################################
26# libcurl compilation script for the OS/400.
29SCRIPTDIR=$(dirname "${0}")
30. "${SCRIPTDIR}/initscript.sh"
31cd "${TOPDIR}/lib" || exit 1
33# Need to have IFS access to the mih/cipher header file.
35if action_needed cipher.mih '/QSYS.LIB/QSYSINC.LIB/MIH.FILE/CIPHER.MBR'
36then rm -f cipher.mih
37 ln -s '/QSYS.LIB/QSYSINC.LIB/MIH.FILE/CIPHER.MBR' cipher.mih
38fi
41# Create and compile the identification source file.
44 echo '#pragma comment(user, "libcurl version '"${LIBCURL_VERSION}"'")'
45 echo '#pragma comment(user, __DATE__)'
46 echo '#pragma comment(user, __TIME__)'
47 echo '#pragma comment(copyright, "Copyright (C) Daniel Stenberg et al. OS/400 version by P. Monnerat")'
48} > os400.c
49make_module OS400 os400.c BUILDING_LIBCURL
50LINK= # No need to rebuild service program yet.
51MODULES=
54# Get source list (CSOURCES variable).
56get_make_vars Makefile.inc
59# Compile the sources into modules.
61# shellcheck disable=SC2034
62INCLUDES="'$(pwd)'"
64make_module OS400SYS "${SCRIPTDIR}/os400sys.c" BUILDING_LIBCURL
65make_module CCSIDCURL "${SCRIPTDIR}/ccsidcurl.c" BUILDING_LIBCURL
67for SRC in ${CSOURCES}
68do MODULE=$(db2_name "${SRC}")
69 make_module "${MODULE}" "${SRC}" BUILDING_LIBCURL
70done
73# If needed, (re)create the static binding directory.
75if action_needed "${LIBIFSNAME}/${STATBNDDIR}.BNDDIR"
76then LINK=YES
77fi
79if [ -n "${LINK}" ]
80then rm -rf "${LIBIFSNAME}/${STATBNDDIR}.BNDDIR"
81 CMD="CRTBNDDIR BNDDIR(${TARGETLIB}/${STATBNDDIR})"
82 CMD="${CMD} TEXT('libcurl API static binding directory')"
83 CLcommand "${CMD}"
85 for MODULE in ${MODULES}
86 do CMD="ADDBNDDIRE BNDDIR(${TARGETLIB}/${STATBNDDIR})"
87 CMD="${CMD} OBJ((${TARGETLIB}/${MODULE} *MODULE))"
88 CLcommand "${CMD}"
89 done
90fi
93# The exportation file for service program creation must be in a DB2
94# source file, so make sure it exists.
96if action_needed "${LIBIFSNAME}/TOOLS.FILE"
97then CMD="CRTSRCPF FILE(${TARGETLIB}/TOOLS) RCDLEN(112)"
98 CMD="${CMD} TEXT('curl: build tools')"
99 CLcommand "${CMD}"
100fi
103# Gather the list of symbols to export.
104# - Unfold lines from the header files so that they contain a semicolon.
105# - Keep only CURL_EXTERN definitions.
106# - Remove the CURL_DEPRECATED and CURL_TEMP_PRINTF macro calls.
107# - Drop the parenthesized function arguments and what follows.
108# - Keep the trailing function name only.
110EXPORTS=$(cat "${TOPDIR}"/include/curl/*.h "${SCRIPTDIR}/ccsidcurl.h" |
111 sed -e 'H;s/.*//;x;s/\n//;s/.*/& /' \
112 -e '/^CURL_EXTERN[[:space:]]/!d' \
113 -e '/\;/!{x;d;}' \
114 -e 's/ CURL_DEPRECATED([^)]*)//g' \
115 -e 's/ CURL_TEMP_PRINTF([^)]*)//g' \
116 -e 's/[[:space:]]*(.*$//' \
117 -e 's/^.*[^A-Za-z0-9_]\([A-Za-z0-9_]*\)$/\1/')
120# Create the service program exportation file in DB2 member if needed.
122BSF="${LIBIFSNAME}/TOOLS.FILE/BNDSRC.MBR"
124if action_needed "${BSF}" Makefile.am
125then LINK=YES
126fi
128if [ -n "${LINK}" ]
129then echo " STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('LIBCURL_${SONAME}')" \
130 > "${BSF}"
131 for EXPORT in ${EXPORTS}
132 do echo ' EXPORT SYMBOL("'"${EXPORT}"'")' >> "${BSF}"
133 done
135 echo ' ENDPGMEXP' >> "${BSF}"
136fi
139# Build the service program if needed.
141if action_needed "${LIBIFSNAME}/${SRVPGM}.SRVPGM"
142then LINK=YES
143fi
145if [ -n "${LINK}" ]
146then CMD="CRTSRVPGM SRVPGM(${TARGETLIB}/${SRVPGM})"
147 CMD="${CMD} SRCFILE(${TARGETLIB}/TOOLS) SRCMBR(BNDSRC)"
148 CMD="${CMD} MODULE(${TARGETLIB}/OS400)"
149 CMD="${CMD} BNDDIR(${TARGETLIB}/${STATBNDDIR}"
150 if [ "${WITH_ZLIB}" != 0 ]
151 then CMD="${CMD} ${ZLIB_LIB}/${ZLIB_BNDDIR}"
152 liblist -a "${ZLIB_LIB}"
153 fi
154 if [ "${WITH_LIBSSH2}" != 0 ]
155 then CMD="${CMD} ${LIBSSH2_LIB}/${LIBSSH2_BNDDIR}"
156 liblist -a "${LIBSSH2_LIB}"
157 fi
158 CMD="${CMD})"
159 CMD="${CMD} BNDSRVPGM(QADRTTS QGLDCLNT QGLDBRDR)"
160 CMD="${CMD} TEXT('curl API library')"
161 CMD="${CMD} TGTRLS(${TGTRLS})"
162 CLcommand "${CMD}"
163 LINK=YES
164fi
167# If needed, (re)create the dynamic binding directory.
169if action_needed "${LIBIFSNAME}/${DYNBNDDIR}.BNDDIR"
170then LINK=YES
171fi
173if [ -n "${LINK}" ]
174then rm -rf "${LIBIFSNAME}/${DYNBNDDIR}.BNDDIR"
175 CMD="CRTBNDDIR BNDDIR(${TARGETLIB}/${DYNBNDDIR})"
176 CMD="${CMD} TEXT('libcurl API dynamic binding directory')"
177 CLcommand "${CMD}"
178 CMD="ADDBNDDIRE BNDDIR(${TARGETLIB}/${DYNBNDDIR})"
179 CMD="${CMD} OBJ((*LIBL/${SRVPGM} *SRVPGM))"
180 CLcommand "${CMD}"
181fi
Diagnostics4 git calls · 30 ms
CallStatusSizeTime030 ms
discover200152 B2 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=2
git.response.bytes=152
git.server.agent=gitty/1.0
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch object-format
git.server.fetch=shallow filter sideband-all
git.protocol.version=2
git.pkt.frames=8
git.pkt.data=6
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=152
git.pkt.payload.max=34
ls-refs200149 B · hit3 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
git.response.bytes=149
git.response.cache=HIT
git.response.duration_ms=3
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=149
git.pkt.payload.max=78
git.ls_refs.count=2
git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit3 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=3
git.fetch.filter=blob:none
git.fetch.filter.requested=tree:0
git.fetch.filter.fallback=blob:none
git.fetch.filter.learned=false
git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d
git.fetch.haves.count=0
git.fetch.deepen=10
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=10
git.pkt.data=8
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=293470
git.pkt.payload.max=65516
git.sideband.band1.bytes=293354
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=87
git.pack.bytes=293354
git.pack.ofs_delta=0
git.pack.ref_delta=1
git.pack.chain.max=1
git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0
git.pack.full=86
Open pack map
fetch2002.1 KiB · hit24 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=24
git.response.bytes=2160
git.response.cache=HIT
git.response.duration_ms=24
git.fetch.wants=cd3f71897f2d168dc222b21dff2c6dd827ce0125
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=2160
git.pkt.payload.max=2139
git.sideband.band1.bytes=2138
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0

Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.

Remote
https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
Ref
refs/heads/master
Commit
31c911efe5652725e930f4d2e60c9060e5f6646d
cf-ray
a5e1c32adec536cd
Request
9defeaad…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format