From 683fb22e99a514875d47e95aa19dddc42caac688 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 14 Dec 1996 20:56:51 +0000 Subject: [PATCH] more prototypes git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1101 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/roken.h | 42 ++++++++++++++++++++++++++++++++++++++++-- lib/roken/roken.h.in | 42 ++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 80 insertions(+), 4 deletions(-) diff --git a/lib/roken/roken.h b/lib/roken/roken.h index 435b945f7..129108657 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -45,9 +45,18 @@ #include #include #include +#ifdef HAVE_UNISTD_H +#include +#endif #ifdef HAVE_SYS_TYPES_H #include #endif +#ifdef HAVE_GRP_H +#include +#endif +#ifdef HAVE_SYS_STAT_H +#include +#endif #ifdef HAVE_NETINET_IN_H #include #endif @@ -74,6 +83,10 @@ char *getusershell(void); char * strdup(const char *old); #endif +#ifndef HAVE_STRLWR +char * strlwr(char *); +#endif + #ifndef HAVE_STRNLEN int strnlen(char*, int); #endif @@ -82,6 +95,10 @@ int strnlen(char*, int); char *strtok_r(char *s1, const char *s2, char **lasts); #endif +#ifndef HAVE_STRUPR +char * strupr(char *); +#endif + #ifndef HAVE_GETDTABLESIZE int getdtablesize(void); #endif @@ -147,10 +164,31 @@ int setegid(int egid); #endif #if !defined(HAVE_STRCHR) && defined(HAVE_INDEX) -#define strchr(p, ch) index(p, ch) +char *strchr(const char *s, int c); #endif #if !defined(HAVE_STRRCHR) && defined(HAVE_RINDEX) -#define strrchr(p, ch) rindex(p, ch) +char *strrchr(const char *s, int c); +#endif + +#ifndef HAVE_LSTAT +int lstat(const char *path, struct stat *buf); +#endif + +#ifndef HAVE_INITGROUPS +int initgroups(const char *name, gid_t basegid); +#endif + +#ifndef HAVE_FCHOWN +int fchown(int fd, uid_t owner, gid_t group); +#endif + +#ifndef HAVE_CHOWN +int chown(const char *path, uid_t owner, gid_t group); +#endif + +#ifndef HAVE_RCMD +int rcmd(char **ahost, unsigned short inport, const char *locuser, + const char *remuser, const char *cmd, int *fd2p); #endif #ifdef TIME_WITH_SYS_TIME diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 435b945f7..129108657 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -45,9 +45,18 @@ #include #include #include +#ifdef HAVE_UNISTD_H +#include +#endif #ifdef HAVE_SYS_TYPES_H #include #endif +#ifdef HAVE_GRP_H +#include +#endif +#ifdef HAVE_SYS_STAT_H +#include +#endif #ifdef HAVE_NETINET_IN_H #include #endif @@ -74,6 +83,10 @@ char *getusershell(void); char * strdup(const char *old); #endif +#ifndef HAVE_STRLWR +char * strlwr(char *); +#endif + #ifndef HAVE_STRNLEN int strnlen(char*, int); #endif @@ -82,6 +95,10 @@ int strnlen(char*, int); char *strtok_r(char *s1, const char *s2, char **lasts); #endif +#ifndef HAVE_STRUPR +char * strupr(char *); +#endif + #ifndef HAVE_GETDTABLESIZE int getdtablesize(void); #endif @@ -147,10 +164,31 @@ int setegid(int egid); #endif #if !defined(HAVE_STRCHR) && defined(HAVE_INDEX) -#define strchr(p, ch) index(p, ch) +char *strchr(const char *s, int c); #endif #if !defined(HAVE_STRRCHR) && defined(HAVE_RINDEX) -#define strrchr(p, ch) rindex(p, ch) +char *strrchr(const char *s, int c); +#endif + +#ifndef HAVE_LSTAT +int lstat(const char *path, struct stat *buf); +#endif + +#ifndef HAVE_INITGROUPS +int initgroups(const char *name, gid_t basegid); +#endif + +#ifndef HAVE_FCHOWN +int fchown(int fd, uid_t owner, gid_t group); +#endif + +#ifndef HAVE_CHOWN +int chown(const char *path, uid_t owner, gid_t group); +#endif + +#ifndef HAVE_RCMD +int rcmd(char **ahost, unsigned short inport, const char *locuser, + const char *remuser, const char *cmd, int *fd2p); #endif #ifdef TIME_WITH_SYS_TIME