version 1.46.2.3, 2011/03/05 15:09:19 |
version 1.47, 2011/01/20 02:57:00 |
Line 50 __RCSID("$NetBSD$"); |
|
Line 50 __RCSID("$NetBSD$"); |
|
#include <stdlib.h> |
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
#include <ssp/ssp.h> |
|
|
|
#include "extern.h" |
#include "extern.h" |
|
|
#ifdef __weak_alias |
#ifdef __weak_alias |
__weak_alias(getcwd,_getcwd) |
__weak_alias(getcwd,_sys_getcwd) |
__weak_alias(_sys_getcwd,_getcwd) |
__weak_alias(_getcwd,_sys_getcwd) |
__weak_alias(realpath,_realpath) |
__weak_alias(realpath,_realpath) |
|
|
|
#if defined(_FORTIFY_SOURCE) && !defined(__lint__) |
|
#undef getcwd |
|
#define getcwd _sys_getcwd |
|
#endif |
|
|
#endif |
#endif |
|
|
/* |
/* |
|
|
} |
} |
|
|
char * |
char * |
__ssp_real(getcwd)(char *pt, size_t size) |
getcwd(char *pt, size_t size) |
{ |
{ |
char *npt; |
char *npt; |
|
|