2017-06-24 03:10:54 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2017-10-26 21:39:00 +03:00
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2017-06-24 03:10:54 +03:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "FileDescriptorFile.h"
|
|
|
|
|
|
|
|
#include "mozilla/ipc/FileDescriptorUtils.h"
|
|
|
|
#include "mozilla/ipc/URIUtils.h"
|
|
|
|
#include "mozilla/net/NeckoChild.h"
|
|
|
|
#include "nsIFileURL.h"
|
|
|
|
#include "nsNetUtil.h"
|
|
|
|
#include "nsProxyRelease.h"
|
|
|
|
#include "nsThreadUtils.h"
|
|
|
|
#include "private/pprio.h"
|
|
|
|
#include "SerializedLoadContext.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
|
|
|
NS_IMPL_ISUPPORTS(FileDescriptorFile, nsIFile)
|
|
|
|
|
|
|
|
LazyLogModule gFDFileLog("FDFile");
|
|
|
|
#undef DBG
|
|
|
|
#define DBG(...) MOZ_LOG(gFDFileLog, LogLevel::Debug, (__VA_ARGS__))
|
|
|
|
|
|
|
|
FileDescriptorFile::FileDescriptorFile(const FileDescriptor& aFD,
|
|
|
|
nsIFile* aFile) {
|
|
|
|
MOZ_ASSERT(aFD.IsValid());
|
|
|
|
auto platformHandle = aFD.ClonePlatformHandle();
|
|
|
|
mFD = FileDescriptor(platformHandle.get());
|
|
|
|
mFile = aFile;
|
|
|
|
}
|
|
|
|
|
|
|
|
FileDescriptorFile::FileDescriptorFile(const FileDescriptorFile& aOther) {
|
|
|
|
auto platformHandle = aOther.mFD.ClonePlatformHandle();
|
|
|
|
mFD = FileDescriptor(platformHandle.get());
|
|
|
|
aOther.mFile->Clone(getter_AddRefs(mFile));
|
|
|
|
}
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// FileDescriptorFile::nsIFile functions that we override logic for
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::Clone(nsIFile** aFileOut) {
|
2017-06-24 03:10:54 +03:00
|
|
|
RefPtr<FileDescriptorFile> fdFile = new FileDescriptorFile(*this);
|
|
|
|
fdFile.forget(aFileOut);
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
FileDescriptorFile::OpenNSPRFileDesc(int32_t aFlags, int32_t aMode,
|
2017-07-18 09:48:42 +03:00
|
|
|
PRFileDesc** aRetval) {
|
2017-06-24 03:10:54 +03:00
|
|
|
// Remove optional OS_READAHEAD flag so we test against PR_RDONLY
|
|
|
|
aFlags &= ~nsIFile::OS_READAHEAD;
|
|
|
|
|
|
|
|
// Remove optional/deprecated DELETE_ON_CLOSE flag
|
|
|
|
aFlags &= ~nsIFile::DELETE_ON_CLOSE;
|
|
|
|
|
|
|
|
// All other flags require write access to the file and
|
|
|
|
// this implementation only provides read access.
|
|
|
|
if (aFlags != PR_RDONLY) {
|
|
|
|
DBG("OpenNSPRFileDesc flags error (%" PRIu32 ")\n", aFlags);
|
|
|
|
return NS_ERROR_NOT_AVAILABLE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!mFD.IsValid()) {
|
|
|
|
DBG("OpenNSPRFileDesc error: no file descriptor\n");
|
|
|
|
return NS_ERROR_NOT_AVAILABLE;
|
|
|
|
}
|
|
|
|
|
|
|
|
auto platformHandle = mFD.ClonePlatformHandle();
|
|
|
|
*aRetval = PR_ImportFile(PROsfd(platformHandle.release()));
|
|
|
|
|
|
|
|
if (!*aRetval) {
|
|
|
|
DBG("OpenNSPRFileDesc Clone failure\n");
|
|
|
|
return NS_ERROR_NOT_AVAILABLE;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// FileDescriptorFile::nsIFile functions that we delegate to underlying nsIFile
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2017-07-18 09:48:42 +03:00
|
|
|
nsresult FileDescriptorFile::GetLeafName(nsAString& aLeafName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return mFile->GetLeafName(aLeafName);
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetNativeLeafName(nsACString& aLeafName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return mFile->GetNativeLeafName(aLeafName);
|
|
|
|
}
|
|
|
|
|
2017-07-18 09:48:42 +03:00
|
|
|
nsresult FileDescriptorFile::GetTarget(nsAString& aRetVal) {
|
|
|
|
return mFile->GetTarget(aRetVal);
|
2017-06-24 03:10:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetNativeTarget(nsACString& aRetVal) {
|
|
|
|
return mFile->GetNativeTarget(aRetVal);
|
2017-06-24 03:10:54 +03:00
|
|
|
}
|
|
|
|
|
2017-07-18 09:48:42 +03:00
|
|
|
nsresult FileDescriptorFile::GetPath(nsAString& aRetVal) {
|
|
|
|
return mFile->GetPath(aRetVal);
|
2017-06-24 03:10:54 +03:00
|
|
|
}
|
|
|
|
|
2017-12-27 21:03:35 +03:00
|
|
|
PathString FileDescriptorFile::NativePath() { return mFile->NativePath(); }
|
2017-06-24 03:10:54 +03:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::Equals(nsIFile* aOther, bool* aRetVal) {
|
|
|
|
return mFile->Equals(aOther, aRetVal);
|
2017-06-24 03:10:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::Contains(nsIFile* aOther, bool* aRetVal) {
|
|
|
|
return mFile->Contains(aOther, aRetVal);
|
2017-06-24 03:10:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetParent(nsIFile** aParent) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return mFile->GetParent(aParent);
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetFollowLinks(bool* aFollowLinks) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return mFile->GetFollowLinks(aFollowLinks);
|
|
|
|
}
|
|
|
|
|
2017-12-17 07:37:03 +03:00
|
|
|
NS_IMETHODIMP
|
|
|
|
FileDescriptorFile::GetPersistentDescriptor(nsACString& aPersistentDescriptor) {
|
|
|
|
return mFile->GetPersistentDescriptor(aPersistentDescriptor);
|
|
|
|
}
|
|
|
|
|
2017-06-24 03:10:54 +03:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// FileDescriptorFile::nsIFile functions that are not currently supported
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2017-07-18 09:48:42 +03:00
|
|
|
nsresult FileDescriptorFile::Append(const nsAString& aNode) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::AppendNative(const nsACString& aFragment) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
FileDescriptorFile::Normalize() { return NS_ERROR_NOT_IMPLEMENTED; }
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::Create(uint32_t aType, uint32_t aPermissions) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
2017-07-18 09:48:42 +03:00
|
|
|
nsresult FileDescriptorFile::SetLeafName(const nsAString& aLeafName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::SetNativeLeafName(const nsACString& aLeafName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
2017-07-18 09:48:42 +03:00
|
|
|
nsresult FileDescriptorFile::InitWithPath(const nsAString& aPath) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::InitWithNativePath(const nsACString& aPath) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::InitWithFile(nsIFile* aFile) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
FileDescriptorFile::SetFollowLinks(bool aFollowLinks) {
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
2017-07-18 09:48:42 +03:00
|
|
|
nsresult FileDescriptorFile::AppendRelativePath(const nsAString& aNode) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::AppendRelativeNativePath(const nsACString& aFragment) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::SetPersistentDescriptor(
|
|
|
|
const nsACString& aPersistentDescriptor) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetRelativeDescriptor(nsIFile* aFromFile,
|
|
|
|
nsACString& aRetVal) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::SetRelativeDescriptor(nsIFile* aFromFile,
|
|
|
|
const nsACString& aRelativeDesc) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetRelativePath(nsIFile* aFromFile, nsACString& aRetVal) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::SetRelativePath(nsIFile* aFromFile,
|
|
|
|
const nsACString& aRelativePath) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
2017-07-18 09:48:42 +03:00
|
|
|
nsresult FileDescriptorFile::CopyTo(nsIFile* aNewParentDir,
|
|
|
|
const nsAString& aNewName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::CopyToNative(nsIFile* aNewParent,
|
|
|
|
const nsACString& aNewName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
2017-07-18 09:48:42 +03:00
|
|
|
nsresult FileDescriptorFile::CopyToFollowingLinks(nsIFile* aNewParentDir,
|
|
|
|
const nsAString& aNewName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::CopyToFollowingLinksNative(nsIFile* aNewParent,
|
|
|
|
const nsACString& aNewName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
2017-07-18 09:48:42 +03:00
|
|
|
nsresult FileDescriptorFile::MoveTo(nsIFile* aNewParentDir,
|
|
|
|
const nsAString& aNewName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::MoveToNative(nsIFile* aNewParent,
|
|
|
|
const nsACString& aNewName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::RenameTo(nsIFile* aNewParentDir,
|
|
|
|
const nsAString& aNewName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::RenameToNative(nsIFile* aNewParentDir,
|
|
|
|
const nsACString& aNewName) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::Remove(bool aRecursive) { return NS_ERROR_NOT_IMPLEMENTED; }
|
2017-06-24 03:10:54 +03:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetPermissions(uint32_t* aPermissions) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
FileDescriptorFile::SetPermissions(uint32_t aPermissions) {
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetPermissionsOfLink(uint32_t* aPermissionsOfLink) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
FileDescriptorFile::SetPermissionsOfLink(uint32_t aPermissions) {
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetLastModifiedTime(PRTime* aLastModTime) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
FileDescriptorFile::SetLastModifiedTime(PRTime aLastModTime) {
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetLastModifiedTimeOfLink(PRTime* aLastModTimeOfLink) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
FileDescriptorFile::SetLastModifiedTimeOfLink(PRTime aLastModTimeOfLink) {
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetFileSize(int64_t* aFileSize) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
FileDescriptorFile::SetFileSize(int64_t aFileSize) {
|
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetFileSizeOfLink(int64_t* aFileSize) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::Exists(bool* aRetVal) { return NS_ERROR_NOT_IMPLEMENTED; }
|
2017-06-24 03:10:54 +03:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::IsWritable(bool* aRetVal) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::IsReadable(bool* aRetVal) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::IsExecutable(bool* aRetVal) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::IsHidden(bool* aRetVal) { return NS_ERROR_NOT_IMPLEMENTED; }
|
2017-06-24 03:10:54 +03:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::IsDirectory(bool* aRetVal) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::IsFile(bool* aRetVal) { return NS_ERROR_NOT_IMPLEMENTED; }
|
2017-06-24 03:10:54 +03:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::IsSymlink(bool* aRetVal) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::IsSpecial(bool* aRetVal) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::CreateUnique(uint32_t aType, uint32_t aAttributes) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2018-05-18 01:06:48 +03:00
|
|
|
FileDescriptorFile::GetDirectoryEntriesImpl(nsIDirectoryEnumerator** aEntries) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::OpenANSIFileDesc(const char* aMode, FILE** aRetVal) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::Load(PRLibrary** aRetVal) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2017-07-18 09:48:42 +03:00
|
|
|
FileDescriptorFile::GetDiskSpaceAvailable(int64_t* aDiskSpaceAvailable) {
|
2017-06-24 03:10:54 +03:00
|
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
FileDescriptorFile::Reveal() { return NS_ERROR_NOT_IMPLEMENTED; }
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
FileDescriptorFile::Launch() { return NS_ERROR_NOT_IMPLEMENTED; }
|
|
|
|
|
|
|
|
} // namespace net
|
|
|
|
} // namespace mozilla
|