master
1#!/bin/sh
2#***************************************************************************
3# _ _ ____ _
4# Project ___| | | | _ \| |
5# / __| | | | |_) | |
6# | (__| |_| | _ <| |___
7# \___|\___/|_| \_\_____|
8#
9# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
10#
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.
14#
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.
18#
19# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20# KIND, either express or implied.
21#
22# SPDX-License-Identifier: curl
23#
24###########################################################################
25#
26# Installation of the header files in the OS/400 library.
27#
29SCRIPTDIR=$(dirname "${0}")
30. "${SCRIPTDIR}/initscript.sh"
31cd "${TOPDIR}/include" || exit 1
34# Create the OS/400 source program file for the header files.
36SRCPF="${LIBIFSNAME}/H.FILE"
38if action_needed "${SRCPF}"
39then CMD="CRTSRCPF FILE(${TARGETLIB}/H) RCDLEN(112)"
40 CMD="${CMD} CCSID(${TGTCCSID}) TEXT('curl: Header files')"
41 CLcommand "${CMD}"
42fi
45# Create the IFS directory for the header files.
47IFSINCLUDE="${IFSDIR}/include/curl"
49if action_needed "${IFSINCLUDE}"
50then mkdir -p "${IFSINCLUDE}"
51fi
54# Enumeration values are used as va_arg tagfields, so they MUST be
55# integers.
57copy_hfile()
59{
60 destfile="${1}"
61 srcfile="${2}"
62 shift
63 shift
64 sed -e '1i\
65#pragma enum(int)\
66' "${@}" -e '$a\
67#pragma enum(pop)\
68' < "${srcfile}" > "${destfile}"
69}
71# Copy the header files.
73for HFILE in curl/*.h ${SCRIPTDIR}/ccsidcurl.h
74do case "$(basename "${HFILE}" .h)" in
75 stdcheaders|typecheck-gcc)
76 continue;;
77 esac
79 DEST="${SRCPF}/$(db2_name "${HFILE}" nomangle).MBR"
81 if action_needed "${DEST}" "${HFILE}"
82 then copy_hfile "${DEST}" "${HFILE}"
83 IFSDEST="${IFSINCLUDE}/$(basename "${HFILE}")"
84 rm -f "${IFSDEST}"
85 ln -s "${DEST}" "${IFSDEST}"
86 fi
87done
90# Copy the ILE/RPG header file, setting-up version number.
92versioned_copy "${SCRIPTDIR}/curl.inc.in" "${SRCPF}/CURL.INC.MBR"
93rm -f "${IFSINCLUDE}/curl.inc.rpgle"
94ln -s "${SRCPF}/CURL.INC.MBR" "${IFSINCLUDE}/curl.inc.rpgle"
97# Duplicate file H as CURL to support more include path forms.
99if action_needed "${LIBIFSNAME}/CURL.FILE"
100then :
101else CLcommand "DLTF FILE(${TARGETLIB}/CURL)"
102fi
104CMD="CRTDUPOBJ OBJ(H) FROMLIB(${TARGETLIB}) OBJTYPE(*FILE) TOLIB(*FROMLIB)"
105CMD="${CMD} NEWOBJ(CURL) DATA(*YES)"
106CLcommand "${CMD}"
Diagnostics4 git calls · 26 ms
CallStatusSizeTime026 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 · hit2 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=149 git.response.cache=HIT git.response.duration_ms=2 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 · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=293470 git.response.cache=HIT git.response.duration_ms=2 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=86Open pack map
fetch2001.4 KiB · hit22 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=22 git.response.bytes=1403 git.response.cache=HIT git.response.duration_ms=22 git.fetch.wants=e30e950539ee3838b177d840fc5cf3988a695198 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=1403 git.pkt.payload.max=1382 git.sideband.band1.bytes=1381 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
- a5e2bba51c01cfc3
- Request
- 5d3c5d19…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format