Fix some protos for libroken

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@508 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1996-05-06 13:33:32 +00:00
parent 36b18f643f
commit dd7dd21224
3 changed files with 37 additions and 2 deletions

View File

@@ -14,6 +14,10 @@ int putenv(const char *string);
int setenv(const char *var, const char *val, int rewrite);
#endif
#ifndef HAVE_UNSETENV
void unsetenv(const char *name);
#endif
#ifndef HAVE_GETUSERSHELL
char *getusershell(void);
#endif
@@ -43,6 +47,10 @@ char *strerror(int eno);
char *hstrerror(int herr);
#endif
#ifndef HAVE_HERROR
void herror(char *s);
#endif
#ifndef HAVE_INET_ATON
/* Minimal implementation of inet_aton. Doesn't handle hex numbers. */
#ifndef __GNUC__
@@ -54,4 +62,12 @@ int inet_aton(char *cp, struct in_addr *adr);
char* getcwd(char *path, int size);
#endif
#ifndef HAVE_GETENT
int getent(char *cp, char *name);
#endif
#ifndef HAVE_GETSTR
char *getstr(char *id, char **cpp);
#endif
#endif /* __ROKEN_H__ */

View File

@@ -14,6 +14,10 @@ int putenv(const char *string);
int setenv(const char *var, const char *val, int rewrite);
#endif
#ifndef HAVE_UNSETENV
void unsetenv(const char *name);
#endif
#ifndef HAVE_GETUSERSHELL
char *getusershell(void);
#endif
@@ -43,6 +47,10 @@ char *strerror(int eno);
char *hstrerror(int herr);
#endif
#ifndef HAVE_HERROR
void herror(char *s);
#endif
#ifndef HAVE_INET_ATON
/* Minimal implementation of inet_aton. Doesn't handle hex numbers. */
#ifndef __GNUC__
@@ -54,4 +62,12 @@ int inet_aton(char *cp, struct in_addr *adr);
char* getcwd(char *path, int size);
#endif
#ifndef HAVE_GETENT
int getent(char *cp, char *name);
#endif
#ifndef HAVE_GETSTR
char *getstr(char *id, char **cpp);
#endif
#endif /* __ROKEN_H__ */

View File

@@ -2,10 +2,13 @@
#include <config.h>
#endif
#include <stdlib.h>
RCSID("$Id$");
#include <stdlib.h>
#include <string.h>
#include "roken.h"
extern char **environ;
/*