Description: openbsd work by Nikolay and Pierre (active) Revisions in this set 47b8bf5924b835920fbf3d2f27137437c3c056de,b9e3a0692cea695c2fc7a65dd5826aa36d0e0d56,9b7cbb0e0b99bb2697e93057853c1cfdd1c99599,f6e13c50a91459873d9da21f14ad9e1eebf9a7ca,924b4c6f10917bdb65e4ff14f20c17211e72cc62,d9c109a4dd3e17405a567f2ebd657723dd86d259,6f411d6355156913f10c37aa700e1559a1a498c2,a83bc6263903a51c789545d381bfd86e3ae9f1d9,639adc314f4660859264f647b2b5172847265dcf,8988a5e028080ac37c20c06bf8d0cfc134cdeb7e,5c7adf9af382ee5919ebfb7c806cab3d520977dd,5f4a0c7af7b8f605338728aa0274ad1f877e2a75,0100c4abf8df357f5c58e9d70d8b35233e994c51,1e4442f1fa25431480c9b1f4194589b04b5fd28c commit 47b8bf5924b835920fbf3d2f27137437c3c056de Author: nickysn Date: Wed Apr 10 17:06:17 2019 +0000 + added the initial implementation of my C structure checker code generator tool, named h2paschk. This is currently a separate tool, that requires a manually crafted input file with a special syntax (example is included as a comment in the source code), that contains descriptions of all the records that need to be checked, but it is planned to add support to h2pas to generate these files automatically, since this would be very useful. git-svn-id: trunk@41858 - M .gitattributes A utils/h2pas/h2paschk.pas --- commit b9e3a0692cea695c2fc7a65dd5826aa36d0e0d56 Author: nickysn Date: Wed Apr 10 17:15:40 2019 +0000 + added h2paschk.pas to the makefiles git-svn-id: trunk@41859 - M utils/h2pas/fpmake.pp --- commit 9b7cbb0e0b99bb2697e93057853c1cfdd1c99599 Author: nickysn Date: Mon Apr 15 14:22:44 2019 +0000 + added OpenBSD RTL structure checker description file for use with the h2paschk tool. Currently only checks the stat and dirent structures, but more will be added in the future. git-svn-id: trunk@41874 - M .gitattributes A rtl/openbsd/t_openbsd.h2paschk --- commit f6e13c50a91459873d9da21f14ad9e1eebf9a7ca Author: nickysn Date: Mon Apr 15 14:33:33 2019 +0000 + added pollfd to the openbsd structure checker file git-svn-id: trunk@41875 - M rtl/openbsd/t_openbsd.h2paschk --- commit 924b4c6f10917bdb65e4ff14f20c17211e72cc62 Author: nickysn Date: Mon Apr 15 15:02:24 2019 +0000 + more structures added to the openbsd structure checker file: utimbuf, flock, tms, timezone, rusage, TRLimit and iovec git-svn-id: trunk@41877 - M rtl/openbsd/t_openbsd.h2paschk --- commit d9c109a4dd3e17405a567f2ebd657723dd86d259 Author: nickysn Date: Tue Apr 16 16:45:54 2019 +0000 + added h2paschk structure checker files for the DirectDraw and DirectInput header translations, used by PTCPas. git-svn-id: trunk@41887 - M .gitattributes A packages/ptc/src/win32/directx/t_ddraw.h2paschk A packages/ptc/src/win32/directx/t_dinput.h2paschk --- commit 6f411d6355156913f10c37aa700e1559a1a498c2 Author: pierre Date: Tue Apr 16 22:03:40 2019 +0000 Avoid C 64-bit compiler warnings by using %lu instead of %u for sizeof and offsetof git-svn-id: trunk@41888 - M utils/h2pas/h2paschk.pas --- commit a83bc6263903a51c789545d381bfd86e3ae9f1d9 Author: pierre Date: Thu Apr 25 06:10:43 2019 +0000 Improve syscall number testing script: + Add support for parameters: -v sets verbose variable to 1 VAR=value gets evaluated. * moves to rtl/$os if called at diferent level. + check if there is a incude directive in sysnr.inc file. + Add compilation of C source code with the C variant of the syscall number. + Support 32 and 64-bit version of C compilation for systems allowing 32 and 64-bit executable (like x86_64-linux). + Add 'preprocessing' using AWK to test {$ifdef CPUXXX} macro. + Add summary at end of script. * Rename check_syscall_number to check_c_syscall_from_fpc_rtl * Rename check_syscall_number_reverse to check_c_syscall_in_fpc_rtl * Try to remove most intermediate files. + Generate add_missing_syscalls.inc file if numbers are missing. git-svn-id: trunk@41928 - M rtl/unix/scripts/check_sys.sh --- commit 639adc314f4660859264f647b2b5172847265dcf Author: pierre Date: Thu Apr 25 13:04:39 2019 +0000 Eliminate wrong line (bug report 35441) git-svn-id: trunk@41934 - M rtl/unix/scripts/check_sys.sh --- commit 8988a5e028080ac37c20c06bf8d0cfc134cdeb7e Author: pierre Date: Wed May 1 14:46:23 2019 +0000 + Add handling of simple types and constants + Add ReadID helper procedure inside ProcessH2PasChk method git-svn-id: trunk@41964 - M utils/h2pas/h2paschk.pas --- commit 5c7adf9af382ee5919ebfb7c806cab3d520977dd Author: pierre Date: Wed May 1 14:49:14 2019 +0000 Add simple types and some constants git-svn-id: trunk@41965 - M rtl/openbsd/t_openbsd.h2paschk --- commit 5f4a0c7af7b8f605338728aa0274ad1f877e2a75 Author: pierre Date: Wed May 1 22:00:06 2019 +0000 * freebsd and openbsd also use sys/syscall.h header + Add AWK parser to removed parts of source not concerning current CPU (only handles CPUXXX like CPUI386) git-svn-id: trunk@41969 - M rtl/unix/scripts/check_sys.sh --- commit 0100c4abf8df357f5c58e9d70d8b35233e994c51 Author: pierre Date: Thu May 2 12:55:51 2019 +0000 More improvements to script testing syscall numbers git-svn-id: trunk@41970 - M rtl/unix/scripts/check_sys.sh --- commit 1e4442f1fa25431480c9b1f4194589b04b5fd28c Author: pierre Date: Mon May 6 13:25:56 2019 +0000 Add more system header constants git-svn-id: trunk@42010 - M rtl/openbsd/t_openbsd.h2paschk