summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-29 21:29:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-29 21:29:16 +0000
commit38a2236fc62bb5b4520eb994ab1f5bd8c5942f50 (patch)
treeb06e0058b1ac8d647401d1d71266941b5dcc54ea /lib/libc/sys
parent9ba6c7b553a591494444e098862acfc939c83b7b (diff)
Provide stubs for things which are supplied by crt0. I don't think we
want a crt0.ln, at least, not yet. We may reconsider later.
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/Lint_crt.c7
-rw-r--r--lib/libc/sys/Makefile.inc6
2 files changed, 10 insertions, 3 deletions
diff --git a/lib/libc/sys/Lint_crt.c b/lib/libc/sys/Lint_crt.c
new file mode 100644
index 00000000000..33ac1ea99c6
--- /dev/null
+++ b/lib/libc/sys/Lint_crt.c
@@ -0,0 +1,7 @@
+/* $OpenBSD: Lint_crt.c,v 1.1 2005/11/29 21:29:15 deraadt Exp $ */
+
+/* Publid domain, Theo de Raadt, 2005 */
+
+#include <unistd.h>
+
+char *__progname;
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc
index 06b19696108..3b863196f99 100644
--- a/lib/libc/sys/Makefile.inc
+++ b/lib/libc/sys/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.74 2005/10/03 11:35:53 jmc Exp $
+# $OpenBSD: Makefile.inc,v 1.75 2005/11/29 21:29:15 deraadt Exp $
# $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $
# @(#)Makefile.inc 8.1 (Berkeley) 6/17/93
@@ -13,11 +13,11 @@ SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S rfork.S \
LSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \
Lint_rfork.c Lint_sbrk.c \
Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \
- Lint_sigsuspend.c Lint_syscall.c
+ Lint_sigsuspend.c Lint_syscall.c Lint_crt.c
DPSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \
Lint_sbrk.c \
Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \
- Lint_sigsuspend.c Lint_syscall.c
+ Lint_sigsuspend.c Lint_syscall.c Lint_crt.c
# glue to provide compatibility between GCC 1.X and 2.X and for compat
# with old syscall interfaces.