diff --git a/.gitattributes b/.gitattributes index 2347491242..0bc1edf721 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10249,6 +10249,9 @@ rtl/openbsd/i386/bsyscall.inc svneol=native#text/plain rtl/openbsd/i386/cprt0.as svneol=native#text/plain rtl/openbsd/i386/dllprt0.as svneol=native#text/plain rtl/openbsd/i386/prt0.as svneol=native#text/plain +rtl/openbsd/i386/si_c.inc svneol=native#text/plain +rtl/openbsd/i386/si_dll.inc svneol=native#text/plain +rtl/openbsd/i386/si_prc.inc svneol=native#text/plain rtl/openbsd/i386/sighnd.inc svneol=native#text/plain rtl/openbsd/osdefs.inc svneol=native#text/plain rtl/openbsd/pmutext.inc svneol=native#text/plain @@ -10256,6 +10259,10 @@ rtl/openbsd/pthread.inc svneol=native#text/plain rtl/openbsd/ptypes.inc svneol=native#text/plain rtl/openbsd/rtldefs.inc svneol=native#text/plain rtl/openbsd/setsysnr.inc svneol=native#text/plain +rtl/openbsd/si_c.pp svneol=native#text/plain +rtl/openbsd/si_dll.pp svneol=native#text/plain +rtl/openbsd/si_intf.inc svneol=native#text/plain +rtl/openbsd/si_prc.pp svneol=native#text/plain rtl/openbsd/signal.inc svneol=native#text/plain rtl/openbsd/syscalls.inc svneol=native#text/plain rtl/openbsd/sysconst.inc svneol=native#text/plain @@ -10276,6 +10283,9 @@ rtl/openbsd/x86_64/crt0.s svneol=native#text/plain rtl/openbsd/x86_64/dllprt0.as svneol=native#text/plain rtl/openbsd/x86_64/gprt0.as svneol=native#text/plain rtl/openbsd/x86_64/prt0.as svneol=native#text/plain +rtl/openbsd/x86_64/si_c.inc svneol=native#text/plain +rtl/openbsd/x86_64/si_dll.inc svneol=native#text/plain +rtl/openbsd/x86_64/si_prc.inc svneol=native#text/plain rtl/openbsd/x86_64/sighnd.inc svneol=native#text/plain rtl/os2/Makefile svneol=native#text/plain rtl/os2/Makefile.fpc svneol=native#text/plain diff --git a/rtl/openbsd/i386/si_c.inc b/rtl/openbsd/i386/si_c.inc new file mode 100644 index 0000000000..ff272a25b5 --- /dev/null +++ b/rtl/openbsd/i386/si_c.inc @@ -0,0 +1,17 @@ +{ + This file is part of the Free Pascal run time library. + Copyright (c) 2019 by Free Pascal development team + + This file implements parts of the startup code for OpenBSD + programs that link to the C library. + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} + + diff --git a/rtl/openbsd/i386/si_dll.inc b/rtl/openbsd/i386/si_dll.inc new file mode 100644 index 0000000000..7d43e0aea1 --- /dev/null +++ b/rtl/openbsd/i386/si_dll.inc @@ -0,0 +1,17 @@ +{ + This file is part of the Free Pascal run time library. + Copyright (c) 2019 by Free Pascal development team + + This file implements parts of the startup code for OpenBSD + shared object (.so) libraries. + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} + + diff --git a/rtl/openbsd/i386/si_prc.inc b/rtl/openbsd/i386/si_prc.inc new file mode 100644 index 0000000000..ffba986bc8 --- /dev/null +++ b/rtl/openbsd/i386/si_prc.inc @@ -0,0 +1,17 @@ +{ + This file is part of the Free Pascal run time library. + Copyright (c) 2019 by Free Pascal development team + + This file implements parts of the startup code for OpenBSD + programs that don't link to the C library. + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} + + diff --git a/rtl/openbsd/si_c.pp b/rtl/openbsd/si_c.pp new file mode 100644 index 0000000000..6e957eb4f5 --- /dev/null +++ b/rtl/openbsd/si_c.pp @@ -0,0 +1,27 @@ +{ + This file is part of the Free Pascal run time library. + Copyright (c) 2019 by Free Pascal development team + + This file implements the startup code for OpenBSD programs that + link to the C library. + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} + +unit si_c; + +interface + +{$i si_intf.inc} + +implementation + +{$i si_c.inc} + +end. diff --git a/rtl/openbsd/si_dll.pp b/rtl/openbsd/si_dll.pp new file mode 100644 index 0000000000..f8a5cde2c3 --- /dev/null +++ b/rtl/openbsd/si_dll.pp @@ -0,0 +1,27 @@ +{ + This file is part of the Free Pascal run time library. + Copyright (c) 2019 by Free Pascal development team + + This file implements the startup code for OpenBSD shared object + (.so) libraries. + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} + +unit si_dll; + +interface + +{$i si_intf.inc} + +implementation + +{$i si_dll.inc} + +end. diff --git a/rtl/openbsd/si_intf.inc b/rtl/openbsd/si_intf.inc new file mode 100644 index 0000000000..fd7985b26f --- /dev/null +++ b/rtl/openbsd/si_intf.inc @@ -0,0 +1,22 @@ +{ + This file is part of the Free Pascal run time library. + Copyright (c) 2019 by Free Pascal development team + + This file implements the public interface parts of the startup + code for OpenBSD programs or shared object (.so) libraries. + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} + +{$SMARTLINK OFF} + +var + operatingsystem_parameter_envp: ppchar; public name 'operatingsystem_parameter_envp'; + operatingsystem_parameter_argc: longint; public name 'operatingsystem_parameter_argc'; + operatingsystem_parameter_argv: ppchar; public name 'operatingsystem_parameter_argv'; diff --git a/rtl/openbsd/si_prc.pp b/rtl/openbsd/si_prc.pp new file mode 100644 index 0000000000..ca2e5889d9 --- /dev/null +++ b/rtl/openbsd/si_prc.pp @@ -0,0 +1,28 @@ +{ + This file is part of the Free Pascal run time library. + Copyright (c) 2019 by Free Pascal development team + + This file implements the startup code for OpenBSD programs that + don't link to the C library. + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} + + +unit si_prc; + +interface + +{$i si_intf.inc} + +implementation + +{$i si_prc.inc} + +end. diff --git a/rtl/openbsd/x86_64/si_c.inc b/rtl/openbsd/x86_64/si_c.inc new file mode 100644 index 0000000000..ff272a25b5 --- /dev/null +++ b/rtl/openbsd/x86_64/si_c.inc @@ -0,0 +1,17 @@ +{ + This file is part of the Free Pascal run time library. + Copyright (c) 2019 by Free Pascal development team + + This file implements parts of the startup code for OpenBSD + programs that link to the C library. + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} + + diff --git a/rtl/openbsd/x86_64/si_dll.inc b/rtl/openbsd/x86_64/si_dll.inc new file mode 100644 index 0000000000..7d43e0aea1 --- /dev/null +++ b/rtl/openbsd/x86_64/si_dll.inc @@ -0,0 +1,17 @@ +{ + This file is part of the Free Pascal run time library. + Copyright (c) 2019 by Free Pascal development team + + This file implements parts of the startup code for OpenBSD + shared object (.so) libraries. + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} + + diff --git a/rtl/openbsd/x86_64/si_prc.inc b/rtl/openbsd/x86_64/si_prc.inc new file mode 100644 index 0000000000..ffba986bc8 --- /dev/null +++ b/rtl/openbsd/x86_64/si_prc.inc @@ -0,0 +1,17 @@ +{ + This file is part of the Free Pascal run time library. + Copyright (c) 2019 by Free Pascal development team + + This file implements parts of the startup code for OpenBSD + programs that don't link to the C library. + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} + +