Bug 1227569 - Remove unsupported OpenVMS code. r=mccr8

This commit is contained in:
Birunthan Mohanathas 2015-12-18 15:02:50 +02:00
parent 39384e5175
commit e7b4184d71
7 changed files with 3 additions and 77 deletions

View File

@ -418,7 +418,6 @@ ExDisp.h
exe386.h
execinfo.h
extras.h
fabdef.h
fcntl.h
features.h
fibdef.h
@ -628,7 +627,6 @@ libgnome/libgnome.h
libgnomeui/gnome-icon-lookup.h
libgnomeui/gnome-icon-theme.h
libgnomeui/gnome-ui-init.h
lib$routines.h
limits
limits.h
link.h
@ -889,7 +887,6 @@ resolv.h
Resources.h
Retrace.h
rld_interface.h
rmsdef.h
Roster.h
rpc.h
rpcproxy.h
@ -927,7 +924,6 @@ someincludefile.h
Sound.h
soundcard.h
sqlite3.h
ssdef.h
sstream
stack
#ifdef ANDROID
@ -1154,7 +1150,6 @@ unikbd.h
unistd.h
unix.h
unixio.h
unixlib.h
unknwn.h
UPrinting.h
UQuickTime.h

View File

@ -1270,9 +1270,7 @@ static nsresult pref_InitInitialObjects()
"winpref.js"
#elif defined(XP_UNIX)
"unix.js"
#if defined(VMS)
, "openvms.js"
#elif defined(_AIX)
#if defined(_AIX)
, "aix.js"
#endif
#elif defined(XP_BEOS)

View File

@ -30,10 +30,6 @@
#include "prenv.h"
#endif
#ifdef VMS
#include <rmsdef.h>
#endif
#if defined(MOZ_WIDGET_GONK) && !defined(MOZ_CRASHREPORTER)
#include <sys/syscall.h>
#endif
@ -617,27 +613,6 @@ nsresult nsProfileLock::Lock(nsIFile* aProfileDir,
}
return NS_ERROR_FILE_ACCESS_DENIED;
}
#elif defined(VMS)
nsAutoCString filePath;
rv = lockFile->GetNativePath(filePath);
if (NS_FAILED(rv))
return rv;
lockFile->GetLastModifiedTime(&mReplacedLockTime);
mLockFileDesc = open_noshr(filePath.get(), O_CREAT, 0666);
if (mLockFileDesc == -1)
{
if ((errno == EVMSERR) && (vaxc$errno == RMS$_FLK))
{
return NS_ERROR_FILE_ACCESS_DENIED;
}
else
{
NS_ERROR("Failed to open lock file.");
return NS_ERROR_FAILURE;
}
}
#endif
mHaveLock = true;

View File

@ -552,9 +552,7 @@ struct nsExtraMimeTypeEntry {
*/
static nsExtraMimeTypeEntry extraMimeEntries [] =
{
#if defined(VMS)
{ APPLICATION_OCTET_STREAM, "exe,com,bin,sav,bck,pcsi,dcx_axpexe,dcx_vaxexe,sfx_axpexe,sfx_vaxexe", "Binary File" },
#elif defined(XP_MACOSX) // don't define .bin on the mac...use internet config to look that up...
#if defined(XP_MACOSX) // don't define .bin on the mac...use internet config to look that up...
{ APPLICATION_OCTET_STREAM, "exe,com", "Binary File" },
#else
{ APPLICATION_OCTET_STREAM, "exe,com,bin", "Binary File" },

View File

@ -38,11 +38,6 @@
#include <signal.h>
#endif
#ifdef VMS
#include <lib$routines.h>
#include <ssdef.h>
#endif
#ifdef DEBUG
#define IMPLEMENT_BREAK_AFTER_LOAD
#endif

View File

@ -34,10 +34,6 @@ using mozilla::IsWin7OrLater;
#endif
#if defined(VMS)
#include <unixlib.h>
#endif
#ifndef MAXPATHLEN
#ifdef PATH_MAX
#define MAXPATHLEN PATH_MAX
@ -221,19 +217,7 @@ GetRegWindowsAppDataFolder(bool aLocal, nsIFile** aFile)
static nsresult
GetUnixHomeDir(nsIFile** aFile)
{
#ifdef VMS
char* pHome;
pHome = getenv("HOME");
if (*pHome == '/') {
return NS_NewNativeLocalFile(nsDependentCString(pHome),
true,
aFile);
} else {
return NS_NewNativeLocalFile(nsDependentCString(decc$translate_vms(pHome)),
true,
aFile);
}
#elif defined(ANDROID)
#if defined(ANDROID)
// XXX no home dir on android; maybe we should return the sdcard if present?
return NS_ERROR_FAILURE;
#else

View File

@ -20,9 +20,6 @@
#include <dirent.h>
#include <ctype.h>
#include <locale.h>
#if defined(VMS)
#include <fabdef.h>
#endif
#if defined(HAVE_SYS_QUOTA_H) && defined(HAVE_LINUX_QUOTA_H)
#define USE_LINUX_QUOTACTL
@ -1007,11 +1004,7 @@ nsLocalFile::MoveToNative(nsIFile* aNewParent, const nsACString& aNewName)
// try for atomic rename, falling back to copy/delete
if (rename(mPath.get(), newPathName.get()) < 0) {
#ifdef VMS
if (errno == EXDEV || errno == ENXIO) {
#else
if (errno == EXDEV) {
#endif
rv = CopyToNative(aNewParent, aNewName);
if (NS_SUCCEEDED(rv)) {
rv = Remove(true);
@ -1231,14 +1224,6 @@ nsLocalFile::GetFileSize(int64_t* aFileSize)
*aFileSize = 0;
ENSURE_STAT_CACHE();
#if defined(VMS)
/* Only two record formats can report correct file content size */
if ((mCachedStat.st_fab_rfm != FAB$C_STMLF) &&
(mCachedStat.st_fab_rfm != FAB$C_STMCR)) {
return NS_ERROR_FAILURE;
}
#endif
if (!S_ISDIR(mCachedStat.st_mode)) {
*aFileSize = (int64_t)mCachedStat.st_size;
}
@ -2177,11 +2162,7 @@ nsLocalFile::RenameToNative(nsIFile* aNewParentDir, const nsACString& aNewName)
// try for atomic rename
if (rename(mPath.get(), newPathName.get()) < 0) {
#ifdef VMS
if (errno == EXDEV || errno == ENXIO) {
#else
if (errno == EXDEV) {
#endif
rv = NS_ERROR_FILE_ACCESS_DENIED;
} else {
rv = NSRESULT_FOR_ERRNO();