/* Provide relocatable programs.
- Copyright (C) 2003-2012 Free Software Foundation, Inc.
+ Copyright (C) 2003-2014 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
#include <unistd.h>
#include <sys/stat.h>
-/* Get declaration of _NSGetExecutablePath on MacOS X 10.2 or newer. */
+/* Get declaration of _NSGetExecutablePath on Mac OS X 10.2 or newer. */
#if HAVE_MACH_O_DYLD_H
# include <mach-o/dyld.h>
#endif
static bool
maybe_executable (const char *filename)
{
- /* Woe32 lacks the access() function. */
+ /* The native Windows API lacks the access() function. */
#if !defined WINDOWS_NATIVE
if (access (filename, X_OK) < 0)
return false;
/* Determine the full pathname of the current executable, freshly allocated.
Return NULL if unknown.
- Guaranteed to work on Linux and Woe32. Likely to work on the other
- Unixes (maybe except BeOS), under most conditions. */
+ Guaranteed to work on Linux and native Windows. Likely to work on the
+ other Unixes (maybe except BeOS), under most conditions. */
static char *
find_executable (const char *argv0)
{
}
# endif
# if HAVE_MACH_O_DYLD_H && HAVE__NSGETEXECUTABLEPATH
- /* On MacOS X 10.2 or newer, the function
+ /* On Mac OS X 10.2 or newer, the function
int _NSGetExecutablePath (char *buf, uint32_t *bufsize);
can be used to retrieve the executable's full path. */
char location[4096];