master
1$! File: config_h.com
2$!
3$! This procedure attempts to figure out how to build a config.h file
4$! for the current project.
5$!
6$! P1 specifies the config.h.in file or equivalent. If it is not specified
7$! then this procedure will search for several common names of the file.
8$!
9$! The CONFIGURE shell script will be examined for hints and a few symbols
10$! but most of the tests will not produce valid results on OpenVMS. Some
11$! will produce false positives and some will produce false negatives.
12$!
13$! It is easier to read the config.h_in file and make up tests based
14$! on what is in it!
15$!
16$! This file will create an empty config_vms.h file if one does not exist.
17$! The config_vms.h is intended for manual edits to handle things that
18$! this procedure can not.
19$!
20$! The config_vms.h will be invoked by the resulting config.h file.
21$!
22$! This procedure knows about the DEC C RTL on the system it is on.
23$! Future versions may handle the GNV, the OpenVMS porting library,
24$! and others.
25$!
26$! This procedure may not guess the options correctly for all architectures,
27$! and is a work in progress.
28$!
29$! Copyright (C) John Malmberg
30$!
31$! Permission to use, copy, modify, and/or distribute this software for any
32$! purpose with or without fee is hereby granted, provided that the above
33$! copyright notice and this permission notice appear in all copies.
34$!
35$! THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
36$! WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
37$! MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
38$! ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
39$! WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
40$! ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
41$! OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
42$!
43$! SPDX-License-Identifier: ISC
44$!
45$!============================================================================
46$!
47$ss_normal = 1
48$ss_abort = 44
49$ss_control_y = 1556
50$status = ss_normal
51$on control_y then goto control_y
52$on warning then goto general_error
53$!on warning then set ver
54$!
55$! Some information for writing timestamps to created files
56$!----------------------------------------------------------
57$my_proc = f$environment("PROCEDURE")
58$my_proc_file = f$parse(my_proc,,,"NAME") + f$parse(my_proc,,,"TYPE")
59$tab[0,8] = 9
60$datetime = f$element(0,".",f$cvtime(,"ABSOLUTE","DATETIME"))
61$username = f$edit(f$getjpi("","USERNAME"),"TRIM")
62$!
63$pid = f$getjpi("","PID")
64$tfile1 = "SYS$SCRATCH:config_h_temp1_''pid'.TEMP"
65$dchfile = "SYS$SCRATCH:config_h_decc_''pid'.TEMP"
66$starhfile = "SYS$SCRATCH:config_h_starlet_''pid'.TEMP"
67$configure_script = "SYS$SCRATCH:configure_script_''pid'.TEMP"
68$!
69$! Get the system type
70$!----------------------
71$arch_type = f$getsyi("arch_type")
72$!
73$! Does config_vms.h exist?
74$!-------------------------
75$update_config_vms = 0
76$file = f$search("sys$disk:[]config_vms.h")
77$if file .nes. ""
78$then
79$ write sys$output "Found existing custom file ''file'."
80$else
81$ update_config_vms = 1
82$ write sys$output "Creating new sys$disk:[]config_vms.h for you."
83$ gosub write_config_vms
84$endif
85$!
86$!
87$! On some platforms, DCL search has problems with searching a file
88$! on a NFS mounted volume. So copy it to sys$scratch:
89$!
90$if f$search(configure_script) .nes. "" then delete 'configure_script';*
91$copy sys$disk:[]configure 'configure_script'
92$!
93$ssl_header_dir = "OPENSSL:"
94$if f$trnlnm("OPENSSL") .eqs. ""
95$then
96$ ssl_header_dir = "SSL$INCLUDE:"
97$endif
98$!
99$!
100$! Write out the header
101$!----------------------
102$gosub write_config_h_header
103$!
104$!
105$!
106$! config.h.in could have at least five different names depending
107$! on how it was transferred to OpenVMS
108$!------------------------------------------------------------------
109$if p1 .nes. ""
110$then
111$ cfile = p1
112$else
113$ cfile = f$search("sys$disk:[]config.h.in")
114$ if cfile .eqs. ""
115$ then
116$ cfile = f$search("sys$disk:[]config.h_in")
117$ if cfile .eqs. ""
118$ then
119$ cfile = f$search("sys$disk:[]configh.in")
120$ if cfile .eqs. ""
121$ then
122$ cfile = f$search("sys$disk:[]config__2eh.in")
123$ if cfile .eqs. ""
124$ then
125$ cfile = f$search("sys$disk:[]config.h__2ein")
126$ endif
127$ endif
128$ endif
129$ endif
130$endif
131$if f$trnlnm("PRJ_INCLUDE") .nes. ""
132$then
133$ cfile = f$search("PRJ_INCLUDE:config.h.in")
134$ if cfile .eqs. ""
135$ then
136$ cfile = f$search("PRJ_INCLUDE:config.h_in")
137$ if cfile .eqs. ""
138$ then
139$ cfile = f$search("PRJ_INCLUDE:config__2eh.in")
140$ if cfile .eqs. ""
141$ then
142$ cfile = f$search("PRJ_INCLUDE:config__2eh.in")
143$ if cfile .eqs. ""
144$ then
145$ cfile = f$search("PRJ_INCLUDE:config.h__2ein")
146$ endif
147$ endif
148$ endif
149$ endif
150$endif
151$if cfile .eqs. ""
152$then
153$ write sys$output "Can not find sys$disk:config.h.in"
154$ line_out = "Looked for config.h.in, config.h_in, configh.in, "
155$ line_out = line_out + "config__2eh.in, config.h__2ein"
156$ write/symbol sys$output line_out
157$ if f$trnlnm("PRJ_INCLUDE") .nes. ""
158$ then
159$ write sys$output "Also looked in PRJ_INCLUDE: for these files."
160$ endif
161$!
162$ write tf ""
163$ write tf -
164 " /* Could not find sys$disk:config.h.in */"
165$ write tf -
166 " /* Looked also for config.h_in, configh.in, config__2eh.in, */"
167$ write tf -
168 " /* config.h__2ein */"
169$ if f$trnlnm("PRJ_INCLUDE") .nes. ""
170$ then
171$ write tf -
172 " /* Also looked in PRJ_INCLUDE: for these files. */"
173$ endif
174$ write tf -
175 "/*--------------------------------------------------------------*/
176$ write tf ""
177$ goto write_tail
178$endif
179$!
180$!
181$! Locate the DECC libraries in use
182$!-----------------------------------
183$decc_rtldef = f$parse("decc$rtldef","sys$library:.tlb;0")
184$decc_starletdef = f$parse("sys$starlet_c","sys$library:.tlb;0")
185$decc_shr = f$parse("decc$shr","sys$share:.exe;0")
186$!
187$! Dump the DECC header names into a file
188$!----------------------------------------
189$if f$search(dchfile) .nes. "" then delete 'dchfile';*
190$if f$search(tfile1) .nes. "" then delete 'tfile1';*
191$define/user sys$output 'tfile1'
192$library/list 'decc_rtldef'
193$open/read/error=rtldef_loop1_end tf1 'tfile1'
194$open/write/error=rtldef_loop1_end tf2 'dchfile'
195$rtldef_loop1:
196$ read/end=rtldef_loop1_end tf1 line_in
197$ line_in = f$edit(line_in,"TRIM,COMPRESS")
198$ key1 = f$element(0," ",line_in)
199$ key2 = f$element(1," ",line_in)
200$ if key1 .eqs. " " .or. key1 .eqs. "" then goto rtldef_loop1
201$ if key2 .nes. " " .and. key2 .nes. "" then goto rtldef_loop1
202$ write tf2 "|",key1,"|"
203$ goto rtldef_loop1
204$rtldef_loop1_end:
205$if f$trnlnm("tf1","lnm$process",,"SUPERVISOR") .nes. "" then close tf1
206$if f$trnlnm("tf2","lnm$process",,"SUPERVISOR") .nes. "" then close tf2
207$if f$search(tfile1) .nes. "" then delete 'tfile1';*
208$!
209$! Dump the STARLET header names into a file
210$!----------------------------------------
211$if f$search(starhfile) .nes. "" then delete 'starhfile';*
212$if f$search(tfile1) .nes. "" then delete 'tfile1';*
213$define/user sys$output 'tfile1'
214$library/list 'decc_starletdef'
215$open/read/error=stardef_loop1_end tf1 'tfile1'
216$open/write/error=stardef_loop1_end tf2 'starhfile'
217$stardef_loop1:
218$ read/end=stardef_loop1_end tf1 line_in
219$ line_in = f$edit(line_in,"TRIM,COMPRESS")
220$ key1 = f$element(0," ",line_in)
221$ key2 = f$element(1," ",line_in)
222$ if key1 .eqs. " " .or. key1 .eqs. "" then goto stardef_loop1
223$ if key2 .nes. " " .and. key2 .nes. "" then goto stardef_loop1
224$ write tf2 "|",key1,"|"
225$ goto stardef_loop1
226$stardef_loop1_end:
227$if f$trnlnm("tf1","lnm$process",,"SUPERVISOR") .nes. "" then close tf1
228$if f$trnlnm("tf2","lnm$process",,"SUPERVISOR") .nes. "" then close tf2
229$if f$search(tfile1) .nes. "" then delete 'tfile1';*
230$!
231$!
232$! Now calculate what should be in the file from reading
233$! config.h.in and CONFIGURE.
234$!---------------------------------------------------------------
235$open/read inf 'cfile'
236$do_comment = 0
237$if_block = 0
238$cfgh_in_loop1:
239$!set nover
240$ read/end=cfgh_in_loop1_end inf line_in
241$ xline = f$edit(line_in,"TRIM,COMPRESS")
242$!
243$! Blank line handling
244$!---------------------
245$ if xline .eqs. ""
246$ then
247$ write tf ""
248$ goto cfgh_in_loop1
249$ endif
250$ xlen = f$length(xline)
251$ key = f$extract(0,2,xline)
252$!
253$! deal with comments by copying exactly
254$!-----------------------------------------
255$ if (do_comment .eq. 1) .or. (key .eqs. "/*")
256$ then
257$ do_comment = 1
258$ write tf line_in
259$ key = f$extract(xlen - 2, 2, xline)
260$ if key .eqs. "*/" then do_comment = 0
261$ goto cfgh_in_loop1
262$ endif
263$!
264$! Some quick parsing
265$!----------------------
266$ keyif = f$extract(0,3,xline)
267$ key1 = f$element(0," ",xline)
268$ key2 = f$element(1," ",xline)
269$ key2a = f$element(0,"_",key2)
270$ key2b = f$element(1,"_",key2)
271$ key2_len = f$length(key2)
272$ key2_h = f$extract(key2_len - 2, 2, key2)
273$ key2_t = f$extract(key2_len - 5, 5, key2)
274$ if key2_t .eqs. "_TYPE" then key2_h = "_T"
275$ key64 = 0
276$ if f$locate("64", xline) .lt. xlen then key64 = 1
277$!
278$!write sys$output "xline = ''xline'"
279$!
280$! Comment out this section of the ifblock
281$!-----------------------------------------
282$ if if_block .ge. 3
283$ then
284$ write tf "/* ", xline, " */"
285$ if keyif .eqs. "#en" then if_block = 0
286$ goto cfgh_in_loop1
287$ endif
288$!
289$! Handle the end of an ifblock
290$!-------------------------------
291$ if keyif .eqs. "#en"
292$ then
293$ write tf xline
294$ if_block = 0
295$ goto cfgh_in_loop1
296$ endif
297$!
298$ if key1 .eqs. "#ifndef"
299$ then
300$! Manual check for _ALL_SOURCE on AIX error
301$!-----------------------------------------------
302$ if key2 .eqs. "_ALL_SOURCE"
303$ then
304$ write tf "/* ", xline, " */"
305$!
306$! Ignore the rest of the block
307$!--------------------------------------
308$ if_block = 3
309$ goto cfgh_in_loop1
310$ endif
311$ endif
312$!
313$!
314$! Default action for an #if/#else/#endif
315$!------------------------------------------
316$ if keyif .eqs. "#if" .or. keyif .eqs. "#el"
317$ then
318$ if_block = 1
319$ write tf xline
320$ goto cfgh_in_loop1
321$ endif
322$!
323$!
324$! Process "normal?" stuff
325$!---------------------------
326$ if key1 .eqs. "#undef"
327$ then
328$ key2c = f$element(2, "_", key2)
329$ if (key2c .eqs. "_") .or. (key2c .eqs. "H") then key2c = ""
330$ key2d = f$element(3, "_", key2)
331$ if (key2d .eqs. "_") .or. (key2d .eqs. "H") then key2d = ""
332$ key2e = f$element(4, "_", key2)
333$ if (key2e .eqs. "_") .or. (key2e .eqs. "H") then key2e = ""
334$ if key2d .eqs. "T"
335$ then
336$ if key2e .eqs. "TYPE"
337$ then
338$ key2_h = "_T"
339$ key2d = ""
340$ endif
341$ endif
342$!
343$ double_under = 0
344$!
345$! Process FCNTL directives
346$!-------------------------------------
347$ if (key2b .eqs. "FCNTL") .and. (key2c .eqs. "O") .and. -
348 (key2d .eqs. "NONBLOCK")
349$ then
350$ write tf "#ifndef ''key2'"
351$ write tf "#define ''key2' 1"
352$ write tf "#endif"
353$ goto cfgh_in_loop1
354$ endif
355$!
356$! Process GETADDRINFO directives
357$!-------------------------------------
358$ if key2 .eqs. "GETADDRINFO_THREADSAFE"
359$ then
360$ write tf "#ifndef ''key2'"
361$ write tf "#define ''key2' 1"
362$ write tf "#endif"
363$ goto cfgh_in_loop1
364$ endif
365$!
366$! Process IOCTL directives
367$!-------------------------------------
368$ if (key2b .eqs. "IOCTL") .and. (key2c .nes. "")
369$ then
370$ if (key2c .eqs. "FIONBIO") .or. (key2c .eqs. "SIOCGIFADDR")
371$ then
372$ write tf "#ifndef ''key2'"
373$ write tf "#define ''key2' 1"
374$ write tf "#endif"
375$ goto cfgh_in_loop1
376$ endif
377$ endif
378$!
379$!
380$! Manual check for LL on
381$!-----------------------------------------------
382$ if key2 .eqs. "LL"
383$ then
384$ write tf "#ifndef __VAX"
385$ write tf "#define HAVE_''key2' 1"
386$ write tf "#endif"
387$ goto cfgh_in_loop1
388$ endif
389$!
390$ if key2 .eqs. "bool_t"
391$ then
392$ write tf "#ifndef ''key2'"
393$ write tf "#define ''key2' short"
394$ write tf "#endif"
395$ goto cfgh_in_loop1
396$ endif
397$!
398$ if key2 .eqs. "bits16_t"
399$ then
400$ write tf "#ifndef ''key2'"
401$ write tf "#define ''key2' short"
402$ write tf "#endif"
403$ goto cfgh_in_loop1
404$ endif
405$!
406$ if key2 .eqs. "u_bits16_t"
407$ then
408$ write tf "#ifndef ''key2'"
409$ write tf "#define ''key2' unsigned short"
410$ write tf "#endif"
411$ goto cfgh_in_loop1
412$ endif
413$!
414$ if key2 .eqs. "bits32_t"
415$ then
416$ write tf "#ifndef ''key2'"
417$ write tf "#define ''key2' int"
418$ write tf "#endif"
419$ goto cfgh_in_loop1
420$ endif
421$!
422$ if key2 .eqs. "u_bits32_t"
423$ then
424$ write tf "#ifndef ''key2'"
425$ write tf "#define ''key2' unsigned int"
426$ write tf "#endif"
427$ goto cfgh_in_loop1
428$ endif
429$!
430$ if key2 .eqs. "intmax_t"
431$ then
432$ write tf "#ifndef ''key2'"
433$ write tf "#ifdef __VAX"
434$ write tf "#define ''key2' long"
435$ write tf "#else"
436$ write tf "#define ''key2' long long"
437$ write tf "#endif"
438$ write tf "#endif"
439$ goto cfgh_in_loop1
440$ endif
441$!
442$ if key2 .eqs. "uintmax_t"
443$ then
444$ write tf "#ifndef ''key2'"
445$ write tf "#ifdef __VAX"
446$ write tf "#define ''key2' unsigned long"
447$ write tf "#else"
448$ write tf "#define ''key2' unsigned long long"
449$ write tf "#endif"
450$ write tf "#endif"
451$ goto cfgh_in_loop1
452$ endif
453$!
454$ if key2 .eqs. "socklen_t"
455$ then
456$ write tf "#ifndef ''key2'"
457$ write tf "#define ''key2' int"
458$ write tf "#endif"
459$ goto cfgh_in_loop1
460$ endif
461$!
462$ if key2 .eqs. "GETGROUPS_T"
463$ then
464$ write tf "#ifndef ''key2'"
465$ write tf "#define ''key2' gid_t"
466$ write tf "#endif"
467$ goto cfgh_in_loop1
468$ endif
469$!
470$ if key2 .eqs. "HAVE_DECL_SYS_SIGLIST"
471$ then
472$ write tf "#ifndef ''key2'"
473$ write tf "#define ''key2' 0"
474$ write tf "#endif"
475$ goto cfgh_in_loop1
476$ endif
477$!
478$ if key2 .eqs. "HAVE_SYS_ERRLIST"
479$ then
480$ write tf "#ifndef ''key2'"
481$ write tf "#define ''key2' 1"
482$ write tf "#endif"
483$ goto cfgh_in_loop1
484$ endif
485$!
486$ if key2 .eqs. "HAVE_STRUCT_DIRENT_D_INO"
487$ then
488$ write tf "#ifndef ''key2'"
489$ write tf "#define ''key2' 1"
490$ write tf "#endif"
491$ goto cfgh_in_loop1
492$ endif
493$!
494$ if key2 .eqs. "HAVE_STRUCT_TIMEVAL"
495$ then
496$ write tf "#ifndef ''key2'"
497$ write tf "#define ''key2' 1"
498$ write tf "#endif"
499$ goto cfgh_in_loop1
500$ endif
501$!
502$! ! The header files have this information, however
503$! ! The ioctl() call only works on sockets.
504$! if key2 .eqs. "FIONREAD_IN_SYS_IOCTL"
505$! then
506$! write tf "#ifndef ''key2'"
507$! write tf "#define ''key2' 1"
508$! write tf "#endif"
509$! goto cfgh_in_loop1
510$! endif
511$!
512$! ! The header files have this information, however
513$! ! The ioctl() call only works on sockets.
514$! if key2 .eqs. "GWINSZ_IN_SYS_IOCTL"
515$! then
516$! write tf "#ifndef ''key2'"
517$! write tf "#define ''key2' 1"
518$! write tf "#endif"
519$! goto cfgh_in_loop1
520$! endif
521$!
522$! ! The header files have this information, however
523$! ! The ioctl() call only works on sockets.
524$! if key2 .eqs. "STRUCT_WINSIZE_IN_SYS_IOCTL"
525$! then
526$! write tf "#ifndef ''key2'"
527$! write tf "#define ''key2' 0"
528$! write tf "#endif"
529$! goto cfgh_in_loop1
530$! endif
531$!
532$ if key2 .eqs. "HAVE_STRUCT_TM_TM_ZONE"
533$ then
534$ write tf "#ifndef ''key2'"
535$ write tf "#define ''key2' 1"
536$ write tf "#endif"
537$ goto cfgh_in_loop1
538$ endif
539$!
540$ if key2 .eqs. "HAVE_TM_ZONE"
541$ then
542$ write tf "#ifndef ''key2'"
543$ write tf "#define ''key2' 1"
544$ write tf "#endif"
545$ goto cfgh_in_loop1
546$ endif
547$!
548$ if key2 .eqs. "HAVE_TIMEVAL"
549$ then
550$ write tf "#ifndef ''key2'"
551$ write tf "#define ''key2' 1"
552$ write tf "#endif"
553$ goto cfgh_in_loop1
554$ endif
555$!
556$ if key2 .eqs. "WEXITSTATUS_OFFSET"
557$ then
558$ write tf "#ifndef ''key2'"
559$ write tf "#define ''key2' 2"
560$ write tf "#endif"
561$ goto cfgh_in_loop1
562$ endif
563$!
564$ if key2 .eqs. "HAVE_GETPW_DECLS"
565$ then
566$ write tf "#ifndef ''key2'"
567$ write tf "#define ''key2' 1"
568$ write tf "#endif"
569$ goto cfgh_in_loop1
570$ endif
571$!
572$ if key2 .eqs. "HAVE_DECL_CONFSTR"
573$ then
574$ write tf "#ifndef ''key2'"
575$ write tf "#define ''key2' 1"
576$ write tf "#endif"
577$ goto cfgh_in_loop1
578$ endif
579$!
580$ if key2 .eqs. "HAVE_DECL_PRINTF"
581$ then
582$ write tf "#ifndef ''key2'"
583$ write tf "#define ''key2' 1"
584$ write tf "#endif"
585$ goto cfgh_in_loop1
586$ endif
587$!
588$ if key2 .eqs. "HAVE_DECL_SBRK"
589$ then
590$ write tf "#ifndef ''key2'"
591$ write tf "#define ''key2' 1"
592$ write tf "#endif"
593$ goto cfgh_in_loop1
594$ endif
595$!
596$ if key2 .eqs. "HAVE_DECL_STRSIGNAL"
597$ then
598$ write tf "#ifndef ''key2'"
599$ write tf "#define ''key2' 0"
600$ write tf "#endif"
601$ goto cfgh_in_loop1
602$ endif
603$!
604$ if key2a .eqs. "HAVE_DECL_STRTOLD"
605$ then
606$ write tf "#ifndef ''key2'"
607$ write tf "#define ''key2' 0"
608$ write tf "#endif"
609$ goto cfgh_in_loop1
610$ endif
611$!
612$ if key2 .eqs. "HAVE_DECL_STRTOIMAX"
613$ then
614$ write tf "#ifndef ''key2'"
615$ write tf "#define ''key2' 0"
616$ write tf "#endif"
617$ goto cfgh_in_loop1
618$ endif
619$!
620$ if key2 .eqs. "HAVE_DECL_STRTOL"
621$ then
622$ write tf "#ifndef ''key2'"
623$ write tf "#define ''key2' 1"
624$ write tf "#endif"
625$ goto cfgh_in_loop1
626$ endif
627$!
628$ if key2 .eqs. "HAVE_DECL_STRTOUL"
629$ then
630$ write tf "#ifndef ''key2'"
631$ write tf "#define ''key2' 1"
632$ write tf "#endif"
633$ goto cfgh_in_loop1
634$ endif
635$!
636$ if key2 .eqs. "HAVE_DECL_STRTOUMAX"
637$ then
638$ write tf "#ifndef ''key2'"
639$ write tf "#define ''key2' 0"
640$ write tf "#endif"
641$ goto cfgh_in_loop1
642$ endif
643$!
644$ if key2 .eqs. "GETPGRP_VOID"
645$ then
646$ write tf "#ifndef ''key2'"
647$ write tf "#define ''key2' 1"
648$ write tf "#endif"
649$ goto cfgh_in_loop1
650$ endif
651$!
652$ if key2 .eqs. "NAMED_PIPES_MISSING"
653$ then
654$ write tf "#ifndef ''key2'"
655$ write tf "#define ''key2' 1"
656$ write tf "#endif"
657$ goto cfgh_in_loop1
658$ endif
659$!
660$ if key2 .eqs. "OPENDIR_NOT_ROBUST"
661$ then
662$ write tf "#ifndef ''key2'"
663$ write tf "#define ''key2' 1"
664$ write tf "#endif"
665$ goto cfgh_in_loop1
666$ endif
667$!
668$ if key2 .eqs. "PGRP_PIPE"
669$ then
670$ write tf "#ifndef ''key2'"
671$ write tf "#define ''key2' 1"
672$ write tf "#endif"
673$ goto cfgh_in_loop1
674$ endif
675$!
676$ if key2 .eqs. "CAN_REDEFINE_GETENV"
677$ then
678$ write tf "#ifndef ''key2'"
679$ write tf "#define ''key2' 1"
680$ write tf "#endif"
681$ goto cfgh_in_loop1
682$ endif
683$!
684$ if key2 .eqs. "HAVE_PRINTF_A_FORMAT"
685$ then
686$ write tf "#ifndef ''key2'"
687$ write tf "#define ''key2' 1"
688$ write tf "#endif"
689$ goto cfgh_in_loop1
690$ endif
691$!
692$ if key2 .eqs. "CTYPE_NON_ASCII"
693$ then
694$ write tf "#ifndef ''key2'"
695$ write tf "#define ''key2' 1"
696$ write tf "#endif"
697$ goto cfgh_in_loop1
698$ endif
699$!
700$ if key2 .eqs. "HAVE_LANGINFO_CODESET"
701$ then
702$ write tf "#ifndef ''key2'"
703$ write tf "#define ''key2' 0"
704$ write tf "#endif"
705$ goto cfgh_in_loop1
706$ endif
707$!
708$! This wants execve() to do this automagically to pass.
709$! if key2 .eqs. "HAVE_HASH_BANG_EXEC"
710$! then
711$! write tf "#ifndef ''key2'"
712$! write tf "#define ''key2' 1"
713$! write tf "#endif"
714$! goto cfgh_in_loop1
715$! endif
716$!
717$ if key2 .eqs. "ICONV_CONST"
718$ then
719$ write tf "#ifndef ''key2'"
720$ write tf "#define ''key2'"
721$ write tf "#endif"
722$ goto cfgh_in_loop1
723$ endif
724$!
725$ if key2 .eqs. "VOID_SIGHANDLER"
726$ then
727$ write tf "#ifndef ''key2'"
728$ write tf "#define ''key2' 1"
729$ write tf "#endif"
730$ goto cfgh_in_loop1
731$ endif
732$!
733$ if key2 .eqs. "HAVE_POSIX_SIGNALS"
734$ then
735$ write tf "#ifndef ''key2'"
736$ write tf "#define ''key2' 1"
737$ write tf "#endif"
738$ goto cfgh_in_loop1
739$ endif
740$!
741$ if key2 .eqs. "UNUSABLE_RT_SIGNALS"
742$ then
743$ write tf "#ifndef ''key2'"
744$ write tf "#define ''key2' 1"
745$ write tf "#endif"
746$ goto cfgh_in_loop1
747$ endif
748$!
749$ if key2a .eqs. "HAVE_DECL_FPURGE"
750$ then
751$ write tf "#ifndef ''key2a'"
752$ write tf "#define ''key2a' 1"
753$ write tf "#endif"
754$ goto cfgh_in_loop1
755$ endif
756$!
757$ if key2 .eqs. "HAVE_DECL_SETREGID"
758$ then
759$ write tf "#ifndef ''key2'"
760$ write tf "#define ''key2' 1"
761$ write tf "#endif"
762$ goto cfgh_in_loop1
763$ endif
764$!
765$ if key2 .eqs. "HAVE_POSIX_SIGSETJMP"
766$ then
767$ write tf "#ifndef ''key2'"
768$ write tf "#define ''key2' 1"
769$ write tf "#endif"
770$ goto cfgh_in_loop1
771$ endif
772$!
773$ if key2b .eqs. "RAND" .and. key2c .nes. "" .and. key2d .eqs. ""
774$ then
775$ if (key2c .eqs. "EGD") .or. -
776 (key2c .eqs. "STATUS") .or. -
777 (key2c .eqs. "SCREEN")
778$ then
779$ if f$search("''ssl_header_dir'rand.h") .nes. ""
780$ then
781$ write tf "#ifndef ''key2'"
782$ write tf "#define ''key2' 1"
783$ write tf "#endif"
784$ else
785$ write tf "/* #undef ''key2' */"
786$ endif
787$ endif
788$ endif
789$!
790$ if key2 .eqs. "STRCOLL_BROKEN"
791$ then
792$ write tf "#ifndef ''key2'"
793$ write tf "#define ''key2' 1"
794$ write tf "#endif"
795$ goto cfgh_in_loop1
796$ endif
797$!
798$ if key2 .eqs. "DUP_BROKEN"
799$ then
800$ write tf "#ifndef ''key2'"
801$ write tf "#define ''key2' 1"
802$ write tf "#endif"
803$ goto cfgh_in_loop1
804$ endif
805$!
806$! This is for a test that getcwd(0,0) works.
807$! It does not on VMS.
808$!--------------------------
809$ if key2 .eqs. "GETCWD_BROKEN"
810$ then
811$ write sys$output ""
812$ write sys$output -
813 "%CONFIG_H-I-NONPORT, ''key2' being tested for!"
814$ write sys$output -
815 "-CONFIG_H-I-GETCWD, GETCWD(0,0) does not work on VMS."
816$ write sys$output -
817 "-CONFIG_H-I-GETCWD2, Work around hack probably required."
818$ write sys$output -
819 "-CONFIG_H-I-REVIEW, Manual Code review required!"
820$ if update_config_vms
821$ then
822$ open/append tfcv sys$disk:[]config_vms.h
823$ write tfcv ""
824$ write tfcv -
825 "/* Check config.h for use of ''key2' settings */"
826$ write tfcv ""
827$ close tfcv
828$ endif
829$
830$ goto cfgh_in_loop1
831$ endif
832$!
833$ if (key2a .eqs. "HAVE") .or. (key2a .eqs. "STAT") .or. -
834 (key2 .eqs. "USE_IPV6") .or. (key2b .eqs. "LDAP")
835$ then
836$!
837$! Process extra underscores
838$!------------------------------------
839$ if f$locate("HAVE___", key2) .lt. key2_len
840$ then
841$ key2b = "__" + key2d
842$ key2d = ""
843$ double_under = 1
844$ else
845$ if f$locate("HAVE__", key2) .lt. key2_len
846$ then
847$ key2b = "_" + key2c
848$ key2c = ""
849$ double_under = 1
850$ endif
851$ endif
852$!
853$ if (key2_h .eqs. "_H") .or. (key2 .eqs. "USE_IPV6") .or. -
854 (key2b .eqs. "LDAP")
855$ then
856$!
857$! Looking for a header file
858$!---------------------------------------
859$ headf = key2b
860$ if key2c .nes. "" then headf = headf + "_" + key2c
861$ if key2d .nes. "" then headf = headf + "_" + key2d
862$!
863$! (key2b .eqs. "READLINE")
864$!
865$! Some special parsing
866$!------------------------------------------
867$ if (key2b .eqs. "SYS") .or. (key2b .eqs. "ARPA") .or. -
868 (key2b .eqs. "NET") .or. (key2b .eqs. "NETINET")
869$ then
870$ if key2c .nes. ""
871$ then
872$ headf = key2c
873$ if key2d .nes. "" then headf = key2c + "_" + key2d
874$ endif
875$ endif
876$!
877$! And of course what's life with out some special cases
878$!--------------------------------------------------------------------
879$ if key2 .eqs. "USE_IPV6"
880$ then
881$ headf = "in6"
882$ endif
883$!
884$ if key2b .eqs. "LDAP"
885$ then
886$ if (key2 .eqs. "HAVE_LDAP_SSL") .or. -
887 (key2 .eqs. "HAVE_LDAP_URL_PARSE")
888$ then
889$ headf = "ldap"
890$ endif
891$ endif
892$!
893$!
894$ if key2b .eqs. "FILE"
895$ then
896$ write sys$output ""
897$ write sys$output -
898 "%CONFIG_H-I-NONPORT, ''key2' being asked for!"
899$ write sys$output -
900 "-CONFIG_H-I-FILE_OLD, file.h will not be configured as is obsolete!"
901$ write sys$output -
902 "-CONFIG_H_I-FCNTL_NEW, "Expecting fcntl.h to be configured instead!"
903$ write sys$output -
904 "-CONFIG_H_I-FCNTL_CHK, "Unable to verify at this time!"
905$ write sys$output -
906 "-CONFIG_H-I-REVIEW, Manual Code review required!"
907$!
908$ if update_config_vms
909$ then
910$ open/append tfcv sys$disk:[]config_vms.h
911$ write tfcv ""
912$ write tfcv -
913 "/* Check config.h for use of fcntl.h instead of file.h */"
914$ write tfcv ""
915$ close tfcv
916$ endif
917$ endif
918$!
919$! Now look it up in the DEC C RTL
920$!---------------------------------------------
921$ define/user sys$output nl:
922$ define/user sys$error nl:
923$ search/output=nl: 'dchfile' |'headf'|/exact
924$ if '$severity' .eq. 1
925$ then
926$ if key64 then write tf "#ifndef __VAX"
927$ write tf "#ifndef ''key2'"
928$ write tf "#define ''key2' 1"
929$if p2 .nes. "" then write sys$output "''dchfile' - #define ''key2' 1"
930$ write tf "#endif"
931$ if key64 then write tf "#endif"
932$set nover
933$ goto cfgh_in_loop1
934$ endif
935$!
936$!
937$! Now look it up in the DEC C STARLET_C
938$!---------------------------------------------
939$ define/user sys$output nl:
940$ define/user sys$error nl:
941$ search/output=nl: 'starhfile' |'headf'|/exact
942$ if '$severity' .eq. 1
943$ then
944$ if key64 then write tf "#ifndef __VAX"
945$ write tf "#ifndef ''key2'"
946$ write tf "#define ''key2' 1"
947$if p2 .nes. "" then write sys$output "''starfile' - #define ''key2' 1"
948$ write tf "#endif"
949$ if key64 then write tf "#endif"
950$set nover
951$ goto cfgh_in_loop1
952$ endif
953$!
954$! Now look for OPENSSL headers
955$!---------------------------------------------------------
956$ if key2b .eqs. "OPENSSL"
957$ then
958$ headf = headf - "OPENSSL_"
959$ header = f$search("''ssl_header_dir'''headf'.h")
960$ if header .nes. ""
961$ then
962$ write tf "#ifndef ''key2'"
963$ write tf "#define ''key2' 1"
964$ write tf "#endif"
965$set nover
966$ goto cfgh_in_loop1
967$ endif
968$ endif
969$!
970$! Now look for Kerberos
971$!------------------------------------------------------------
972$ if key2b .eqs. "GSSAPI"
973$ then
974$ header_dir = "sys$sysroot:[kerberos.include]"
975$ headf = headf - "GSSAPI_"
976$ header = f$search("''header_dir'''headf'.h")
977$ if header .nes. ""
978$ then
979$ write tf "#ifndef ''key2'"
980$ write tf "#define ''key2' 1"
981$ write tf "#endif"
982$set nover
983$ goto cfgh_in_loop1
984$ endif
985$ endif
986$!
987$set nover
988$ else
989$!
990$! Looking for a routine or a symbol
991$!------------------------------------------------
992$ if key2c .eqs. "MACRO"
993$ then
994$ if (key2b .eqs. "FILE") .or. (key2b .eqs. "DATE") -
995 .or. (key2b .eqs. "LINE") .or. (key2b .eqs. "TIME")
996$ then
997$ write tf "#ifndef HAVE_''key2b'"
998$ write tf "#define HAVE_''key2b' 1"
999$ write tf "#endif"
1000$ endif
1001$ goto cfgh_in_loop1
1002$ endif
1003$!
1004$! Special false tests
1005$!-------------------------------------
1006$ if double_under
1007$ then
1008$ if key2b .eqs. "_FCNTL" .or. key2b .eqs. "__FCNTL"
1009$ then
1010$ write tf "/* #undef HAVE_''key2b' */"
1011$ goto cfgh_in_loop1
1012$ endif
1013$!
1014$ if key2b .eqs. "_STAT" .or. key2b .eqs. "__STAT"
1015$ then
1016$ write tf "/* #undef HAVE_''key2b' */"
1017$ goto cfgh_in_loop1
1018$ endif
1019$!
1020$ if key2b .eqs. "_READ" .or. key2b .eqs. "__READ"
1021$ then
1022$ write tf "/* #undef HAVE_''key2b' */"
1023$ goto cfgh_in_loop1
1024$ endif
1025$ endif
1026$!
1027$ keysym = key2b
1028$ if key2c .nes. "" then keysym = keysym + "_" + key2c
1029$ if key2d .nes. "" then keysym = keysym + "_" + key2d
1030$ if key2e .nes. "" then keysym = keysym + "_" + key2e
1031$!
1032$!
1033$! Stat structure members
1034$!-------------------------------------
1035$ if key2b .eqs. "STRUCT"
1036$ then
1037$ if key2c .eqs. "STAT" .and (key2d .nes. "")
1038$ then
1039$ key2b = key2b + "_" + key2c + "_" + key2d
1040$ key2c = key2e
1041$ key2d = ""
1042$ key2e = ""
1043$ endif
1044$ endif
1045$ if (key2b .eqs. "ST") .or. (key2b .eqs. "STRUCT_STAT_ST")
1046$ then
1047$ keysym = "ST" + "_" + key2c
1048$ keysym = f$edit(keysym,"LOWERCASE")
1049$ endif
1050$ if key2a .eqs. "STAT"
1051$ then
1052$ if (f$locate("STATVFS", key2b) .eq. 0) .and. key2c .eqs. ""
1053$ then
1054$ keysym = f$edit(key2b, "LOWERCASE")
1055$ endif
1056$!$ if (key2b .eqs. "STATVFS" .or. key2b .eqs. "STATFS2" -
1057$! .or. key2b .eqs. "STATFS3") .and. key2c .nes. ""
1058$!
1059$ if (key2b .eqs. "STATVFS") .and. key2c .nes. ""
1060$ then
1061$! Should really verify that the structure
1062$! named by key2b actually exists first.
1063$!------------------------------------------------------------
1064$!
1065$! Statvfs structure members
1066$!-------------------------------------------------
1067$ keysym = "f_" + f$edit(key2c,"LOWERCASE")
1068$ endif
1069$ endif
1070$!
1071$! UTMPX structure members
1072$!--------------------------------------
1073$ if key2b .eqs. "UT" .and. key2c .eqs. "UT"
1074$ then
1075$ keysym = "ut_" + f$edit(key2d,"LOWERCASE")
1076$ endif
1077$!
1078$ if f$locate("MMAP",key2) .lt. key2_len
1079$ then
1080$ write sys$output ""
1081$ write sys$output -
1082 "%CONFIG_H-I-NONPORT, ''key2' being asked for!"
1083$ write sys$output -
1084 "-CONFIG_H-I-MMAP, MMAP operations only work on STREAM and BINARY files!"
1085$ write sys$output -
1086 "-CONFIG_H-I-REVIEW, Manual Code review required!"
1087$ if update_config_vms
1088$ then
1089$ open/append tfcv sys$disk:[]config_vms.h
1090$ write tfcv ""
1091$ write tfcv -
1092 "/* Check config.h for use of ''key2' settings */"
1093$ write tfcv ""
1094$ close tfcv
1095$ endif
1096$ endif
1097$!
1098$!
1099$ if keysym .eqs. "CRYPT"
1100$ then
1101$ write sys$output ""
1102$ write sys$output -
1103 "%CONFIG_H-I-NONPORT, ''key2' being asked for!"
1104$ write sys$output -
1105 "-CONFIG_H-I-CRYPT, CRYPT operations on the VMS SYSUAF may not work!"
1106$ write sys$output -
1107 "-CONFIG_H-I-REVIEW, Manual Code review required!"
1108$ if update_config_vms
1109$ then
1110$ open/append tfcv sys$disk:[]config_vms.h
1111$ write tfcv ""
1112$ write tfcv -
1113 "/* Check config.h for use of ''keysym' */"
1114$ write tfcv ""
1115$ close tfcv
1116$ endif
1117$ endif
1118$!
1119$!
1120$ if keysym .eqs. "EXECL"
1121$ then
1122$ write sys$output ""
1123$ write sys$output -
1124 "%CONFIG_H-I-NONPORT, ''key2' being asked for!"
1125$ write sys$output -
1126 "-CONFIG_H-I-EXCEL, EXECL configured, Will probably not work."
1127$ write sys$output -
1128 "-CONFIG_H-I-REVIEW, Manual Code review required!"
1129$ if update_config_vms
1130$ then
1131$ open/append tfcv sys$disk:[]config_vms.h
1132$ write tfcv ""
1133$ write tfcv -
1134 "/* Check config.h for use of ''keysym' */"
1135$ write tfcv ""
1136$ close tfcv
1137$ endif
1138$ endif
1139$!
1140$!
1141$! Process if cpp supports ANSI-C stringizing '#' operator
1142$!-----------------------------------------------------------------------
1143$ if keysym .eqs. "STRINGIZE"
1144$ then
1145$ write tf "#ifndef HAVE_STRINGIZE"
1146$ write tf "#define HAVE_STRINGIZE 1"
1147$ write tf "#endif"
1148$ goto cfgh_in_loop1
1149$ endif
1150$!
1151$ if keysym .eqs. "VOLATILE"
1152$ then
1153$ write tf "#ifndef HAVE_VOLATILE"
1154$ write tf "#define HAVE_VOLATILE 1"
1155$ write tf "#endif"
1156$ goto cfgh_in_loop1
1157$ endif
1158$!
1159$ if keysym .eqs. "ALLOCA"
1160$ then
1161$ write tf "#ifndef HAVE_ALLOCA"
1162$ write tf "#define HAVE_ALLOCA 1"
1163$ write tf "#endif"
1164$ goto cfgh_in_loop1
1165$ endif
1166$!
1167$ if keysym .eqs. "ERRNO_DECL"
1168$ then
1169$ write tf "#ifndef HAVE_ERRNO_DECL"
1170$ write tf "#define HAVE_ERRNO_DECL 1"
1171$ write tf "#endif"
1172$ goto cfgh_in_loop1
1173$ endif
1174$!
1175$! May need to test compiler version
1176$!-----------------------------------------------
1177$ if keysym .eqs. "LONG_LONG"
1178$ then
1179$ write tf "#ifndef __VAX"
1180$ write tf "#pragma message disable longlongtype"
1181$ write tf "#ifndef HAVE_LONG_LONG"
1182$ write tf "#define HAVE_LONG_LONG 1"
1183$ write tf "#endif"
1184$ write tf "#endif"
1185$ goto cfgh_in_loop1
1186$ endif
1187$!
1188$! May need to test compiler version
1189$!-----------------------------------------------
1190$ if keysym .eqs. "UNSIGNED_LONG_LONG"
1191$ then
1192$ write tf "#ifndef __VAX"
1193$ write tf "#pragma message disable longlongtype"
1194$ write tf "#ifndef HAVE_UNSIGNED_LONG_LONG"
1195$ write tf "#define HAVE_UNSIGNED_LONG_LONG 1"
1196$ write tf "#endif"
1197$ write tf "#endif"
1198$ goto cfgh_in_loop1
1199$ endif
1200$!
1201$! May need to test compiler version
1202$!-----------------------------------------------
1203$ if keysym .eqs. "UNSIGNED_LONG_LONG_INT"
1204$ then
1205$ write tf "#ifndef __VAX"
1206$ write tf "#pragma message disable longlongtype"
1207$ write tf "#ifndef HAVE_UNSIGNED_LONG_LONG_INT"
1208$ write tf "#define HAVE_UNSIGNED_LONG_LONG_INT 1"
1209$ write tf "#endif"
1210$ write tf "#endif"
1211$ goto cfgh_in_loop1
1212$ endif
1213$!
1214$! May need to test compiler version
1215$!-----------------------------------------------
1216$ if keysym .eqs. "LONG_DOUBLE"
1217$ then
1218$ write tf "#ifndef __VAX"
1219$ write tf "#pragma message disable longlongtype"
1220$ write tf "#ifndef HAVE_LONG_DOUBLE"
1221$ write tf "#define HAVE_LONG_DOUBLE 1"
1222$ write tf "#endif"
1223$ write tf "#endif"
1224$ goto cfgh_in_loop1
1225$ endif
1226$!
1227$ if keysym .eqs. "FCNTL_LOCK"
1228$ then
1229$ write sys$output -
1230 "%CONFIG_H-I-NONPORT, ''key2' being asked for!
1231$ write sys$output -
1232 "-CONFIG_H-I-REVIEW, Manual Code review required!"
1233$ goto cfgh_in_loop1
1234$ endif
1235$!
1236$!
1237$! These libraries are provided by the DEC C RTL
1238$!-------------------------------------------------------------
1239$ if keysym .eqs. "LIBINET" .or. keysym .eqs. "LIBSOCKET"
1240$ then
1241$ write tf "#ifndef HAVE_''keysym'"
1242$ write tf "#define HAVE_''keysym' 1"
1243$if p2 .nes. "" then write sys$output "''decc_shr' #define ''keysym' 1"
1244$ write tf "#endif"
1245$ goto cfgh_in_loop1
1246$ endif
1247$!
1248$ if keysym .eqs. "HERRNO" then keysym = "h_errno"
1249$ if keysym .eqs. "UTIMBUF" then keysym = "utimbuf"
1250$ if key2c .eqs. "STRUCT"
1251$ then
1252$ keysym = f$edit(key2d,"LOWERCASE")
1253$ else
1254$ if key2_h .eqs. "_T"
1255$ then
1256$ if key2_t .eqs. "_TYPE"
1257$ then
1258$ keysym = f$extract(0, key2_len - 5, key2) - "HAVE_"
1259$ endif
1260$ keysym = f$edit(keysym,"LOWERCASE")
1261$ endif
1262$ endif
1263$!
1264$! Check the DEC C RTL shared image first
1265$!------------------------------------------------------
1266$ if f$search(tfile1) .nes. "" then delete 'tfile1';*
1267$ define/user sys$output nl:
1268$ define/user sys$error nl:
1269$ search/format=nonull/out='tfile1' 'decc_shr' 'keysym'
1270$ if '$severity' .eq. 1
1271$ then
1272$!
1273$! Not documented, but from observation
1274$!------------------------------------------------------
1275$ define/user sys$output nl:
1276$ define/user sys$error nl:
1277$ if arch_type .eq. 3
1278$ then
1279$ keyterm = "''keysym'<SOH>"
1280$ else
1281$ if arch_type .eq. 2
1282$ then
1283$ keyterm = "''keysym'<BS>"
1284$ else
1285$ keyterm = "''keysym'<STX>"
1286$ endif
1287$ endif
1288$ search/out=nl: 'tfile1' -
1289 "$''keyterm'","$g''keyterm'","$__utc_''keyterm'",-
1290 "$__utctz_''keyterm'","$__bsd44_''keyterm'","$bsd_''keyterm'",-
1291 "$''keysym'decc$","$G''keysym'decc$","$GX''keyterm'"
1292$ severity = '$severity'
1293$!
1294$!
1295$! Of course the 64-bit stuff is different
1296$!---------------------------------------------------------
1297$ if severity .ne. 1 .and. key64
1298$ then
1299$ define/user sys$output nl:
1300$ define/user sys$error nl:
1301$ search/out=nl: 'tfile1' "$_''keyterm'"
1302$! search/out 'tfile1' "$_''keyterm'"
1303$ severity = '$severity'
1304$ endif
1305$!
1306$! Unix compatibility routines
1307$!---------------------------------------------
1308$ if severity .ne. 1
1309$ then
1310$ define/user sys$output nl:
1311$ define/user sys$error nl:
1312$ search/out=nl: 'tfile1' -
1313 "$__unix_''keyterm'","$__vms_''keyterm'","$_posix_''keyterm'"
1314$ severity = '$severity'
1315$ endif
1316$!
1317$! Show the result of the search
1318$!------------------------------------------------
1319$ if 'severity' .eq. 1
1320$ then
1321$ if key64 then write tf "#ifndef __VAX"
1322$ write tf "#ifndef ''key2'"
1323$ write tf "#define ''key2' 1"
1324$if p2 .nes. "" then write sys$output "''decc_shr' #define ''key2' 1"
1325$ write tf "#endif"
1326$ if key64 then write tf "#endif"
1327$ goto cfgh_in_loop1
1328$ endif
1329$ endif
1330$ if f$search(tfile1) .nes. "" then delete 'tfile1';*
1331$!
1332$! Check the DECC Header files next
1333$!----------------------------------------------
1334$ define/user sys$output nl:
1335$ define/user sys$error nl:
1336$ search/out=nl: 'decc_rtldef' -
1337 "''keysym';", "''keysym'[", "struct ''keysym'"/exact
1338$ severity = '$severity'
1339$ if severity .eq. 1
1340$ then
1341$ if key64 then write tf "#ifndef __VAX"
1342$ write tf "#ifndef ''key2'"
1343$ write tf "#define ''key2' 1"
1344$if p2 .nes. "" then write sys$output "''decc_rtldef' #define ''key2' 1"
1345$ write tf "#endif"
1346$ if key64 then write tf "#endif"
1347$ goto cfgh_in_loop1
1348$ endif
1349$!
1350$! Check kerberos
1351$!--------------------------------------------
1352$ if f$search("SYS$SYSROOT:[kerberos]include.dir") .nes. ""
1353$ then
1354$ test_mit = "SYS$SYSROOT:[kerberos.include]gssapi_krb5.h"
1355$ if (key2 .eqs. "HAVE_GSSAPI")
1356$ then
1357$ write tf "#ifndef ''key2'"
1358$ write tf "#define ''key2' 1"
1359$ write tf "#endif"
1360$ goto cfgh_in_loop1
1361$ endif
1362$ endif
1363$!
1364$ endif
1365$ write tf "/* ", xline, " */"
1366$ goto cfgh_in_loop1
1367$ endif
1368$!
1369$!
1370$! Process SIZEOF directives found in SAMBA and others
1371$!----------------------------------------------------------
1372$ if key2a .eqs. "SIZEOF"
1373$ then
1374$ if key2b .eqs. "INO" .and. key2_h .eqs. "_T"
1375$ then
1376$ write tf "#ifndef SIZEOF_INO_T"
1377$ write tf "#if !__USING_STD_STAT"
1378$ write tf "#define SIZEOF_INO_T 6"
1379$ write tf "#else"
1380$ write tf "#define SIZEOF_INO_T 8"
1381$ write tf "#endif"
1382$ write tf "#endif"
1383$ goto cfgh_in_loop1
1384$ endif
1385$ if key2b .eqs. "INTMAX" .and. key2_h .eqs. "_T"
1386$ then
1387$ write tf "#ifndef SIZEOF_INTMAX_T"
1388$ write tf "#ifdef __VAX"
1389$ write tf "#define SIZEOF_INTMAX_T 4"
1390$ write tf "#else"
1391$ write tf "#define SIZEOF_INTMAX_T 8"
1392$ write tf "#endif"
1393$ write tf "#endif"
1394$ goto cfgh_in_loop1
1395$ endif
1396$ if key2b .eqs. "OFF" .and. key2_h .eqs. "_T"
1397$ then
1398$ write tf "#ifndef SIZEOF_OFF_T"
1399$ write tf "#if __USE_OFF64_T"
1400$ write tf "#define SIZEOF_OFF_T 8"
1401$ write tf "#else"
1402$ write tf "#define SIZEOF_OFF_T 4"
1403$ write tf "#endif"
1404$ write tf "#endif"
1405$ goto cfgh_in_loop1
1406$ endif
1407$ if key2b .eqs. "CHAR" .and. key2_h .eqs. "_P"
1408$ then
1409$ write tf "#ifndef SIZEOF_CHAR_P"
1410$ write tf "#if __INITIAL_POINTER_SIZE == 64"
1411$ write tf "#define SIZEOF_CHAR_P 8"
1412$ write tf "#else"
1413$ write tf "#define SIZEOF_CHAR_P 4"
1414$ write tf "#endif"
1415$ goto cfgh_in_loop1
1416$ endif
1417$ if key2b .eqs. "VOIDP"
1418$ then
1419$ write tf "#ifndef SIZEOF_VOIDP"
1420$ write tf "#if __INITIAL_POINTER_SIZE == 64"
1421$ write tf "#define SIZEOF_VOIDP 8"
1422$ write tf "#else"
1423$ write tf "#define SIZEOF_VOIDP 4"
1424$ write tf "#endif"
1425$ write tf "#endif"
1426$ goto cfgh_in_loop1
1427$ endif
1428$ if key2b .eqs. "INT"
1429$ then
1430$ write tf "#ifndef SIZEOF_INT"
1431$ write tf "#define SIZEOF_INT 4"
1432$ write tf "#endif"
1433$ goto cfgh_in_loop1
1434$ endif
1435$ if key2b .eqs. "SIZE" .and. key2_h .eqs. "_T"
1436$ then
1437$ write tf "#ifndef SIZEOF_SIZE_T"
1438$ write tf "#define SIZEOF_SIZE_T 4"
1439$ write tf "#endif"
1440$ goto cfgh_in_loop1
1441$ endif
1442$ if key2b .eqs. "TIME" .and. key2_h .eqs. "_T"
1443$ then
1444$ write tf "#ifndef SIZEOF_TIME_T"
1445$ write tf "#define SIZEOF_TIME_T 4"
1446$ write tf "#endif"
1447$ goto cfgh_in_loop1
1448$ endif
1449$ if key2b .eqs. "DOUBLE"
1450$ then
1451$ write tf "#ifndef SIZEOF_DOUBLE"
1452$ write tf "#define SIZEOF_DOUBLE 8"
1453$ write tf "#endif"
1454$ goto cfgh_in_loop1
1455$ endif
1456$ if key2b .eqs. "LONG"
1457$ then
1458$ if key2c .eqs. ""
1459$ then
1460$ write tf "#ifndef SIZEOF_LONG"
1461$ write tf "#define SIZEOF_LONG 4"
1462$ write tf "#endif"
1463$ endif
1464$ goto cfgh_in_loop1
1465$ endif
1466$ write tf "/* ", xline, " */"
1467$ goto cfgh_in_loop1
1468$ endif
1469$!
1470$! Process NEED directives
1471$!-------------------------------
1472$ if key2a .eqs. "NEED"
1473$ then
1474$ if key2b .eqs. "STRINGS" .and. key2_h .eqs. "_H"
1475$ then
1476$ write tf "#ifndef NEED_STRINGS_H"
1477$ write tf "#define NEED_STRINGS_H 1"
1478$ write tf "#endif"
1479$ goto cfgh_in_loop1
1480$ endif
1481$ write tf "/* ", xline, " */"
1482$ goto cfgh_in_loop1
1483$ endif
1484$!
1485$! Process GETHOSTNAME directives
1486$!-------------------------------------
1487$ if key2 .eqs. "GETHOSTNAME_TYPE_ARG2"
1488$ then
1489$ write tf "#ifndef ''key2'"
1490$ write tf "#ifdef _DECC_V4_SOURCE"
1491$ write tf "#define ''key2' int"
1492$ write tf "#else"
1493$ write tf "#define ''key2' size_t"
1494$ write tf "#endif"
1495$ write tf "#endif"
1496$ goto cfgh_in_loop1
1497$ endif
1498$!
1499$! Process GETNAMEINFO directives
1500$!-------------------------------------
1501$ if key2a .eqs. "GETNAMEINFO"
1502$ then
1503$ if key2 .eqs. "GETNAMEINFO_QUAL_ARG1"
1504$ then
1505$ write tf "#ifndef ''key2'"
1506$ write tf "#define ''key2' const"
1507$ write tf "#endif"
1508$ goto cfgh_in_loop1
1509$ endif
1510$ if key2 .eqs. "GETNAMEINFO_TYPE_ARG1"
1511$ then
1512$ write tf "#ifndef ''key2'"
1513$ write tf "#define ''key2' struct sockaddr *"
1514$ write tf "#endif"
1515$ goto cfgh_in_loop1
1516$ endif
1517$ if key2 .eqs. "GETNAMEINFO_TYPE_ARG2"
1518$ then
1519$ write tf "#ifndef ''key2'"
1520$ write tf "#define ''key2' size_t"
1521$ write tf "#endif"
1522$ goto cfgh_in_loop1
1523$ endif
1524$ if key2 .eqs. "GETNAMEINFO_TYPE_ARG46"
1525$ then
1526$ write tf "#ifndef ''key2'"
1527$ write tf "#define ''key2' size_t"
1528$ write tf "#endif"
1529$ goto cfgh_in_loop1
1530$ endif
1531$ if key2 .eqs. "GETNAMEINFO_TYPE_ARG7"
1532$ then
1533$ write tf "#ifndef ''key2'"
1534$ write tf "#define ''key2' int"
1535$ write tf "#endif"
1536$ goto cfgh_in_loop1
1537$ endif
1538$ endif
1539$!
1540$! Process RECV directives
1541$!-------------------------------------
1542$ if key2a .eqs. "RECV"
1543$ then
1544$ if key2 .eqs. "RECV_TYPE_ARG1"
1545$ then
1546$ write tf "#ifndef ''key2'"
1547$ write tf "#define ''key2' int"
1548$ write tf "#endif"
1549$ goto cfgh_in_loop1
1550$ endif
1551$ if key2 .eqs. "RECV_TYPE_ARG2"
1552$ then
1553$ write tf "#ifndef ''key2'"
1554$ write tf "#define ''key2' void *"
1555$ write tf "#endif"
1556$ goto cfgh_in_loop1
1557$ endif
1558$ if key2 .eqs. "RECV_TYPE_ARG3"
1559$ then
1560$ write tf "#ifndef ''key2'"
1561$ write tf "#define ''key2' size_t"
1562$ write tf "#endif"
1563$ goto cfgh_in_loop1
1564$ endif
1565$ if key2 .eqs. "RECV_TYPE_ARG4"
1566$ then
1567$ write tf "#ifndef ''key2'"
1568$ write tf "#define ''key2' int"
1569$ write tf "#endif"
1570$ goto cfgh_in_loop1
1571$ endif
1572$ if key2 .eqs. "RECV_TYPE_RETV"
1573$ then
1574$ write tf "#ifndef ''key2'"
1575$ write tf "#define ''key2' int"
1576$ write tf "#endif"
1577$ goto cfgh_in_loop1
1578$ endif
1579$ endif
1580$!
1581$! Process SEND directives
1582$!-------------------------------------
1583$ if key2a .eqs. "SEND"
1584$ then
1585$ if key2 .eqs. "SEND_TYPE_ARG1"
1586$ then
1587$ write tf "#ifndef ''key2'"
1588$ write tf "#define ''key2' int"
1589$ write tf "#endif"
1590$ goto cfgh_in_loop1
1591$ endif
1592$ if key2 .eqs. "SEND_TYPE_ARG2"
1593$ then
1594$ write tf "#ifndef ''key2'"
1595$ write tf "#define ''key2' void *"
1596$ write tf "#endif"
1597$ goto cfgh_in_loop1
1598$ endif
1599$ if key2 .eqs. "SEND_TYPE_ARG3"
1600$ then
1601$ write tf "#ifndef ''key2'"
1602$ write tf "#define ''key2' size_t"
1603$ write tf "#endif"
1604$ goto cfgh_in_loop1
1605$ endif
1606$ if key2 .eqs. "SEND_TYPE_ARG4"
1607$ then
1608$ write tf "#ifndef ''key2'"
1609$ write tf "#define ''key2' int"
1610$ write tf "#endif"
1611$ goto cfgh_in_loop1
1612$ endif
1613$ if key2 .eqs. "SEND_TYPE_RETV"
1614$ then
1615$ write tf "#ifndef ''key2'"
1616$ write tf "#define ''key2' int"
1617$ write tf "#endif"
1618$ goto cfgh_in_loop1
1619$ endif
1620$ endif
1621$!
1622$!
1623$! Process STATFS directives
1624$!-------------------------------
1625$! if key2a .eqs. "STATFS"
1626$! then
1627$! write tf "/* ", xline, " */"
1628$! goto cfgh_in_loop1
1629$! endif
1630$!
1631$! Process inline directive
1632$!------------------------------
1633$ if key2 .eqs. "inline"
1634$ then
1635$ write tf "#ifndef inline"
1636$ write tf "#define inline __inline"
1637$ write tf "#endif"
1638$ goto cfgh_in_loop1
1639$ endif
1640$!
1641$! Process restrict directive
1642$!--------------------------------
1643$ if key2 .eqs. "restrict"
1644$ then
1645$ write tf "#ifndef restrict"
1646$ write tf "#define restrict __restrict"
1647$ write tf "#endif"
1648$ goto cfgh_in_loop1
1649$ endif
1650$!
1651$! Process PROTOTYPES directive
1652$!-------------------------------------
1653$ if key2 .eqs. "PROTOTYPES"
1654$ then
1655$ write tf "#ifndef PROTOTYPES"
1656$ write tf "#define PROTOTYPES 1"
1657$ write tf "#endif"
1658$ goto cfgh_in_loop1
1659$ endif
1660$!
1661$! Special for SEEKDIR_RETURNS_VOID
1662$!---------------------------------------
1663$ if key2 .eqs. "SEEKDIR_RETURNS_VOID"
1664$ then
1665$ write tf "#ifndef SEEKDIR_RETURNS_VOID"
1666$ write tf "#define SEEKDIR_RETURNS_VOID 1"
1667$ write tf "#endif"
1668$ endif
1669$!
1670$! Unknown - See if CONFIGURE can give a clue for this
1671$!----------------------------------------------------------
1672$ pflag = 0
1673$ set_flag = 0
1674$! gproj_name = proj_name - "_VMS" - "-VMS"
1675$ if f$search(tfile1) .nes. "" then delete 'tfile1';*
1676$ define/user sys$output nl:
1677$ define/user sys$error nl:
1678$! if f$locate("FILE", key2) .lt. key2_len then pflag = 1
1679$! if f$locate("DIR", key2) .eq. key2_len - 3 then pflag = 1
1680$! if f$locate("PATH", key2) .eq. key2_len - 4 then pflag = 1
1681$!
1682$ search/out='tfile1' 'configure_script' "''key2'="/exact
1683$ search_sev = '$severity'
1684$ if 'search_sev' .eq. 1
1685$ then
1686$ open/read/err=unknown_cf_rd_error sf 'tfile1'
1687$search_file_rd_loop:
1688$ read/end=unknown_cf_rd_err sf line_in
1689$ line_in = f$edit(line_in, "TRIM")
1690$ skey1 = f$element(0,"=",line_in)
1691$ if skey1 .eqs. key2
1692$ then
1693$ skey2 = f$element(1,"=",line_in)
1694$ skey2a = f$extract(0,2,skey2)
1695$!
1696$!
1697$! We can not handle assignment to shell symbols.
1698$! For now skip them.
1699$!------------------------------------------------------------
1700$ if f$locate("$", skey2) .lt. f$length(skey2)
1701$ then
1702$ write tf "/* ", xline, " */"
1703$ set_flag = 1
1704$ goto found_in_configure
1705$ endif
1706$!
1707$! Keep these two cases separate to make it easier to add
1708$! more future intelligence to this routine
1709$!----------------------------------------------------------------------
1710$ if skey2a .eqs. """`"
1711$ then
1712$! if pflag .eq. 1
1713$! then
1714$! write tf "#ifndef ''key2'"
1715$! write tf "#define ",key2," """,gproj_name,"_",key2,""""
1716$! write tf "#endif"
1717$! else
1718$! Ignore this for now
1719$!------------------------------------------
1720$ write tf "/* ", xline, " */"
1721$! endif
1722$ set_flag = 1
1723$ goto found_in_configure
1724$ endif
1725$ if skey2a .eqs. """$"
1726$ then
1727$! if pflag .eq. 1
1728$! then
1729$! write tf "#ifndef ''key2'"
1730$! write tf "#define ",key2," """,gproj_name,"_",key2,""""
1731$! write tf "#endif"
1732$! else
1733$! Ignore this for now
1734$!-------------------------------------------
1735$ write tf "/* ", xline, " */"
1736$! endif
1737$ set_flag = 1
1738$ goto found_in_configure
1739$ endif
1740$!
1741$! Remove multiple layers of quotes if present
1742$!----------------------------------------------------------
1743$ if f$extract(0, 1, skey2) .eqs. "'"
1744$ then
1745$ skey2 = skey2 - "'" - "'" - "'" - "'"
1746$ endif
1747$ if f$extract(0, 1, skey2) .eqs. """"
1748$ then
1749$ skey2 = skey2 - """" - """" - """" - """"
1750$ endif
1751$ write tf "#ifndef ''key2'"
1752$ if skey2 .eqs. ""
1753$ then
1754$ write tf "#define ",key2
1755$ else
1756$! Only quote non-numbers
1757$!----------------------------------------
1758$ if f$string(skey2+0) .eqs. skey2
1759$ then
1760$ write tf "#define ",key2," ",skey2
1761$ else
1762$ write tf "#define ",key2," """,skey2,""""
1763$ endif
1764$ endif
1765$ write tf "#endif"
1766$ set_flag = 1
1767$ else
1768$ goto search_file_rd_loop
1769$! if pflag .eq. 1
1770$! then
1771$! write tf "#ifndef ''key2'"
1772$! write tf "#define ",key2," """,gproj_name,"_",key2,""""
1773$! write tf "#endif"
1774$! set_flag = 1
1775$! endif
1776$ endif
1777$found_in_configure:
1778$unknown_cf_rd_err:
1779$ if f$trnlnm("sf","lnm$process",,"SUPERVISOR") .nes. ""
1780$ then
1781$ close sf
1782$ endif
1783$ if f$search(tfile1) .nes. "" then delete 'tfile1';*
1784$ if set_flag .eq. 1 then goto cfgh_in_loop1
1785$ endif
1786$ endif
1787$!
1788$!
1789$!
1790$! If it falls through everything else, comment it out
1791$!-----------------------------------------------------
1792$ write tf "/* ", xline, " */"
1793$ goto cfgh_in_loop1
1794$cfgh_in_loop1_end:
1795$close inf
1796$!
1797$!
1798$! Write out the tail
1799$!--------------------
1800$write_tail:
1801$gosub write_config_h_tail
1802$!
1803$! Exit and clean up
1804$!--------------------
1805$general_error:
1806$status = '$status'
1807$all_exit:
1808$set noon
1809$if f$trnlnm("sf","lnm$process",,"SUPERVISOR") .nes. "" then close sf
1810$if f$trnlnm("tf","lnm$process",,"SUPERVISOR") .nes. "" then close tf
1811$if f$trnlnm("inf","lnm$process",,"SUPERVISOR") .nes. "" then close inf
1812$if f$trnlnm("tf1","lnm$process",,"SUPERVISOR") .nes. "" then close tf1
1813$if f$trnlnm("tf2","lnm$process",,"SUPERVISOR") .nes. "" then close tf2
1814$if f$trnlnm("tfcv","lnm$process",,"SUPERVISOR") .nes. "" then close tfcv
1815$if f$type(tfile1) .eqs. "STRING"
1816$then
1817$ if f$search(tfile1) .nes. "" then delete 'tfile1';*
1818$endif
1819$if f$type(dchfile) .eqs. "STRING"
1820$then
1821$ if f$search(dchfile) .nes. "" then delete 'dchfile';*
1822$endif
1823$if f$type(starhfile) .eqs. "STRING"
1824$then
1825$ if f$search(starhfile) .nes. "" then delete 'starhfile';*
1826$endif
1827$if f$type(configure_script) .eqs. "STRING"
1828$then
1829$ if f$search(configure_script) .nes. "" then delete 'configure_script';*
1830$endif
1831$exit 'status'
1832$!
1833$!
1834$control_y:
1835$ status = ss_control_y
1836$ goto all_exit
1837$!
1838$!
1839$!
1840$! Gosub to write a new config_vms.h
1841$!-----------------------------------
1842$write_config_vms:
1843$outfile = "sys$disk:[]config_vms.h"
1844$create 'outfile'
1845$open/append tf 'outfile'
1846$write tf "/* File: config_vms.h"
1847$write tf "**"
1848$write tf "** This file contains the manual edits needed for porting"
1849$!write tf "** the ''proj_name' package to OpenVMS.
1850$write tf "**"
1851$write tf "** Edit this file as needed. The procedure that automatically"
1852$write tf "** generated this header stub will not overwrite or make any"
1853$write tf "** changes to this file."
1854$write tf "**"
1855$write tf -
1856 "** ", datetime, tab, username, tab, "Generated by ''my_proc_file'"
1857$write tf "**"
1858$write tf -
1859 "**========================================================================*/"
1860$write tf ""
1861$close tf
1862$return
1863$!
1864$! gosub to write out a documentation header for config.h
1865$!----------------------------------------------------------------
1866$write_config_h_header:
1867$outfile = "sys$disk:[]config.h"
1868$create 'outfile'
1869$open/append tf 'outfile'
1870$write tf "#ifndef CONFIG_H"
1871$write tf "#define CONFIG_H"
1872$write tf "/* File: config.h"
1873$write tf "**"
1874$write tf -
1875 "** This file contains the options needed for porting "
1876$write tf "** the project on a VMS system."
1877$write tf "**"
1878$write tf "** Try not to make any edits to this file, as it is"
1879$write tf "** automagically generated."
1880$write tf "**"
1881$write tf "** Manual edits should be made to the config_vms.h file."
1882$write tf "**"
1883$write tf -
1884 "** ", datetime, tab, username, tab, "Generated by ''my_proc_file'"
1885$write tf "**"
1886$write tf -
1887 "**========================================================================*/"
1888$write tf ""
1889$write tf "#if (__CRTL_VER >= 70200000) && !defined (__VAX)"
1890$write tf "#define _LARGEFILE 1"
1891$write tf "#endif"
1892$write tf ""
1893$write tf "#ifndef __VAX"
1894$write tf "#ifdef __CRTL_VER"
1895$write tf "#if __CRTL_VER >= 80200000"
1896$write tf "#define _USE_STD_STAT 1"
1897$write tf "#endif"
1898$write tf "#endif"
1899$write tf "#endif"
1900$write tf ""
1901$!
1902$write tf " /* Allow compiler builtins */"
1903$write tf "/*-------------------------*/"
1904$write tf "#ifdef __DECC_VER"
1905$write tf "#include <non_existent_dir:builtins.h>"
1906$write tf "#endif"
1907$!
1908$write tf ""
1909$return
1910$!
1911$! gosub to write out the tail for config.h and close it
1912$!---------------------------------------------------------
1913$write_config_h_tail:
1914$write tf ""
1915$write tf " /* Include the hand customized settings */"
1916$write tf "/*--------------------------------------*/"
1917$write tf "#include ""config_vms.h"""
1918$write tf ""
1919$write tf "#endif /* CONFIG_H */"
1920$close tf
1921$return
1922$!
Diagnostics4 git calls · 45 ms
CallStatusSizeTime045 ms
discover200152 B3 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=3 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 · hit23 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=23 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
fetch20011 KiB · hit19 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=19 git.response.bytes=11305 git.response.cache=HIT git.response.duration_ms=19 git.fetch.wants=49f6a3a516129aa157b8346c75f83cb77f8b751a 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=11305 git.pkt.payload.max=11284 git.sideband.band1.bytes=11283 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
- a5e2f848e8ba90c0
- Request
- b368af57…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format