*** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@454 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
17
lib/roken/getcwd.c
Normal file
17
lib/roken/getcwd.c
Normal 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;
|
||||
}
|
@@ -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__ */
|
||||
|
@@ -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__ */
|
||||
|
Reference in New Issue
Block a user