From 8c6e549540761a76bb803aee3e46eb251e140897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Groenvall?= Date: Tue, 23 Apr 1996 14:26:32 +0000 Subject: [PATCH] x git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@425 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/roken.h | 42 ++++++++++++++++++++++++++++++++++++++++++ lib/roken/roken.h.in | 42 ++++++++++++++++++++++++++++++++++++++++++ lib/roken/snprintf.c | 2 +- 3 files changed, 85 insertions(+), 1 deletion(-) diff --git a/lib/roken/roken.h b/lib/roken/roken.h index 0c51ca306..4cfdead9d 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -3,4 +3,46 @@ #ifndef __ROKEN_H__ #define __ROKEN_H__ +#ifndef HAVE_PUTENV +int putenv(const char *string) +#endif + +#ifndef HAVE_SETENV +int setenv(const char *var, const char *val, int rewrite); +#endif + +#ifndef HAVE_GETUSERSHELL +char *getusershell __P((void)); +#endif + +#ifndef HAVE_STRDUP +char * strdup(const char *old); +#endif + +#ifndef HAVE_GETDTABLESIZE +int getdtablesize(void); +#endif + +#ifdef RETSIGTYPE +typedef RETSIGTYPE (*SigAction)(/* int??? */); +SigAction signal(int iSig, SigAction pAction); /* BSD compatible */ +#endif + +#ifndef HAVE_SNPRINTF +int snprintf(char *s, int n, const char *fmt, ...); +#endif + +#ifndef HAVE_STRERROR +char *strerror(int eno); +#endif + +#ifndef HAVE_HSTRERROR +char *hstrerror(int herr); +#endif + +#ifndef HAVE_INET_ATON +/* Minimal implementation of inet_aton. Doesn't handle hex numbers. */ +int inet_aton(char *cp, struct in_addr *adr); +#endif + #endif /* __ROKEN_H__ */ diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 0c51ca306..4cfdead9d 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -3,4 +3,46 @@ #ifndef __ROKEN_H__ #define __ROKEN_H__ +#ifndef HAVE_PUTENV +int putenv(const char *string) +#endif + +#ifndef HAVE_SETENV +int setenv(const char *var, const char *val, int rewrite); +#endif + +#ifndef HAVE_GETUSERSHELL +char *getusershell __P((void)); +#endif + +#ifndef HAVE_STRDUP +char * strdup(const char *old); +#endif + +#ifndef HAVE_GETDTABLESIZE +int getdtablesize(void); +#endif + +#ifdef RETSIGTYPE +typedef RETSIGTYPE (*SigAction)(/* int??? */); +SigAction signal(int iSig, SigAction pAction); /* BSD compatible */ +#endif + +#ifndef HAVE_SNPRINTF +int snprintf(char *s, int n, const char *fmt, ...); +#endif + +#ifndef HAVE_STRERROR +char *strerror(int eno); +#endif + +#ifndef HAVE_HSTRERROR +char *hstrerror(int herr); +#endif + +#ifndef HAVE_INET_ATON +/* Minimal implementation of inet_aton. Doesn't handle hex numbers. */ +int inet_aton(char *cp, struct in_addr *adr); +#endif + #endif /* __ROKEN_H__ */ diff --git a/lib/roken/snprintf.c b/lib/roken/snprintf.c index 9d35de6b4..99344facf 100644 --- a/lib/roken/snprintf.c +++ b/lib/roken/snprintf.c @@ -7,7 +7,7 @@ RCSID("$Id$"); -int snprintf(char *s, int n, char *fmt, ...) +int snprintf(char *s, int n, const char *fmt, ...) { int ret; va_list ap;