StdLib: Improve robustness of stat() and make basename() a public function.

AppPkg: Refinements to pyconfig.h and port of getpath.c to EDK II.

Signed-off-by: darylm503
Reviewed-by: geekboy15a
Reviewed-by: jljusten


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12508 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
darylm503
2011-10-03 18:54:12 +00:00
parent 58081f2c64
commit 41b152c5f6
20 changed files with 1340 additions and 1072 deletions

View File

@@ -94,6 +94,7 @@
#include <LibConfig.h>
#include <string.h>
#include <fcntl.h>
#include <sys/syslimits.h>
#ifndef HAVE_GETOPT
char *optarg;
@@ -138,11 +139,7 @@ getopt(int argc, char **argv, char *args)
}
#endif
#ifdef WIN32
#define ISPATHSEPARATOR(x) ((x == '/') || (x == '\\'))
#else
#define ISPATHSEPARATOR(x) (x == '/')
#endif
#ifndef HAVE_BASENAME
#ifndef PATH_MAX