*** empty log message ***

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@454 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Unknown User d91-jda
1996-05-01 15:22:29 +00:00
parent a6f3b7c6e7
commit 12c36f4d0a
3 changed files with 25 additions and 0 deletions

17
lib/roken/getcwd.c Normal file
View File

@@ -0,0 +1,17 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
RCSID("$Id$");
#endif
#include <sys/param.h>
char*
getcwd(char *path, int size)
{
char xxx[MAXPATHLEN];
char *ret;
ret = getwd(xxx);
if(ret)
strncpy(path, xxx, size);
return ret;
}

View File

@@ -47,4 +47,8 @@ int inet_aton(char *cp, struct in_addr *adr);
#endif
#endif
#if !defined(HAVE_GETCWD) || defined(BROKEN_GETCWD)
char* getcwd(char *path, int size)
#endif
#endif /* __ROKEN_H__ */

View File

@@ -47,4 +47,8 @@ int inet_aton(char *cp, struct in_addr *adr);
#endif
#endif
#if !defined(HAVE_GETCWD) || defined(BROKEN_GETCWD)
char* getcwd(char *path, int size)
#endif
#endif /* __ROKEN_H__ */