diff --git a/CodeHawk/CHB/bchcmdline/bCHXMakeLibSummary.ml b/CodeHawk/CHB/bchcmdline/bCHXMakeLibSummary.ml index 98e28c27..746394a3 100644 --- a/CodeHawk/CHB/bchcmdline/bCHXMakeLibSummary.ml +++ b/CodeHawk/CHB/bchcmdline/bCHXMakeLibSummary.ml @@ -80,14 +80,14 @@ let speclist = [ let ccNode = xml_string - "copyright-notice" "Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304" + "copyright-notice" "Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304" let usage_msg = "mktemplate name" let read_args () = Arg.parse speclist (fun s -> name := s) usage_msg let post_shortcuts = [ "notzero-zero"; "nonzero-zero"; "one-zero"; "zero-negone"; - "notnull"; "notnull-null"; + "notnull"; "notnull-null"; "nonnegative-negone"; "nonnegative-negative"; "positive-nonpositive"; "positive-zero"] diff --git a/CodeHawk/CHB/bchlib/bCHBCAttributes.ml b/CodeHawk/CHB/bchlib/bCHBCAttributes.ml index 894a580e..916956cf 100644 --- a/CodeHawk/CHB/bchlib/bCHBCAttributes.ml +++ b/CodeHawk/CHB/bchlib/bCHBCAttributes.ml @@ -4,7 +4,7 @@ ------------------------------------------------------------------------------ The MIT License (MIT) - Copyright (c) 2024-2025 Aarno Labs LLC + Copyright (c) 2024-2026 Aarno Labs LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -88,7 +88,8 @@ let convert_b_attributes_to_function_conditions | [ACons (("write_only" | "read_write"), []); AInt refindex] -> let par = get_par refindex in let ty = get_derefty par in - ([XXBuffer (ty, ArgValue par, RunTimeValue)], + ([XXBuffer (ty, ArgValue par, RunTimeValue); + XXBlockWrite (ty, ArgValue par, RunTimeValue)], [XXBlockWrite (ty, ArgValue par, RunTimeValue)]) | [ACons (("write_only" | "read_write"), []); @@ -96,9 +97,18 @@ let convert_b_attributes_to_function_conditions let rpar = get_par refindex in let spar = get_par sizeindex in let ty = get_derefty rpar in - ([XXBuffer (ty, ArgValue rpar, ArgValue spar)], + ([XXBuffer (ty, ArgValue rpar, ArgValue spar); + XXBlockWrite (ty, ArgValue rpar, RunTimeValue)], [XXBlockWrite (ty, ArgValue rpar, ArgValue spar)]) + | [ACons ("write_only", [AInt buffersize]); AInt refindex] -> + let par = get_par refindex in + let ty = get_derefty par in + let bytesize = CHNumerical.mkNumerical buffersize in + ([XXBuffer (ty, ArgValue par, NumConstant bytesize); + XXBlockWrite (ty, ArgValue par, NumConstant bytesize)], + [XXBlockWrite (ty, ArgValue par, NumConstant bytesize)]) + | _ -> begin log_error_result @@ -111,5 +121,72 @@ let convert_b_attributes_to_function_conditions ([], []) end) in (pre @ xpre, side @ xside, xpost) + | Attr ("chk_pre", params) -> + let pre = + (match params with + | [ACons ("deref_read", []); AInt refindex] -> + let par = get_par refindex in + let ty = get_derefty par in + [XXBuffer (ty, ArgValue par, RunTimeValue)] + + | [ACons ("deref_read", []); AInt refindex; AInt sizeindex] -> + let par1 = get_par refindex in + let par2 = get_par sizeindex in + let ty = get_derefty par1 in + [XXBuffer (ty, ArgValue par1, ArgValue par2)] + + | [ACons ("deref_read", [AInt size]); AInt refindex] -> + let par = get_par refindex in + let ty = get_derefty par in + let c = CHNumerical.mkNumerical size in + [XXBuffer (ty, ArgValue par, NumConstant c)] + + | [ACons ("deref_read", [ACons ("ntp", [])]); AInt refindex] -> + let par = get_par refindex in + let ty = get_derefty par in + [XXBuffer (ty, ArgValue par, ArgNullTerminatorPos (ArgValue par))] + + | [ACons ("deref_write", []); AInt refindex] -> + let par = get_par refindex in + let ty = get_derefty par in + [XXBlockWrite (ty, ArgValue par, RunTimeValue)] + + | [ACons ("deref_write", []); AInt refindex; AInt sizeindex] -> + let par1 = get_par refindex in + let par2 = get_par sizeindex in + let ty = get_derefty par1 in + [XXBlockWrite (ty, ArgValue par1, ArgValue par2)] + + | [ACons ("deref_write", [AInt size]); AInt refindex] -> + let par = get_par refindex in + let ty = get_derefty par in + let c = CHNumerical.mkNumerical size in + [XXBlockWrite (ty, ArgValue par, NumConstant c)] + + | [ACons ("not_null", []); AInt refindex] -> + let par = get_par refindex in + [XXNotNull (ArgValue par)] + + | [ACons ("null_terminated", []); AInt refindex] -> + let par = get_par refindex in + [XXNullTerminated (ArgValue par)] + + | [ACons ("initialized_range", [ACons ("ntp", [])]); AInt refindex] -> + let par = get_par refindex in + let ty = get_derefty par in + [XXInitializedRange ( + ty, ArgValue par, ArgNullTerminatorPos (ArgValue par))] + + | _ -> + begin + log_error_result + ~tag:"convert_b_attributes_to_function_conditions" + ~msg:(name ^ ":chk_pre") + __FILE__ __LINE__ + [String.concat ", " (List.map b_attrparam_to_string params)]; + [] + end) in + (pre @ xpre, xside, xpost) + | _ -> acc) ([], [], []) attrs diff --git a/CodeHawk/CHB/bchlib/bCHBCTypeUtil.ml b/CodeHawk/CHB/bchlib/bCHBCTypeUtil.ml index 34c532b1..76a04891 100644 --- a/CodeHawk/CHB/bchlib/bCHBCTypeUtil.ml +++ b/CodeHawk/CHB/bchlib/bCHBCTypeUtil.ml @@ -83,6 +83,7 @@ let t_ptrto t = TPtr (t,[]) let ptr_deref (t: btype_t): btype_t = match t with + | TPtr (TVoid _, _) -> t_uchar | TPtr (dty, _) -> dty | _ -> raise diff --git a/CodeHawk/CHB/bchlib/bCHBCTypeXml.ml b/CodeHawk/CHB/bchlib/bCHBCTypeXml.ml index 28c12c41..94f10941 100644 --- a/CodeHawk/CHB/bchlib/bCHBCTypeXml.ml +++ b/CodeHawk/CHB/bchlib/bCHBCTypeXml.ml @@ -60,7 +60,40 @@ let raise_error (node: xml_element_int) (msg: pretty_t) = let ch_named_struct_types = [ - "ch_FILE" + "ch__addrinfo"; + "ch__DIR"; + "ch__dirent"; + "ch__fd_set"; (* used in select *) + "ch__FILE"; + "ch__fpos_t"; (* this may or may not be a struct, depending on arch *) + "ch__group"; (* used in getgrgid *) + "ch__hostent"; + "ch__in_addr"; + "ch__iovec"; (* used in writev *) + "ch__msghdr"; (* used in recvmsg, sendmsg *) + "ch__netent"; + "ch__passwd"; (* used in getpwnam *) + "ch__pollfd"; + "ch__pthread_attr_t"; + "ch__pthread_cond_t"; + "ch__pthread_mutex_t"; + "ch__pthread_mutexattr_t"; + "ch__pthread_start_routine"; + "ch__pthread_t"; + "ch__rlimit"; (* used in getrlimit *) + "ch__rusage"; (* used in getrusage *) + "ch__sigaction"; (* used in sigaction *) + "ch__sigset_t"; (* used in sigaddset *) + "ch__sockaddr"; + "ch__spwd"; (* used in getspname *) + "ch__stat"; + "ch__statfs"; + "ch__sysinfo"; + "ch__termios"; (* used in tcgetattr *) + "ch__timespec"; (* used in nanosleep *) + "ch__timeval"; + "ch__timezone"; + "ch__tm" ] let register_ch_named_struct_types () = @@ -71,28 +104,59 @@ let register_ch_named_struct_types () = btype enumerations*) let get_standard_txt_type (t: string): btype_t option = match t with + | "__uClibc_main_fptr" -> + Some (TPtr (TFun (TInt (IInt, []), + Some [("argc", TInt (IInt, []), []); + ("argv", TPtr (TPtr (TInt (IUChar, []), []), []), [])], + false, []), [])) + | "atexit_fptr" -> Some (TPtr (TFun (TVoid [], Some [], false, []), [])) | "BOOL" -> Some (TInt (IBool, [])) | "Boolean" -> Some (TInt (IBool, [])) | "BSTR" -> Some (TPtr (TInt (IWChar, []), [])) | "byte" -> Some (TInt (IUChar, [])) | "BYTE" -> Some (TInt (IUChar, [])) | "char" -> Some (TInt (IChar, [])) + | "clock_t" -> Some (TInt (IInt, [])) + | "comparison_fptr" -> (* used in bsearch *) + Some (TFun (TInt (IInt, []), + Some [("x1", TPtr (TVoid [], []), []); + ("x2", TPtr (TVoid [], []), [])], + false, [])) + | "dir_select_fptr" -> + Some (TFun (TInt (IInt, []), + Some [("direntry", TPtr (TNamed ("ch__dirent", []), []), [])], + false, [])) | "float" -> Some (TFloat (FFloat, FScalar, [])) | "double" -> Some (TFloat (FDouble, FScalar, [])) | "DWORD" -> Some (TInt (IUInt, [])) + | "gid_t" -> Some (TInt (IUInt, [])) + | "id_t" -> Some (TInt (IUInt, [])) (* used in getpriority *) | "int" -> Some (TInt (IInt, [])) | "Integer" -> Some (TInt (IInt, [])) | "long" -> Some (TInt (ILong, [])) | "LONG" -> Some (TInt (ILong, [])) + | "long_long" -> Some (TInt (ILongLong, [])) + | "long long" -> Some (TInt (ILongLong, [])) + | "mode_t" -> Some (TInt (IInt, [])) (* used in chmod *) + | "nfds_t" -> Some (TInt (IUInt, [])) (* used in poll *) | "off_t" -> Some (TInt (IULong, [])) | "OLECHAR" -> Some (TInt (IWChar, [])) + | "pid_t" -> Some (TInt (IUInt, [])) + | "pthread_start_routine" -> + Some (TPtr (TFun (TVoid [], Some [], false, []), [])) + | "sem_t" -> Some (TInt (IInt, [])) (* used in semaphore functions *) | "size_t" -> Some (TInt (IUInt, [])) | "SIZE_T" -> Some (TInt (IUInt, [])) + | "socklen_t" -> Some (TInt (IInt, [])) (* may also be unsigned *) + | "speed_t" -> Some (TInt (IUInt, [])) (* used in cfgetispeed *) | "ssize_t" -> Some (TInt (ILong, [])) | "time_t" -> Some (TInt (ILong, [])) + | "uid_t" -> Some (TInt (IUInt, [])) | "UINT" -> Some (TInt (IUInt, [])) | "uint16_t" -> Some (TInt (IUShort, [])) | "uint32_t" -> Some (TInt (IUInt, [])) + | "u_long" -> Some (TInt (IULong, [])) + | "u_long_long" -> Some (TInt (IULongLong, [])) | "unknown" -> Some (TUnknown []) | "UNKNOWN" -> Some (TUnknown []) | "void" -> Some (TVoid ([])) diff --git a/CodeHawk/CHB/bchlib/bCHFunctionInfo.ml b/CodeHawk/CHB/bchlib/bCHFunctionInfo.ml index 7940325a..b9cff4c1 100644 --- a/CodeHawk/CHB/bchlib/bCHFunctionInfo.ml +++ b/CodeHawk/CHB/bchlib/bCHFunctionInfo.ml @@ -6,7 +6,7 @@ Copyright (c) 2005-2020 Kestrel Technology LLC Copyright (c) 2020 Henny Sipma - Copyright (c) 2021-2025 Aarno Labs LLC + Copyright (c) 2021-2026 Aarno Labs LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -75,6 +75,7 @@ open BCHUtilities open BCHVariable open BCHVariableNames open BCHXPODictionary +open BCHXPOPredicate module H = Hashtbl module LF = CHOnlineCodeSet.LanguageFactory @@ -1710,6 +1711,88 @@ object (self) method proofobligations = proofobligations + method discharge_proofobligations = + let openpos = self#proofobligations#open_proofobligations in + List.iter (fun po -> + let newstatus = + match po#xpo with + | XPOBuffer ( + _ty, + XOp (XMinus, [XVar v; XConst (IntConst off)]), + XConst (IntConst size)) + | XPOBlockWrite ( + _ty, + XOp (XMinus, [XVar v; XConst (IntConst off)]), + XConst (IntConst size)) + when self#env#is_initial_stackpointer_value v -> + let buffer = self#stackframe#get_max_slot_size off#neg#toInt in + (match buffer with + | Some slotsize -> + if size#toInt <= slotsize then + Discharged ( + "buffer size " ^ size#toString + ^ " fits in available space of " + ^ (string_of_int slotsize) + ^ " bytes") + else + Violated ( + "buffer size " + ^ size#toString ^ " is too large; available space is " + ^ (string_of_int slotsize) ^ " bytes") + | _ -> + let _ = + log_diagnostics_result + ~tag:"discharge_proofobligations:open" + ~msg:(p2s po#loc#toPretty) + __FILE__ __LINE__ + ["xpo: " ^ (p2s (xpo_predicate_to_pretty po#xpo)); + "Unable to determine buffer size at offset " + ^ off#toString] in + Open) + | XPOBlockWrite (ty, XVar v, bwlen) when + self#env#is_initial_register_value v -> + TR.tfold + ~ok:(fun reg -> + let paramty = TPtr (ty, []) in + let _ = + self#update_summary + (self#get_summary#add_register_parameter_location + reg paramty 4) in + let ftspar = self#get_summary#get_parameter_for_register reg in + let dst = ArgValue ftspar in + let lenterm = + match bwlen with + | XConst (IntConst size) -> NumConstant size + | _ -> RunTimeValue in + let xpred = XXBlockWrite (ty, dst, lenterm) in + let updatedsummary = self#get_summary#add_precondition xpred in + let updatedsummary = updatedsummary#add_sideeffect xpred in + let _ = self#update_summary updatedsummary in + Delegated xpred) + ~error:(fun e -> + begin + log_error_result + ~tag:"delegate_proofobligation" + __FILE__ __LINE__ + ["v: " ^ (p2s v#toPretty); + String.concat ", " e]; + Open + end) + (self#env#get_initial_register_value_register v) + | _ -> Open in + match newstatus with + | Open -> () + | _ -> + begin + log_diagnostics_result + ~tag:"discharge_proofobligations" + ~msg:(p2s po#loc#toPretty) + __FILE__ __LINE__ + ["xpo: " ^ (p2s (xpo_predicate_to_pretty po#xpo)); + "status: " ^ (p2s (po_status_to_pretty newstatus))]; + po#update_status newstatus + end) openpos + method set_instruction_bytes (ia:ctxt_iaddress_t) (b:string) = H.add instrbytes ia b diff --git a/CodeHawk/CHB/bchlib/bCHFunctionStackframe.ml b/CodeHawk/CHB/bchlib/bCHFunctionStackframe.ml index 8c18fc2e..67e802a4 100644 --- a/CodeHawk/CHB/bchlib/bCHFunctionStackframe.ml +++ b/CodeHawk/CHB/bchlib/bCHFunctionStackframe.ml @@ -538,6 +538,27 @@ object (self) else None + method get_max_slot_size (offset: int): int option = + if H.mem stackslots offset then + let keys = H.fold (fun k _ a -> k :: a) stackslots [] in + let keys = List.sort Stdlib.compare keys in + List.fold_left (fun acc i -> + match acc with + | Some _ -> acc + | _ -> + if i > offset then + Some (i - offset) + else + None) None keys + else + begin + log_diagnostics_result + ~tag:"get_max_slot_size:stackslot not found" + __FILE__ __LINE__ + ["offset: " ^ (string_of_int offset)]; + None + end + method add_stackslot ?(name = None) ?(btype = t_unknown) diff --git a/CodeHawk/CHB/bchlib/bCHLibTypes.mli b/CodeHawk/CHB/bchlib/bCHLibTypes.mli index f083f293..ea449c28 100644 --- a/CodeHawk/CHB/bchlib/bCHLibTypes.mli +++ b/CodeHawk/CHB/bchlib/bCHLibTypes.mli @@ -4861,6 +4861,8 @@ class type stackframe_int = method xpr_containing_stackslot: xpr_t -> stackslot_int option + method get_max_slot_size: int -> int option + method add_load: baseoffset:int -> offset: memory_offset_t @@ -5635,6 +5637,8 @@ class type proofobligation_int = method status: po_status_t + method update_status: po_status_t -> unit + end @@ -5701,6 +5705,10 @@ object (** Returns the object containing all active proof obligations.*) method proofobligations: proofobligations_int + (** Attempts to discharge some open proof obligations and if successful + updates their status.*) + method discharge_proofobligations: unit + (** {1 Function invariants} *) diff --git a/CodeHawk/CHB/bchlib/bCHPrecondition.ml b/CodeHawk/CHB/bchlib/bCHPrecondition.ml index 429f56ae..489eecc3 100644 --- a/CodeHawk/CHB/bchlib/bCHPrecondition.ml +++ b/CodeHawk/CHB/bchlib/bCHPrecondition.ml @@ -130,10 +130,19 @@ let read_xml_par_preconditions XXNullTerminated t] | "deref-write" -> let typ = ty () in - [XXBuffer (typ, t, getsize node typ); XXNotNull t] + [XXBlockWrite (typ, t, getsize node typ); XXNotNull t] | "deref-write-null" -> let typ = ty () in - [XXBuffer (typ, t, getsize node typ)] + [XXBlockWrite (typ, t, getsize node typ)] + | "deref-read-write" -> + let typ = ty () in + [XXBlockWrite (typ, t, getsize node typ); + XXNotNull t; + XXInitializedRange (typ, t, getsize node typ)] + | "deref-read-write-null" -> + let typ = ty () in + [XXBlockWrite (typ, t, getsize node typ); + XXInitializedRange (typ, t, getsize node typ)] | "allocation-base" -> [XXAllocationBase t] | "function-pointer" -> let typ = ty () in [XXFunctionPointer (typ, t)] diff --git a/CodeHawk/CHB/bchlib/bCHProofObligations.ml b/CodeHawk/CHB/bchlib/bCHProofObligations.ml index 2b8ecc48..44914c4c 100644 --- a/CodeHawk/CHB/bchlib/bCHProofObligations.ml +++ b/CodeHawk/CHB/bchlib/bCHProofObligations.ml @@ -105,12 +105,16 @@ class proofobligation_t (status: po_status_t): proofobligation_int = object + val mutable status = status + method xpo = xpo method loc = loc method status = status + method update_status (s: po_status_t) = status <- s + end diff --git a/CodeHawk/CHB/bchlib/bCHProofObligations.mli b/CodeHawk/CHB/bchlib/bCHProofObligations.mli index f24afd0b..f5614d5d 100644 --- a/CodeHawk/CHB/bchlib/bCHProofObligations.mli +++ b/CodeHawk/CHB/bchlib/bCHProofObligations.mli @@ -31,5 +31,7 @@ open BCHLibTypes +val po_status_to_pretty: po_status_t -> CHPretty.pretty_t + val mk_proofobligations: doubleword_int -> xpodictionary_int -> proofobligations_int diff --git a/CodeHawk/CHB/bchlib/bCHVersion.ml b/CodeHawk/CHB/bchlib/bCHVersion.ml index 8d2fdcdd..efeab196 100644 --- a/CodeHawk/CHB/bchlib/bCHVersion.ml +++ b/CodeHawk/CHB/bchlib/bCHVersion.ml @@ -95,8 +95,8 @@ end let version = new version_info_t - ~version:"0.6.0_20260330" - ~date:"2026-03-30" + ~version:"0.6.0_20260407" + ~date:"2026-04-07" ~licensee: None ~maxfilesize: None () diff --git a/CodeHawk/CHB/bchlibarm32/bCHARMAnalysisResults.ml b/CodeHawk/CHB/bchlibarm32/bCHARMAnalysisResults.ml index 6feee593..07099e5d 100644 --- a/CodeHawk/CHB/bchlibarm32/bCHARMAnalysisResults.ml +++ b/CodeHawk/CHB/bchlibarm32/bCHARMAnalysisResults.ml @@ -225,6 +225,7 @@ object (self) mmap#write_xml_references faddr vard grNode; (* self#write_xml_btypes bNode; *) id#write_xml dNode; + finfo#discharge_proofobligations; finfo#proofobligations#write_xml poNode; finfo#xpod#write_xml xpodNode; append [cNode; dNode; iiNode; jjNode; sfNode; grNode; xpodNode; poNode] diff --git a/CodeHawk/CHB/bchsummaries/so_functions/__fgetc_unlocked.xml b/CodeHawk/CHB/bchsummaries/so_functions/__fgetc_unlocked.xml index 97b8734c..37108783 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/__fgetc_unlocked.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/__fgetc_unlocked.xml @@ -16,7 +16,7 @@ - ch_FILE + ch__FILE
@@ -26,12 +26,18 @@
- - + + + + + + + Copyright 2012-2015, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/__fputc_unlocked.xml b/CodeHawk/CHB/bchsummaries/so_functions/__fputc_unlocked.xml index 504f34ea..102fda47 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/__fputc_unlocked.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/__fputc_unlocked.xml @@ -27,7 +27,7 @@ - ch_FILE + ch__FILE
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/__uClibc_main.xml b/CodeHawk/CHB/bchsummaries/so_functions/__uClibc_main.xml index 1da539d9..35882f38 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/__uClibc_main.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/__uClibc_main.xml @@ -29,8 +29,7 @@ - function-pointer -
+ __uClibc_main_fptr
int @@ -39,16 +38,13 @@ char - function-pointer -
+ __uClibc_main_fptr
- function-pointer -
+ __uClibc_main_fptr
- function-pointer -
+ __uClibc_main_fptr
void diff --git a/CodeHawk/CHB/bchsummaries/so_functions/accept.xml b/CodeHawk/CHB/bchsummaries/so_functions/accept.xml index b78c21f0..b7dcd082 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/accept.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/accept.xml @@ -41,10 +41,11 @@ int - ch_sockaddr + ch__sockaddr socklen_t +
int
@@ -55,7 +56,7 @@ - ch_sockaddr + ch__sockaddr address address_len @@ -70,12 +71,17 @@ - ch_sockaddr + ch__sockaddr address address_len + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/access.xml b/CodeHawk/CHB/bchsummaries/so_functions/access.xml index 7908ce24..c0a1dd7c 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/access.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/access.xml @@ -38,8 +38,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/asctime.xml b/CodeHawk/CHB/bchsummaries/so_functions/asctime.xml index a237bc38..df1a4915 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/asctime.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/asctime.xml @@ -6,7 +6,7 @@ convert date and time to a string - char *asctime (const struct tim *timeptr) + char *asctime (const struct tm *timeptr) pointer to structure with broken down time pointer to the string @@ -16,7 +16,7 @@ - tm + ch__tm
char diff --git a/CodeHawk/CHB/bchsummaries/so_functions/atexit.xml b/CodeHawk/CHB/bchsummaries/so_functions/atexit.xml index 99fdf368..36e69640 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/atexit.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/atexit.xml @@ -19,8 +19,7 @@ - function-pointer -
+ atexit_fptr
int
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/bind.xml b/CodeHawk/CHB/bchsummaries/so_functions/bind.xml index fc18e931..17884200 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/bind.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/bind.xml @@ -34,7 +34,7 @@ int - ch_sockaddr + ch__sockaddr socklen_t @@ -48,7 +48,7 @@ - ch_sockaddr + ch__sockaddr address address_len @@ -58,7 +58,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/bsearch.xml b/CodeHawk/CHB/bchsummaries/so_functions/bsearch.xml index bb0cbca3..2cc5ce02 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/bsearch.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/bsearch.xml @@ -41,7 +41,7 @@ size_t - function-pointer + comparison_fptr
void diff --git a/CodeHawk/CHB/bchsummaries/so_functions/cfgetispeed.xml b/CodeHawk/CHB/bchsummaries/so_functions/cfgetispeed.xml index c7d1c982..9bd559b6 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/cfgetispeed.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/cfgetispeed.xml @@ -16,7 +16,7 @@ - ch_termios + ch__termios
speed_t diff --git a/CodeHawk/CHB/bchsummaries/so_functions/cfgetospeed.xml b/CodeHawk/CHB/bchsummaries/so_functions/cfgetospeed.xml index 6270ae48..70533c82 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/cfgetospeed.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/cfgetospeed.xml @@ -16,7 +16,7 @@ - ch_termios + ch__termios
speed_t diff --git a/CodeHawk/CHB/bchsummaries/so_functions/cfsetispeed.xml b/CodeHawk/CHB/bchsummaries/so_functions/cfsetispeed.xml index d5474173..1707dd96 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/cfsetispeed.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/cfsetispeed.xml @@ -22,7 +22,8 @@ - ch_termios + ch__termios +
speed_t @@ -32,7 +33,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/cfsetospeed.xml b/CodeHawk/CHB/bchsummaries/so_functions/cfsetospeed.xml index 42359794..1b45763c 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/cfsetospeed.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/cfsetospeed.xml @@ -22,7 +22,8 @@ - ch_termios + ch__termios +
speed_t @@ -32,7 +33,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/chmod.xml b/CodeHawk/CHB/bchsummaries/so_functions/chmod.xml index 359a2506..a35fc971 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/chmod.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/chmod.xml @@ -36,7 +36,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/chown.xml b/CodeHawk/CHB/bchsummaries/so_functions/chown.xml index 9f6b1379..0a59b761 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/chown.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/chown.xml @@ -41,7 +41,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/chroot.xml b/CodeHawk/CHB/bchsummaries/so_functions/chroot.xml index 5866e54e..5c1bed6f 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/chroot.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/chroot.xml @@ -27,7 +27,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/clearenv.xml b/CodeHawk/CHB/bchsummaries/so_functions/clearenv.xml index 45ceb5b5..5ca33536 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/clearenv.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/clearenv.xml @@ -23,7 +23,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/clearerr.xml b/CodeHawk/CHB/bchsummaries/so_functions/clearerr.xml index d55e577d..ee15a8b3 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/clearerr.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/clearerr.xml @@ -13,8 +13,8 @@ - ch_FILE -
+ ch__FILE +
void
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/close.xml b/CodeHawk/CHB/bchsummaries/so_functions/close.xml index 2a851acb..a691685b 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/close.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/close.xml @@ -26,7 +26,13 @@ - + + + + + + + Copyright 2012-2019, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/closedir.xml b/CodeHawk/CHB/bchsummaries/so_functions/closedir.xml index 956354d9..a9fbce1e 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/closedir.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/closedir.xml @@ -16,7 +16,7 @@ - DIR + ch__DIR
int @@ -27,7 +27,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/connect.xml b/CodeHawk/CHB/bchsummaries/so_functions/connect.xml index 7abb100d..dd5b5afc 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/connect.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/connect.xml @@ -36,7 +36,7 @@ int
- ch_sockaddr + ch__sockaddr int @@ -49,24 +49,21 @@
 	  
 	    
-	      
-	      ch_sockaddr
+	      
+	      ch__sockaddr
 	      address
 	      address_len
 	    
 	  
 	
- + + + - - - ch_sockaddr - address - address_len - + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/dlopen.xml b/CodeHawk/CHB/bchsummaries/so_functions/dlopen.xml index f7cf2b40..7dc52ead 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/dlopen.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/dlopen.xml @@ -50,7 +50,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/dlsym.xml b/CodeHawk/CHB/bchsummaries/so_functions/dlsym.xml index 8de0dc6b..beaf26be 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/dlsym.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/dlsym.xml @@ -47,7 +47,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/execl.xml b/CodeHawk/CHB/bchsummaries/so_functions/execl.xml index 0ac02fb4..88fc5471 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/execl.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/execl.xml @@ -26,9 +26,11 @@ char +
char +
int
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fclose.xml b/CodeHawk/CHB/bchsummaries/so_functions/fclose.xml index 35baaf51..6bc8e546 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fclose.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fclose.xml @@ -17,7 +17,7 @@ int - ch_FILE + ch__FILE
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fcntl.xml b/CodeHawk/CHB/bchsummaries/so_functions/fcntl.xml index c88bf4f3..aedc2aae 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fcntl.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fcntl.xml @@ -32,7 +32,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fcntl64.xml b/CodeHawk/CHB/bchsummaries/so_functions/fcntl64.xml index 9964805b..aaadfabe 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fcntl64.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fcntl64.xml @@ -32,7 +32,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fdopen.xml b/CodeHawk/CHB/bchsummaries/so_functions/fdopen.xml index 74c8a2f4..e03ba7b0 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fdopen.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fdopen.xml @@ -33,7 +33,7 @@ char
- ch_FILE + ch__FILE
@@ -43,7 +43,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/feof.xml b/CodeHawk/CHB/bchsummaries/so_functions/feof.xml index 39585e07..0cd282bd 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/feof.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/feof.xml @@ -16,7 +16,8 @@ - ch_FILE + ch__FILE +
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/ferror.xml b/CodeHawk/CHB/bchsummaries/so_functions/ferror.xml index ffce8f9e..c17eafb7 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/ferror.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/ferror.xml @@ -16,7 +16,7 @@ - ch_FILE + ch__FILE
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fflush.xml b/CodeHawk/CHB/bchsummaries/so_functions/fflush.xml index b61e06bc..19d3f97a 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fflush.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fflush.xml @@ -17,8 +17,8 @@ int - ch_FILE -
+ ch__FILE +
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fgetc.xml b/CodeHawk/CHB/bchsummaries/so_functions/fgetc.xml index 90515f2b..486d1280 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fgetc.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fgetc.xml @@ -16,7 +16,7 @@ - ch_FILE + ch__FILE
@@ -30,8 +30,16 @@ desc="reads a character from a stream"/> - - + + + + + + + + + + Copyright 2012-2015, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fgetpos.xml b/CodeHawk/CHB/bchsummaries/so_functions/fgetpos.xml index c35159db..01850471 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fgetpos.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fgetpos.xml @@ -22,15 +22,15 @@ - ch_FILE + ch__FILE
- fpos_t -
+ ch__fpos_t +
int
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fgets.xml b/CodeHawk/CHB/bchsummaries/so_functions/fgets.xml index dab72e3d..f6b2282a 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fgets.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fgets.xml @@ -52,7 +52,7 @@ - ch_FILE + ch__FILE
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fileno.xml b/CodeHawk/CHB/bchsummaries/so_functions/fileno.xml index f4496dae..398a0563 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fileno.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fileno.xml @@ -17,7 +17,7 @@ int - ch_FILE + ch__FILE
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/flock.xml b/CodeHawk/CHB/bchsummaries/so_functions/flock.xml new file mode 100644 index 00000000..e9820e5f --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/flock.xml @@ -0,0 +1,50 @@ + + + +
+ + + apply or remove an advisory lock on an open file + + + int flock( + int fildes, + int op + ) + + open file descriptor + + control value that specifies the action to be taken + + + 0 + -1 + + + + + + int + + + int + + int + + + + + + + + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fopen.xml b/CodeHawk/CHB/bchsummaries/so_functions/fopen.xml index 1f1fe514..3eb0d729 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fopen.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fopen.xml @@ -16,17 +16,17 @@ - ch_FILE + ch__FILE char - + - -
+
+
char -
+
@@ -37,7 +37,13 @@ - + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fopen64.xml b/CodeHawk/CHB/bchsummaries/so_functions/fopen64.xml index ebabb7d2..c171b9bf 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fopen64.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fopen64.xml @@ -16,7 +16,7 @@ - ch_FILE + ch__FILE char @@ -26,7 +26,7 @@ char -
+
@@ -37,7 +37,13 @@ - + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fprintf.xml b/CodeHawk/CHB/bchsummaries/so_functions/fprintf.xml index 703551ba..1f655b03 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fprintf.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fprintf.xml @@ -25,7 +25,7 @@ int - ch_FILE + ch__FILE
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fputc.xml b/CodeHawk/CHB/bchsummaries/so_functions/fputc.xml index 01a708ec..ba6d072a 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fputc.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fputc.xml @@ -27,7 +27,7 @@ - ch_FILE + ch__FILE
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fputs.xml b/CodeHawk/CHB/bchsummaries/so_functions/fputs.xml index 84bac7de..cdcc051a 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fputs.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fputs.xml @@ -33,7 +33,7 @@ - ch_FILE + ch__FILE
@@ -45,7 +45,13 @@ - + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fread.xml b/CodeHawk/CHB/bchsummaries/so_functions/fread.xml index 4b8736d6..a58134d9 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fread.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fread.xml @@ -41,7 +41,7 @@
- ch_FILE + ch__FILE diff --git a/CodeHawk/CHB/bchsummaries/so_functions/freeaddrinfo.xml b/CodeHawk/CHB/bchsummaries/so_functions/freeaddrinfo.xml index 35976b61..766f0fb7 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/freeaddrinfo.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/freeaddrinfo.xml @@ -15,7 +15,7 @@ - addrinfo + ch__addrinfo
void @@ -23,8 +23,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fscanf.xml b/CodeHawk/CHB/bchsummaries/so_functions/fscanf.xml index 87488ec0..a7139d7c 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fscanf.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fscanf.xml @@ -25,7 +25,7 @@ - ch_FILE + ch__FILE
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fseek.xml b/CodeHawk/CHB/bchsummaries/so_functions/fseek.xml index a56d8de0..62e0c1f7 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fseek.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fseek.xml @@ -25,7 +25,7 @@ int - ch_FILE + ch__FILE @@ -46,7 +46,13 @@ - + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fsetpos.xml b/CodeHawk/CHB/bchsummaries/so_functions/fsetpos.xml index 2ae0d9d6..1547dac8 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fsetpos.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fsetpos.xml @@ -9,7 +9,7 @@ int fsetpos( FILE *stream - cont fpos_t pos + const fpos_t pos ) pointer to FILE structure @@ -22,14 +22,14 @@ - ch_FILE + ch__FILE
- fpos_t + ch__fpos_t
int diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fstat.xml b/CodeHawk/CHB/bchsummaries/so_functions/fstat.xml index a7e77b0c..4be3e1d9 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fstat.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fstat.xml @@ -27,7 +27,7 @@ int
- stat + ch__stat
@@ -39,7 +39,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fstat64.xml b/CodeHawk/CHB/bchsummaries/so_functions/fstat64.xml index 310950de..eaac3cda 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fstat64.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fstat64.xml @@ -27,7 +27,7 @@ int
- stat + ch__stat
@@ -39,7 +39,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/ftell.xml b/CodeHawk/CHB/bchsummaries/so_functions/ftell.xml index 45edd6a6..dfedd356 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/ftell.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/ftell.xml @@ -17,7 +17,7 @@ long - ch_FILE + ch__FILE
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/ftruncate.xml b/CodeHawk/CHB/bchsummaries/so_functions/ftruncate.xml index 5b1855cd..4e6bb34e 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/ftruncate.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/ftruncate.xml @@ -35,7 +35,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/ftruncate64.xml b/CodeHawk/CHB/bchsummaries/so_functions/ftruncate64.xml index b98bcd84..0e2aa5bf 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/ftruncate64.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/ftruncate64.xml @@ -35,7 +35,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/fwrite.xml b/CodeHawk/CHB/bchsummaries/so_functions/fwrite.xml index e91a5032..df8252b5 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/fwrite.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/fwrite.xml @@ -36,7 +36,7 @@ size_t
- ch_FILE + ch__FILE
@@ -79,7 +79,13 @@ - + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getaddrinfo.xml b/CodeHawk/CHB/bchsummaries/so_functions/getaddrinfo.xml index 1bc40b04..84586daf 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getaddrinfo.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getaddrinfo.xml @@ -48,11 +48,11 @@
- addrinfo + ch__addrinfo
- addrinfo + ch__addrinfo
@@ -64,7 +64,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getcwd.xml b/CodeHawk/CHB/bchsummaries/so_functions/getcwd.xml index b0ed73b7..8272b0d8 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getcwd.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getcwd.xml @@ -66,7 +66,23 @@ - + + + + + + char + buf + size + + + + + + + + + Copyright 2012-2019, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getgrgid.xml b/CodeHawk/CHB/bchsummaries/so_functions/getgrgid.xml index 8741f26b..aa3084b0 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getgrgid.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getgrgid.xml @@ -7,7 +7,7 @@ get group database entry for a group ID struct group *getgrgid (gid_t gid) - group id + gid_t pointer to a struct group NULL @@ -18,7 +18,7 @@ gid_t - ch_group + ch__group
@@ -26,7 +26,13 @@ - + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getgrnam.xml b/CodeHawk/CHB/bchsummaries/so_functions/getgrnam.xml index ef3c15d8..d00509f9 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getgrnam.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getgrnam.xml @@ -21,7 +21,7 @@ char
- ch_group + ch__group @@ -29,7 +29,13 @@ - + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getgroups.xml b/CodeHawk/CHB/bchsummaries/so_functions/getgroups.xml index 336baf4a..182739d2 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getgroups.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getgroups.xml @@ -67,6 +67,11 @@ + + + + +
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/gethostbyname.xml b/CodeHawk/CHB/bchsummaries/so_functions/gethostbyname.xml index fe40c67d..bde8f2e6 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/gethostbyname.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/gethostbyname.xml @@ -18,13 +18,21 @@ char
- hostent + ch__hostent - - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getline.xml b/CodeHawk/CHB/bchsummaries/so_functions/getline.xml index f7fa9e0a..a1f61dd0 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getline.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getline.xml @@ -27,10 +27,11 @@ char - int + int +
- ch_FILE + ch__FILE
int @@ -38,8 +39,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getnameinfo.xml b/CodeHawk/CHB/bchsummaries/so_functions/getnameinfo.xml index d0ff4011..0f781279 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getnameinfo.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getnameinfo.xml @@ -30,7 +30,7 @@ - ch_sockaddr + ch__sockaddr socklen_t @@ -56,7 +56,7 @@ - ch_sockaddr + ch__sockaddr sa salen @@ -83,7 +83,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getnetbyaddr.xml b/CodeHawk/CHB/bchsummaries/so_functions/getnetbyaddr.xml index 7b7e249e..22c59228 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getnetbyaddr.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getnetbyaddr.xml @@ -27,7 +27,7 @@ int - netent + ch__netent diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getnetbyname.xml b/CodeHawk/CHB/bchsummaries/so_functions/getnetbyname.xml index 7fbb10db..a8153dfc 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getnetbyname.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getnetbyname.xml @@ -16,10 +16,10 @@ - name + char
- netent + ch__netent
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getpeername.xml b/CodeHawk/CHB/bchsummaries/so_functions/getpeername.xml index ba6f9eeb..4f75107e 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getpeername.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getpeername.xml @@ -31,7 +31,7 @@ int - ch_sockaddr + ch__sockaddr socklen_t @@ -47,7 +47,7 @@ - ch_sockaddr + ch__sockaddr address address_len @@ -62,12 +62,17 @@ - ch_sockaddr + ch__sockaddr address address_len + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getpriority.xml b/CodeHawk/CHB/bchsummaries/so_functions/getpriority.xml index 0e5ed460..f629ed7d 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getpriority.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getpriority.xml @@ -38,8 +38,16 @@ - - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getpwnam.xml b/CodeHawk/CHB/bchsummaries/so_functions/getpwnam.xml index 3f6617e6..2305daff 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getpwnam.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getpwnam.xml @@ -17,9 +17,9 @@ char -
+
- ch_passwd + ch__passwd
@@ -27,7 +27,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getrlimit.xml b/CodeHawk/CHB/bchsummaries/so_functions/getrlimit.xml index 65524e80..22408951 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getrlimit.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getrlimit.xml @@ -25,8 +25,8 @@ int - rlimit -
+ ch__rlimit +
int @@ -36,7 +36,13 @@ - + + + + + + +
Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getrlimit64.xml b/CodeHawk/CHB/bchsummaries/so_functions/getrlimit64.xml index c1c78772..0f1d40f1 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getrlimit64.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getrlimit64.xml @@ -25,8 +25,9 @@ int - rlimit -
+ ch__rlimit +
+
int @@ -36,7 +37,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getrusage.xml b/CodeHawk/CHB/bchsummaries/so_functions/getrusage.xml index 2b2279c9..8139374b 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getrusage.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getrusage.xml @@ -28,7 +28,7 @@ int - rusage + ch__rusage
@@ -40,7 +40,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getsockname.xml b/CodeHawk/CHB/bchsummaries/so_functions/getsockname.xml index 14c97cf6..4b50ce7d 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getsockname.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getsockname.xml @@ -27,7 +27,7 @@ int - ch_sockaddr + ch__sockaddr socklen_t @@ -43,7 +43,7 @@ - ch_sockaddr + ch__sockaddr address @@ -62,7 +62,7 @@ - ch_sockaddr + ch__sockaddr address_len @@ -72,6 +72,11 @@ + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getsockopt.xml b/CodeHawk/CHB/bchsummaries/so_functions/getsockopt.xml index 87806780..e5085065 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getsockopt.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getsockopt.xml @@ -82,6 +82,11 @@ + + + + +
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/getspnam.xml b/CodeHawk/CHB/bchsummaries/so_functions/getspnam.xml index 8f11ea8d..b5268376 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/getspnam.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/getspnam.xml @@ -23,13 +23,21 @@
char - spwd + ch__spwd - - + + + + + + + + + + Copyright 2012-2020, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/gettimeofday.xml b/CodeHawk/CHB/bchsummaries/so_functions/gettimeofday.xml index fd4f8b7d..a8f0b5d1 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/gettimeofday.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/gettimeofday.xml @@ -22,7 +22,7 @@ - ch_timeval + ch__timeval
@@ -33,7 +33,17 @@ - + + + + + + + 0 + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/gmtime.xml b/CodeHawk/CHB/bchsummaries/so_functions/gmtime.xml index 3eb86121..5a0722f4 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/gmtime.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/gmtime.xml @@ -24,7 +24,7 @@ - ch_tm + ch__tm diff --git a/CodeHawk/CHB/bchsummaries/so_functions/if_indextoname.xml b/CodeHawk/CHB/bchsummaries/so_functions/if_indextoname.xml index 90f44961..75be8aaa 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/if_indextoname.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/if_indextoname.xml @@ -38,7 +38,7 @@ char ifname - + 16 @@ -46,7 +46,23 @@ - + + + + + + char + ifname + 16 + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/if_nametoindex.xml b/CodeHawk/CHB/bchsummaries/so_functions/if_nametoindex.xml index ef81c84d..90cf6875 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/if_nametoindex.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/if_nametoindex.xml @@ -24,7 +24,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/inet_addr.xml b/CodeHawk/CHB/bchsummaries/so_functions/inet_addr.xml index 9339c76a..9cd75672 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/inet_addr.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/inet_addr.xml @@ -19,7 +19,7 @@ char
- in_addr_t + ch__in_addr
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/inet_aton.xml b/CodeHawk/CHB/bchsummaries/so_functions/inet_aton.xml index dd8b5460..50b803f0 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/inet_aton.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/inet_aton.xml @@ -32,7 +32,7 @@
- in_addr + ch__in_addr
int @@ -40,7 +40,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/inet_ntoa.xml b/CodeHawk/CHB/bchsummaries/so_functions/inet_ntoa.xml index 8c0afb47..51ece6e4 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/inet_ntoa.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/inet_ntoa.xml @@ -15,7 +15,7 @@ - in_addr + ch__in_addr char diff --git a/CodeHawk/CHB/bchsummaries/so_functions/inet_ntop.xml b/CodeHawk/CHB/bchsummaries/so_functions/inet_ntop.xml index 7822bf2f..464e135d 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/inet_ntop.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/inet_ntop.xml @@ -88,6 +88,11 @@ + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/inet_pton.xml b/CodeHawk/CHB/bchsummaries/so_functions/inet_pton.xml index 1c5dcf3f..36c6eff0 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/inet_pton.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/inet_pton.xml @@ -46,8 +46,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/ioctl.xml b/CodeHawk/CHB/bchsummaries/so_functions/ioctl.xml index 51cdae23..b8f11775 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/ioctl.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/ioctl.xml @@ -40,8 +40,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/isblank.xml b/CodeHawk/CHB/bchsummaries/so_functions/isblank.xml new file mode 100644 index 00000000..0f156362 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/isblank.xml @@ -0,0 +1,32 @@ + + + +
+ + + test for a blank character + + int isblank (int c) + + value to be tested if it is a character of class blank in the current locale + + + nonzero value + zero + + + + + + int + + int + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/isdigit.xml b/CodeHawk/CHB/bchsummaries/so_functions/isdigit.xml new file mode 100644 index 00000000..65da23c0 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/isdigit.xml @@ -0,0 +1,32 @@ + + + +
+ + + test for a decimal digit + + int isdigit (int c) + + value to be tested if it is a character of class digit in the current locale + + + nonzero value + zero + + + + + + int + + int + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/kill.xml b/CodeHawk/CHB/bchsummaries/so_functions/kill.xml index 40f9e9a8..d836d5f5 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/kill.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/kill.xml @@ -37,7 +37,13 @@ - + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/killpg.xml b/CodeHawk/CHB/bchsummaries/so_functions/killpg.xml index 3baffb58..963319cb 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/killpg.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/killpg.xml @@ -42,8 +42,16 @@ - - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/listen.xml b/CodeHawk/CHB/bchsummaries/so_functions/listen.xml index 97ddc715..f57cfd15 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/listen.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/listen.xml @@ -41,7 +41,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/localtime.xml b/CodeHawk/CHB/bchsummaries/so_functions/localtime.xml index 6666f8eb..f98ebe39 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/localtime.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/localtime.xml @@ -15,7 +15,7 @@ - tm + ch__tm time_t
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/lockf.xml b/CodeHawk/CHB/bchsummaries/so_functions/lockf.xml index f595a246..f92e38d5 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/lockf.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/lockf.xml @@ -44,7 +44,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/lockf64.xml b/CodeHawk/CHB/bchsummaries/so_functions/lockf64.xml new file mode 100644 index 00000000..6068c0b1 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/lockf64.xml @@ -0,0 +1,57 @@ + + + +
+ + + record locking on files + + + int lockf64( + int fildes, + int function, + off_t size + ) + + open file descriptor + + control value that specifies the action to be taken + + + the number of contiguous bytes to be locked or unlocked + + + 0 + -1 + + + + + + int + + + int + + + off_t + + int + + + + + + + + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/lrand48.xml b/CodeHawk/CHB/bchsummaries/so_functions/lrand48.xml new file mode 100644 index 00000000..ceda2375 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/lrand48.xml @@ -0,0 +1,25 @@ + + +
+ + + + pseudo-random number generator + + long lrand48 (void) + + + + long + + + + + + + + + + + Copyright 2012-2015, Kestrel Technology LLC, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/lseek.xml b/CodeHawk/CHB/bchsummaries/so_functions/lseek.xml index 9cc5d9af..e81bf2a3 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/lseek.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/lseek.xml @@ -39,8 +39,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/lseek64.xml b/CodeHawk/CHB/bchsummaries/so_functions/lseek64.xml index fdc21794..ed746d70 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/lseek64.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/lseek64.xml @@ -39,8 +39,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/malloc.xml b/CodeHawk/CHB/bchsummaries/so_functions/malloc.xml index 911278cd..728e9cf8 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/malloc.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/malloc.xml @@ -48,7 +48,13 @@ - + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/memcpy.xml b/CodeHawk/CHB/bchsummaries/so_functions/memcpy.xml index ed28047b..bc701cf7 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/memcpy.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/memcpy.xml @@ -63,15 +63,6 @@ -
-	
-	  
-	    
-	    count
-	    0
-	  
-	
-      
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/memmem.xml b/CodeHawk/CHB/bchsummaries/so_functions/memmem.xml index 5fe6f836..2b646530 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/memmem.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/memmem.xml @@ -4,7 +4,7 @@
- lates a substring + locates a substring void *memmem( diff --git a/CodeHawk/CHB/bchsummaries/so_functions/mkdir.xml b/CodeHawk/CHB/bchsummaries/so_functions/mkdir.xml index fd31dab0..facbd57d 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/mkdir.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/mkdir.xml @@ -41,7 +41,13 @@ - + + + + + + + Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/mkstemp.xml b/CodeHawk/CHB/bchsummaries/so_functions/mkstemp.xml index ef636c2d..e68c063d 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/mkstemp.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/mkstemp.xml @@ -26,8 +26,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/mkstemp64.xml b/CodeHawk/CHB/bchsummaries/so_functions/mkstemp64.xml index 9e2fbf56..82e2b65b 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/mkstemp64.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/mkstemp64.xml @@ -1,3 +1,4 @@ + @@ -26,8 +27,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/mktime.xml b/CodeHawk/CHB/bchsummaries/so_functions/mktime.xml index 57ed813e..fa2d7970 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/mktime.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/mktime.xml @@ -12,7 +12,7 @@ - ch_tm + ch__tm @@ -25,8 +25,16 @@ - - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/mmap.xml b/CodeHawk/CHB/bchsummaries/so_functions/mmap.xml index 60053c5c..9b97f00d 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/mmap.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/mmap.xml @@ -56,7 +56,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/mmap64.xml b/CodeHawk/CHB/bchsummaries/so_functions/mmap64.xml new file mode 100644 index 00000000..0b4ec743 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/mmap64.xml @@ -0,0 +1,69 @@ + + + +
+ + + map pages of memory + + + void *mmap64( + void *addr + size_t len + int prot + int flags + int fildes + off_t off + ) + + starting address of mapping + number of bytes to be mapped + + determines whether read, write, execute, or some combination of + accesses are permitted to the data being mapped + + flags + file descriptor + TBD + + address at which the mapping was placed + MAP_FAILED + + + + + + void + + + size_t + + + int + + + int + + + int + + + off_t + + void + + + + + + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/msgrcv.xml b/CodeHawk/CHB/bchsummaries/so_functions/msgrcv.xml index 69408116..92e448a8 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/msgrcv.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/msgrcv.xml @@ -48,9 +48,28 @@ - - - + +
+          
+            
+              
+              byte
+              msgp
+              msgsz
+            
+          
+        
+
+ + + + + + + + + +
Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/munmap.xml b/CodeHawk/CHB/bchsummaries/so_functions/munmap.xml index 055d7e65..b2bee55f 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/munmap.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/munmap.xml @@ -39,7 +39,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/nanosleep.xml b/CodeHawk/CHB/bchsummaries/so_functions/nanosleep.xml index f8d65a78..41142aa5 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/nanosleep.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/nanosleep.xml @@ -22,11 +22,11 @@ - timespec + ch__timespec
- timespec + ch__timespec
int @@ -34,8 +34,16 @@ - - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/open.xml b/CodeHawk/CHB/bchsummaries/so_functions/open.xml index 6acbd973..523d1fce 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/open.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/open.xml @@ -41,7 +41,13 @@ - + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/open64.xml b/CodeHawk/CHB/bchsummaries/so_functions/open64.xml index ad6ea941..b90cfbf5 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/open64.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/open64.xml @@ -46,7 +46,13 @@ - + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/opendir.xml b/CodeHawk/CHB/bchsummaries/so_functions/opendir.xml index 5f8b7992..2d42f486 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/opendir.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/opendir.xml @@ -19,7 +19,7 @@ char
- DIR + ch__DIR
@@ -27,7 +27,13 @@ - + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pclose.xml b/CodeHawk/CHB/bchsummaries/so_functions/pclose.xml index a19f0da8..92e9c3c7 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pclose.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pclose.xml @@ -16,7 +16,7 @@ - ch_FILE + ch__FILE
int @@ -24,8 +24,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pipe.xml b/CodeHawk/CHB/bchsummaries/so_functions/pipe.xml index d2167507..ed49041b 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pipe.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pipe.xml @@ -51,6 +51,11 @@ + + + + +
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/poll.xml b/CodeHawk/CHB/bchsummaries/so_functions/poll.xml index daf1cfbf..3ec0e56a 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/poll.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/poll.xml @@ -30,7 +30,7 @@ - pollfd + ch__pollfd nfds_t @@ -43,8 +43,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/popen.xml b/CodeHawk/CHB/bchsummaries/so_functions/popen.xml index f3915bd9..7241cf0f 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/popen.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/popen.xml @@ -29,7 +29,7 @@ char
- ch_FILE + ch__FILE
@@ -37,7 +37,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pow.xml b/CodeHawk/CHB/bchsummaries/so_functions/pow.xml new file mode 100644 index 00000000..ba5a7251 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/pow.xml @@ -0,0 +1,39 @@ + + + +
+ + + power function + + + double pow( + double x + double y + ) + + base value + exponent + + x raised to the power y + + + + + + double + + + double + + double + + + + + + + + + Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_broadcast.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_broadcast.xml index 5e02a37e..8a6fe707 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_broadcast.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_broadcast.xml @@ -16,7 +16,7 @@ - pthread_cond_t + ch__pthread_cond_t
int @@ -24,7 +24,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_destroy.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_destroy.xml index c07677df..73524d73 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_destroy.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_destroy.xml @@ -16,14 +16,16 @@ - pthread_cond_t + ch__pthread_cond_t int - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_init.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_init.xml index 16bbeac0..ee08d295 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_init.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_init.xml @@ -22,7 +22,7 @@ - pthread_cond_t + ch__pthread_cond_t pthread_condattr_t @@ -32,7 +32,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_signal.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_signal.xml index 1c186749..e91ae237 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_signal.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_signal.xml @@ -16,7 +16,7 @@ - pthread_cond_t + ch__pthread_cond_t
int @@ -24,7 +24,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_timedwait.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_timedwait.xml index a7fde7d7..0ac1cedb 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_timedwait.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_timedwait.xml @@ -24,20 +24,23 @@ - pthread_cond_t + ch__pthread_cond_t - pthread_mutex_t + ch__pthread_mutex_t - timespec + ch__timespec +
int
- + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_wait.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_wait.xml index 9be695be..d205d6f8 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_wait.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_cond_wait.xml @@ -22,17 +22,19 @@ - pthread_cond_t + ch__pthread_cond_t - pthread_mutex_t + ch__pthread_mutex_t int - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_create.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_create.xml index 40895e33..30e97b2e 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_create.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_create.xml @@ -26,10 +26,10 @@ - pthread_t + ch__pthread_t - pthread_attr_t + ch__pthread_attr_t pthread_start_routine @@ -42,7 +42,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_destroy.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_destroy.xml index ab8ec79e..1af43b3e 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_destroy.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_destroy.xml @@ -16,14 +16,16 @@ - pthread_mutex_t + ch__pthread_mutex_t int - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_init.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_init.xml index 374aee6a..ad5f76a6 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_init.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_init.xml @@ -22,17 +22,19 @@ - pthread_mutex_t + ch__pthread_mutex_t - pthread_mutexattr_t + ch__pthread_mutexattr_t int - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_lock.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_lock.xml index 554de99f..871d46ab 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_lock.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_lock.xml @@ -16,14 +16,16 @@ - pthread_mutex_t + ch__pthread_mutex_t int - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_trylock.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_trylock.xml index 3a5d6778..dbc1ef74 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_trylock.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_trylock.xml @@ -16,14 +16,16 @@ - pthread_mutex_t + ch__pthread_mutex_t int - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_unlock.xml b/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_unlock.xml index 6b649f3a..032db5fa 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_unlock.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/pthread_mutex_unlock.xml @@ -16,14 +16,16 @@ - pthread_mutex_t + ch__pthread_mutex_t int - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/putenv.xml b/CodeHawk/CHB/bchsummaries/so_functions/putenv.xml index 28284fb4..79e49e9a 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/putenv.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/putenv.xml @@ -33,8 +33,16 @@ - - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/puts.xml b/CodeHawk/CHB/bchsummaries/so_functions/puts.xml index c8650954..75a1b6d5 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/puts.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/puts.xml @@ -32,8 +32,16 @@ - - + + + + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/qsort.xml b/CodeHawk/CHB/bchsummaries/so_functions/qsort.xml new file mode 100644 index 00000000..e4759efb --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/qsort.xml @@ -0,0 +1,58 @@ + + + +
+ + + sort a table of data + + + void qsort( + void *base + size_t nel + size_t width + int (*compar)*const void *, const void *) + ) + + base of array to be sorted + number of elements + width of each element in bytes + comparison function + + + + + + void + + + size_t + + + size_t + + + comparison_fptr + + void + + + + +
+          
+            
+              
+              byte
+              base
+              nelwidth
+            
+          
+        
+
+ + +
+
+ Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/read.xml b/CodeHawk/CHB/bchsummaries/so_functions/read.xml index 591daf31..c73dfe7c 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/read.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/read.xml @@ -88,6 +88,11 @@ + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/readdir.xml b/CodeHawk/CHB/bchsummaries/so_functions/readdir.xml index a7f75b39..dd95a671 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/readdir.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/readdir.xml @@ -16,16 +16,24 @@ - DIR + ch__DIR
- dirent + ch__dirent
- - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/readdir64.xml b/CodeHawk/CHB/bchsummaries/so_functions/readdir64.xml index ac902c93..f794b394 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/readdir64.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/readdir64.xml @@ -16,10 +16,10 @@ - DIR + ch__DIR
- dirent + ch__dirent
@@ -27,7 +27,13 @@ - + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/readlink.xml b/CodeHawk/CHB/bchsummaries/so_functions/readlink.xml index dbe2f15a..f3152e0e 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/readlink.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/readlink.xml @@ -61,7 +61,9 @@ - + + + @@ -73,6 +75,11 @@ + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/realpath.xml b/CodeHawk/CHB/bchsummaries/so_functions/realpath.xml index 41bc5b60..440b182f 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/realpath.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/realpath.xml @@ -67,6 +67,11 @@ + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/recv.xml b/CodeHawk/CHB/bchsummaries/so_functions/recv.xml index 253c6941..734acc07 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/recv.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/recv.xml @@ -89,6 +89,11 @@ + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/recvfrom.xml b/CodeHawk/CHB/bchsummaries/so_functions/recvfrom.xml index 07dae72b..fdc413d6 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/recvfrom.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/recvfrom.xml @@ -55,7 +55,7 @@ int - ch_sockaddr + ch__sockaddr socklen_t @@ -79,7 +79,7 @@ - ch_sockaddr + ch__sockaddr address address_len @@ -121,12 +121,17 @@ - ch_sockaddr + ch__sockaddr address address_len + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/recvmsg.xml b/CodeHawk/CHB/bchsummaries/so_functions/recvmsg.xml index 444cf455..727ce38a 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/recvmsg.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/recvmsg.xml @@ -33,7 +33,7 @@ int - msghdr + ch__msghdr
@@ -44,8 +44,16 @@ - - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/remove.xml b/CodeHawk/CHB/bchsummaries/so_functions/remove.xml index d6f7e2e4..bc107c3b 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/remove.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/remove.xml @@ -32,7 +32,13 @@ - + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/rename.xml b/CodeHawk/CHB/bchsummaries/so_functions/rename.xml index 159575f7..765e5de9 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/rename.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/rename.xml @@ -37,7 +37,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/rewind.xml b/CodeHawk/CHB/bchsummaries/so_functions/rewind.xml index 1e739f68..404ada4b 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/rewind.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/rewind.xml @@ -13,7 +13,7 @@ - ch_FILE + ch__FILE
@@ -27,7 +27,13 @@ - + + + + + + + Copyright 2012-2015, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/rmdir.xml b/CodeHawk/CHB/bchsummaries/so_functions/rmdir.xml index abac0365..20a25559 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/rmdir.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/rmdir.xml @@ -32,7 +32,13 @@ - + + + + + + + Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/scandir.xml b/CodeHawk/CHB/bchsummaries/so_functions/scandir.xml new file mode 100644 index 00000000..8bbb1338 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/scandir.xml @@ -0,0 +1,56 @@ + + + +
+ + + scan a directory + + + int scandir( + const char *dir + const struct dirent ***namelist + int (*sel)(const struct direct *) + int (*compar)(const struct dirent **, const struct dirent **) + ) + + directory to be scanned + list in which selected entries are stored + function to select directory entries + function to sort directory entries + + number of entries stored + -1 + + + + + + char +
+
+ + ch__dirent +
+
+ + dir_select_fptr +
+
+ + comparison_fptr +
+
+ int +
+ + + + + + + + +
+ Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/scandir64.xml b/CodeHawk/CHB/bchsummaries/so_functions/scandir64.xml new file mode 100644 index 00000000..bf052552 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/scandir64.xml @@ -0,0 +1,56 @@ + + + +
+ + + scan a directory + + + int scandir64( + const char *dir + const struct dirent ***namelist + int (*sel)(const struct direct *) + int (*compar)(const struct dirent **, const struct dirent **) + ) + + directory to be scanned + list in which selected entries are stored + function to select directory entries + function to sort directory entries + + number of entries stored + -1 + + + + + + char +
+
+ + ch__dirent +
+
+ + dir_select_fptr +
+
+ + comparison_fptr +
+
+ int +
+ + + + + + + + +
+ Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/select.xml b/CodeHawk/CHB/bchsummaries/so_functions/select.xml index c52c3770..69a3c932 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/select.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/select.xml @@ -41,22 +41,22 @@ int - ch_fd_set + ch__fd_set
- ch_fd_set + ch__fd_set
- ch_fd_set + ch__fd_set
- ch_timeval + ch__timeval
int @@ -67,7 +67,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sem_init.xml b/CodeHawk/CHB/bchsummaries/so_functions/sem_init.xml index a3b2d758..c74974d4 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/sem_init.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/sem_init.xml @@ -25,7 +25,7 @@
- int + sem_t @@ -46,7 +46,13 @@ - + + + + + + + Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sem_post.xml b/CodeHawk/CHB/bchsummaries/so_functions/sem_post.xml index 8777aee0..abf19f27 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/sem_post.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/sem_post.xml @@ -16,7 +16,7 @@ - int + sem_t
@@ -32,7 +32,13 @@ - + + + + + + + Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sem_wait.xml b/CodeHawk/CHB/bchsummaries/so_functions/sem_wait.xml index a582f8f1..97d38a23 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/sem_wait.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/sem_wait.xml @@ -16,7 +16,7 @@ - int + sem_t
@@ -32,7 +32,13 @@ - + + + + + + + Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/send.xml b/CodeHawk/CHB/bchsummaries/so_functions/send.xml index aa09f407..c0e91bf4 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/send.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/send.xml @@ -41,9 +41,28 @@
- - - + +
+          
+            
+              
+              byte
+              buffer
+              length
+            
+          
+        
+
+ + + + + + + + + +
Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sendmsg.xml b/CodeHawk/CHB/bchsummaries/so_functions/sendmsg.xml index b364a86f..d1e67c4a 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/sendmsg.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/sendmsg.xml @@ -33,7 +33,7 @@ int
- msghdr + ch__msghdr
@@ -44,8 +44,16 @@ - - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sendto.xml b/CodeHawk/CHB/bchsummaries/so_functions/sendto.xml index f2860663..6e03d3fd 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/sendto.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/sendto.xml @@ -53,7 +53,7 @@ int - ch_sockaddr + ch__sockaddr socklen_t @@ -77,7 +77,7 @@ - ch_sockaddr + ch__sockaddr dest_addr dest_len @@ -104,7 +104,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/setbuf.xml b/CodeHawk/CHB/bchsummaries/so_functions/setbuf.xml new file mode 100644 index 00000000..535fac76 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/setbuf.xml @@ -0,0 +1,60 @@ + + + +
+ + + assign buffering to a stream + + + void setbuf( + FILE *resrict stream + char *resetrict buf + ) + + file to be buffered + buffer + + + + + + ch__FILE +
+
+ + char + + void +
+ + + +
+          
+            
+              
+              char
+              buf
+              1024
+            
+          
+        
+
+ + + + + + + char + buf + 1024 + + + + +
+
+ Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/setegid.xml b/CodeHawk/CHB/bchsummaries/so_functions/setegid.xml index 9bbb5b8f..45d45c34 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/setegid.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/setegid.xml @@ -23,8 +23,16 @@ - - + + + + + + + + + + Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/setenv.xml b/CodeHawk/CHB/bchsummaries/so_functions/setenv.xml index 29fe2eaa..a6172625 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/setenv.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/setenv.xml @@ -51,7 +51,13 @@ - + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/seteuid.xml b/CodeHawk/CHB/bchsummaries/so_functions/seteuid.xml index d47979e0..d15a858d 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/seteuid.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/seteuid.xml @@ -23,8 +23,16 @@ - - + + + + + + + + + + Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/setgid.xml b/CodeHawk/CHB/bchsummaries/so_functions/setgid.xml index ce0d1d07..254896c2 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/setgid.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/setgid.xml @@ -29,7 +29,13 @@ - + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sethostname.xml b/CodeHawk/CHB/bchsummaries/so_functions/sethostname.xml new file mode 100644 index 00000000..1792b6b1 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/sethostname.xml @@ -0,0 +1,59 @@ + + + +
+ + + set a hostname + + + int sethostname( + const char *name + size_t len + ) + + name to be given to the host + number of bytes in the name + + 0 + -1 + + + + + + char + + + size_t + + int + + + + +
+          
+            
+              
+              char
+              name
+              len
+            
+          
+        
+
+ + + + + + + + + + +
+
+ Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/setpgid.xml b/CodeHawk/CHB/bchsummaries/so_functions/setpgid.xml index 02f5941b..8e4765fa 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/setpgid.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/setpgid.xml @@ -22,10 +22,10 @@ - int + pid_t - int + pid_t int @@ -35,7 +35,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/setpriority.xml b/CodeHawk/CHB/bchsummaries/so_functions/setpriority.xml index 69b8f92c..633f3565 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/setpriority.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/setpriority.xml @@ -43,8 +43,16 @@ - - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/setrlimit.xml b/CodeHawk/CHB/bchsummaries/so_functions/setrlimit.xml index 8208c6fd..7809e081 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/setrlimit.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/setrlimit.xml @@ -27,7 +27,7 @@ int - rlimit + ch__rlimit
int @@ -38,7 +38,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/setrlimit64.xml b/CodeHawk/CHB/bchsummaries/so_functions/setrlimit64.xml index ca7b09b4..e30653c1 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/setrlimit64.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/setrlimit64.xml @@ -27,7 +27,7 @@ int - rlimit + ch__rlimit
int @@ -38,7 +38,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/setsid.xml b/CodeHawk/CHB/bchsummaries/so_functions/setsid.xml index 2ed2691a..e88df7c2 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/setsid.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/setsid.xml @@ -21,8 +21,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/setsockopt.xml b/CodeHawk/CHB/bchsummaries/so_functions/setsockopt.xml index beeda73c..53694522 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/setsockopt.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/setsockopt.xml @@ -63,7 +63,13 @@ - + + + + + + + Copyright 2012-2019, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/settimeofday.xml b/CodeHawk/CHB/bchsummaries/so_functions/settimeofday.xml new file mode 100644 index 00000000..6df23c7c --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/settimeofday.xml @@ -0,0 +1,50 @@ + + + +
+ + + set time + + + int settimeofday( + const struct timeval *tv + const struct timezone *tz + ) + + time to be set + timezone + + 0 + -1 + + + + + + ch__timeval +
+
+ + ch__timezone +
+
+ int +
+ + + + + + + + + + + + + + +
+ Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/setuid.xml b/CodeHawk/CHB/bchsummaries/so_functions/setuid.xml index 4f5957f2..5821de90 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/setuid.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/setuid.xml @@ -29,7 +29,13 @@ - + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/shutdown.xml b/CodeHawk/CHB/bchsummaries/so_functions/shutdown.xml index 60ebfca4..02300326 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/shutdown.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/shutdown.xml @@ -32,8 +32,16 @@ - - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sigaction.xml b/CodeHawk/CHB/bchsummaries/so_functions/sigaction.xml index e39c164c..18b45c04 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/sigaction.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/sigaction.xml @@ -33,11 +33,11 @@ int - sigaction + ch__sigaction
- sigaction + ch__sigaction
@@ -49,7 +49,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sigaddset.xml b/CodeHawk/CHB/bchsummaries/so_functions/sigaddset.xml index c86bd8bf..7945ccb4 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/sigaddset.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/sigaddset.xml @@ -22,7 +22,7 @@ - sigset_t + ch__sigset_t
@@ -36,7 +36,13 @@ - + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sigemptyset.xml b/CodeHawk/CHB/bchsummaries/so_functions/sigemptyset.xml index b0c59749..56b0d884 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/sigemptyset.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/sigemptyset.xml @@ -16,8 +16,9 @@ - sigset_t -
+ ch__sigset_t +
+
int
@@ -27,7 +28,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sigprocmask.xml b/CodeHawk/CHB/bchsummaries/so_functions/sigprocmask.xml index 5621975b..10cfc21d 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/sigprocmask.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/sigprocmask.xml @@ -33,11 +33,11 @@ int
- sigset_t + ch__sigset_t
- sigset_t + ch__sigset_t
@@ -46,8 +46,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/socket.xml b/CodeHawk/CHB/bchsummaries/so_functions/socket.xml index 8f8e93e7..9a631853 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/socket.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/socket.xml @@ -46,8 +46,16 @@ - - + + + + + + + + + + Copyright 2012-2019, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/socketpair.xml b/CodeHawk/CHB/bchsummaries/so_functions/socketpair.xml index c7bad7d9..0e01a2e2 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/socketpair.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/socketpair.xml @@ -79,6 +79,11 @@ + + + + +
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/srand48.xml b/CodeHawk/CHB/bchsummaries/so_functions/srand48.xml new file mode 100644 index 00000000..095913b9 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/srand48.xml @@ -0,0 +1,32 @@ + + +
+ + + + pseudo-random number generator + + void srand48 (unsigned seed) + seed for a new sequence of pseudo-random numbers + + + + void + + int + + + + + + + + + + + + + + + Copyright 2012-2015, Kestrel Technology LLC, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sscanf.xml b/CodeHawk/CHB/bchsummaries/so_functions/sscanf.xml index 37fd426f..660e3fab 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/sscanf.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/sscanf.xml @@ -57,7 +57,13 @@ - + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/stat.xml b/CodeHawk/CHB/bchsummaries/so_functions/stat.xml index 1d63470e..c2319cde 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/stat.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/stat.xml @@ -36,7 +36,7 @@ - stat + ch__stat
@@ -49,7 +49,13 @@ - + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/stat64.xml b/CodeHawk/CHB/bchsummaries/so_functions/stat64.xml index df6ea7cc..cc90f736 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/stat64.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/stat64.xml @@ -36,7 +36,7 @@ - stat + ch__stat
@@ -49,7 +49,13 @@ - + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/statfs.xml b/CodeHawk/CHB/bchsummaries/so_functions/statfs.xml new file mode 100644 index 00000000..4bd37add --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/statfs.xml @@ -0,0 +1,51 @@ + + + +
+ + + get filesystem statistics + + + int statfs( + const char *path + struct statfs *buf + ) + + pathname of file in a mounted filesystem + pointer to the structure receiving the statistics + + 0 + -1 + + + + + + char +
+
+ + ch__statfs +
+ +
+ int +
+ + + + + + + + + + + + + + +
+ Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/statfs64.xml b/CodeHawk/CHB/bchsummaries/so_functions/statfs64.xml new file mode 100644 index 00000000..6eee5e48 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/statfs64.xml @@ -0,0 +1,51 @@ + + + +
+ + + get filesystem statistics + + + int statfs64( + const char *path + struct statfs *buf + ) + + pathname of file in a mounted filesystem + pointer to the structure receiving the statistics + + 0 + -1 + + + + + + char +
+
+ + ch__statfs +
+ +
+ int +
+ + + + + + + + + + + + + + +
+ Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/strcpy.xml b/CodeHawk/CHB/bchsummaries/so_functions/strcpy.xml index 4af6992c..aa8fe9b9 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/strcpy.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/strcpy.xml @@ -21,7 +21,6 @@ -
char diff --git a/CodeHawk/CHB/bchsummaries/so_functions/strcspn.xml b/CodeHawk/CHB/bchsummaries/so_functions/strcspn.xml new file mode 100644 index 00000000..4c38a8af --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/strcspn.xml @@ -0,0 +1,41 @@ + + + +
+ + + get the length of a complementary substring + + + size_t strcspn( + const char *s1 + const char *s2 + ) + + string to be considered + string of bytes to be excluded + + length of segment + + + + + + char +
+
+ + char +
+
+ int +
+ + + + + + +
+ Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/strdup.xml b/CodeHawk/CHB/bchsummaries/so_functions/strdup.xml index 34e62f39..cc8d83f9 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/strdup.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/strdup.xml @@ -58,7 +58,13 @@ - + + + + + + + Copyright 2012-2016, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/strftime.xml b/CodeHawk/CHB/bchsummaries/so_functions/strftime.xml index 881fd899..45273b4a 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/strftime.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/strftime.xml @@ -44,13 +44,15 @@ size_t - char + char +
- tm + ch__tm +
@@ -65,7 +67,7 @@
 	
 	  
-	    
+	    
 	    char
 	    strDest
 	    maxsize
@@ -76,7 +78,18 @@
     
       
     
-    
+    
+      
+        
+          
+            
+            char
+            strDest
+            maxsize
+          
+        
+      
+    
    
   
   Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/strlcat.xml b/CodeHawk/CHB/bchsummaries/so_functions/strlcat.xml
new file mode 100644
index 00000000..9b2d735f
--- /dev/null
+++ b/CodeHawk/CHB/bchsummaries/so_functions/strlcat.xml
@@ -0,0 +1,84 @@
+
+
+  
+  
+ + + size-bounded string copying and concatenation + + + size_t strlcat( + char *dst + const char *src + size_t size + ) + + pointer to destination buffer + pointer to source string + size of the destination buffer + + length of src + + + + + + char + + + char +
+ + + size_t + + size_t + + + + +
+          
+            
+              
+              char
+              src
+              size
+            
+          
+        
+
+          
+            
+              
+              char
+              dst
+	      
+	        
+	        src
+	        dst
+	      
+            
+          
+        
+
+ + + + + + + char + dst + + + src + dst + + + + + +
+ + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/strlcpy.xml b/CodeHawk/CHB/bchsummaries/so_functions/strlcpy.xml index 7fac89a4..0dc27cac 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/strlcpy.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/strlcpy.xml @@ -1,6 +1,6 @@ - +
@@ -27,6 +27,7 @@ char +
size_t @@ -35,9 +36,41 @@ - + +
+          
+            
+              
+              char
+              src
+              size
+            
+          
+        
+
+          
+            
+              
+              char
+              dst
+              size
+            
+          
+        
+
- + + + + + + char + dst + size + + + +
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/strncpy.xml b/CodeHawk/CHB/bchsummaries/so_functions/strncpy.xml index ac0d6279..607aef58 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/strncpy.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/strncpy.xml @@ -36,6 +36,7 @@ +
size_t @@ -46,16 +47,6 @@ -
-      
-       
-        
-	char
-        src
-	count
-       
-      
-     
        
 	 
diff --git a/CodeHawk/CHB/bchsummaries/so_functions/strptime.xml b/CodeHawk/CHB/bchsummaries/so_functions/strptime.xml
index 6e058bac..6627a08d 100644
--- a/CodeHawk/CHB/bchsummaries/so_functions/strptime.xml
+++ b/CodeHawk/CHB/bchsummaries/so_functions/strptime.xml
@@ -37,11 +37,11 @@
         char
       
       
-	
+
char - - tm + + ch__tm
@@ -50,7 +50,9 @@ - + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/strtok_r.xml b/CodeHawk/CHB/bchsummaries/so_functions/strtok_r.xml new file mode 100644 index 00000000..4011031f --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/strtok_r.xml @@ -0,0 +1,50 @@ + + + +
+ + + split string into tokens + + + char *strtok_r( + char *restrict s + const char *restrict sep + char **restrict state + ) + + string to be split + delimiter used for splitting + user-provided pointer to maintain state + + pointer to the first byte of a token + NULL + + + + + + char +
+
+ + char +
+
+ + char +
+
+ char +
+ + + + + + + + +
+ Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/strtol.xml b/CodeHawk/CHB/bchsummaries/so_functions/strtol.xml index 1d7d2346..d70db93a 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/strtol.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/strtol.xml @@ -7,7 +7,7 @@ convert a string to a long integer - double strtol( + long strtol( const char *restrict nptr char **restrict endptr int base diff --git a/CodeHawk/CHB/bchsummaries/so_functions/strtoll.xml b/CodeHawk/CHB/bchsummaries/so_functions/strtoll.xml new file mode 100644 index 00000000..02af9f2c --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/strtoll.xml @@ -0,0 +1,53 @@ + + +
+ + + + converts a string to a long long integer + + long long strtoll (const char *str, char **endptr, int base) + pointer to the string to be converted + pointer to a pointer to the final string; can be NULL + base of the number (0 for automatic) + + converted value + 0 or LONG_MAX or LONG_MIN + + + + + long_long + + + + + char +
+
+ + char +
+ +
+ + int + +
+ + + + + + + + + + + + + + +
+ Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sync.xml b/CodeHawk/CHB/bchsummaries/so_functions/sync.xml new file mode 100644 index 00000000..04c09f2a --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/sync.xml @@ -0,0 +1,24 @@ + + + +
+ + + schedule file system updates + + void sync (void) + + + + + void + + + + + + + + + Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/sysinfo.xml b/CodeHawk/CHB/bchsummaries/so_functions/sysinfo.xml index b71361cd..65ca66b9 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/sysinfo.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/sysinfo.xml @@ -16,7 +16,7 @@ - sysinfo + ch__sysinfo
int @@ -25,7 +25,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/system.xml b/CodeHawk/CHB/bchsummaries/so_functions/system.xml index 276a527f..bfbbfdd3 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/system.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/system.xml @@ -33,8 +33,16 @@ - - + + + + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/tcflush.xml b/CodeHawk/CHB/bchsummaries/so_functions/tcflush.xml index 932cd973..0363416d 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/tcflush.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/tcflush.xml @@ -32,8 +32,16 @@ - - + + + + + + + + + + Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/tcgetattr.xml b/CodeHawk/CHB/bchsummaries/so_functions/tcgetattr.xml index 50de9e72..389979f1 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/tcgetattr.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/tcgetattr.xml @@ -25,7 +25,9 @@ int - ch_termios + ch__termios +
+
int
@@ -33,7 +35,13 @@ - + + + + + + + Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/tcsetattr.xml b/CodeHawk/CHB/bchsummaries/so_functions/tcsetattr.xml index c4e34354..b7b9d456 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/tcsetattr.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/tcsetattr.xml @@ -30,15 +30,24 @@ int - ch_termios + ch__termios +
int - - + + + + + + + + + + Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/tempnam.xml b/CodeHawk/CHB/bchsummaries/so_functions/tempnam.xml new file mode 100644 index 00000000..0e0814d1 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/tempnam.xml @@ -0,0 +1,50 @@ + + + +
+ + + create a name for a temporary file + + + char *tempnam( + const char *dir + const char *pfx + ) + + directory to create the new file + optional name prefix + + pointer to name created + NULL + + + + + + char +
+
+ + char +
+
+ char +
+ + + + + + + + + + + + + + +
+ Copyright 2012-2024, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/time.xml b/CodeHawk/CHB/bchsummaries/so_functions/time.xml index 0e0dbedd..66d4baf7 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/time.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/time.xml @@ -30,8 +30,16 @@ - - + + + + + + + + + + Copyright 2012-2017, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/times.xml b/CodeHawk/CHB/bchsummaries/so_functions/times.xml new file mode 100644 index 00000000..f624c556 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/times.xml @@ -0,0 +1,41 @@ + + + +
+ + + get process and waited-for child process times + + clock_t times (struct tm *buffer) + tm structure to be filled in + + elapsed time since a point in the past + -1 + + + + + + ch__tm +
+ +
+ clock_t +
+ + + + + + + + + + + + + + +
+ Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/ungetc.xml b/CodeHawk/CHB/bchsummaries/so_functions/ungetc.xml index 36ad02d5..6f7c169c 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/ungetc.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/ungetc.xml @@ -25,7 +25,7 @@ int - ch_FILE + ch__FILE diff --git a/CodeHawk/CHB/bchsummaries/so_functions/unlink.xml b/CodeHawk/CHB/bchsummaries/so_functions/unlink.xml index 639fc80a..1cecaca1 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/unlink.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/unlink.xml @@ -17,7 +17,7 @@ char -
+
int
@@ -27,7 +27,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/usleep.xml b/CodeHawk/CHB/bchsummaries/so_functions/usleep.xml index eb264983..8c67e204 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/usleep.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/usleep.xml @@ -24,8 +24,16 @@ - - + + + + + + + + + + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/vfprintf.xml b/CodeHawk/CHB/bchsummaries/so_functions/vfprintf.xml index ffef75bd..4f7d2576 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/vfprintf.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/vfprintf.xml @@ -25,7 +25,7 @@ int - ch_FILE + ch__FILE diff --git a/CodeHawk/CHB/bchsummaries/so_functions/wait.xml b/CodeHawk/CHB/bchsummaries/so_functions/wait.xml new file mode 100644 index 00000000..4ca3f7e1 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/wait.xml @@ -0,0 +1,40 @@ + + + +
+ + + wait for a child process to stop or terminate + + pid_t wait (int *stat_loc) + status information + + process ID of the child process + -1 + + + + + + int +
+
+ pid_t +
+ + + + + + + + + + + + + + +
+ Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/wait4.xml b/CodeHawk/CHB/bchsummaries/so_functions/wait4.xml new file mode 100644 index 00000000..af6693f7 --- /dev/null +++ b/CodeHawk/CHB/bchsummaries/so_functions/wait4.xml @@ -0,0 +1,62 @@ + + + +
+ + + wait for process to change state + + + pid_t wait4( + pid_t pid + int *_Nullable wstatus + int options + struct rusage *_Nullable rusage + ) + + specification of process IDs + status of the process requested + options + resource usage of the process requested + + process ID of process requested + -1 + + + + + + pid_t + + + int +
+ +
+ + int + + + ch__rusage +
+ +
+ pid_t +
+ + + + + + + + + + + + + + +
+ Copyright 2012-2026, Henny Sipma, Palo Alto, CA 94304 + diff --git a/CodeHawk/CHB/bchsummaries/so_functions/waitpid.xml b/CodeHawk/CHB/bchsummaries/so_functions/waitpid.xml index 33a78782..4c54e311 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/waitpid.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/waitpid.xml @@ -47,7 +47,13 @@ - + + + + + + + Copyright 2012-2020, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/write.xml b/CodeHawk/CHB/bchsummaries/so_functions/write.xml index 35073fd9..195c1531 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/write.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/write.xml @@ -77,7 +77,13 @@ - + + + + + + + Copyright 2012-2019, Kestrel Technology LLC, Palo Alto, CA 94304 diff --git a/CodeHawk/CHB/bchsummaries/so_functions/writev.xml b/CodeHawk/CHB/bchsummaries/so_functions/writev.xml index bee46dde..876645ad 100644 --- a/CodeHawk/CHB/bchsummaries/so_functions/writev.xml +++ b/CodeHawk/CHB/bchsummaries/so_functions/writev.xml @@ -30,7 +30,7 @@ int - iovec + ch__iovec int @@ -55,7 +55,13 @@
- + + + + + + +