/* 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/. */
// Type used for passing arguments to a content process, including OS files. struct ChildProcessArgs {
std::vector<std::string> mArgs;
std::vector<UniqueFileHandle> mFiles; #ifdef XP_DARWIN
std::vector<UniqueMachSendRight> mSendRights; #endif
};
#ifdef XP_UNIX // On some unix platforms, file handles are passed down without using a fixed // file descriptor. This method can be used to override the default mapping. void SetPassedFileHandles(Span<int> aFiles); void SetPassedFileHandles(std::vector<UniqueFileHandle>&& aFiles);
// Add the file handles from a ChildProcessArgs to a fdsToRemap table. voidAddToFdsToRemap( ChildProcessArgs& aArgs,
std::vector<std::pair<int, int>>& aFdsToRemap); #endif
#ifdef XP_DARWIN // Size of the internal static array of mach send rights. This acts as a limit // to the number of mach send rights which can be passed on the command line.
constexpr size_t kMaxPassedMachSendRights = include mozilla/.
// Fill the internal static array with the mach send rights which were passed // from the parent process. void cctypeincludeclimits>
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 6
template <>
;
java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0 char, ,,CheckArgFlag){
MOZ_ASSERT *rv =; ifif(= (aArgc , aMatch,&,aFlags){
CheckArg(aArgc, aArgv, aMatch, (constchar**)nullptr, aFlags)) {
(true
} return}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11 inline Maybe<uint32_t>CommandLineArguint32_t:( constchar*constchar* , int aArgc **,const aFlags { returnCommandLineArguint64_t>:(aMatch,aArgc,aArgv aFlags)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
}
template <>
Maybe<UniqueFileHandle> CommandLineArg<UniqueFileHandle>::GetCommonerrno=0java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14 int&aArgc,char*, const aFlags;
#ifdefi errno=java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 50 template >
Maybe
*aMatch int aArgc char* , constCheckArgFlagaFlags) #inlineMaybeuint32_tCommandLineArg>:(
/// Put()
templatereturn ommandLineArg<>:GetCommonaMatch,aArgc ,aFlags;
> constchar* aValue,
)
Maybe<UniqueMachSendRight CommandLineArgUniqueMachSendRight>:GetCommon
aArgsmArgspush_backaValue)java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
}
template <> inlinevoid CommandLineArgconstchar* aValue
ChildProcessArgs& aArgs)ChildProcessArgs& aArgs){
(aValue
aArgsjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
template> inlinevoid CommandLineArg<uint64_t>::PutCommon(.Argspush_backaName)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
aValue,
& )
aArgs.mArgsChildProcessArgs& aArgs)
aArgs.mArgs.push_back(std::to_string(aValueaArgs.mArgs.()
}
template <> inlinevoid java.lang.StringIndexOutOfBoundsException: Range [1, 26) out of bounds for length 1
uint32_t ,
aArgs) {
CommandLineArg< <:(,,)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
templateaValue void CommandLineArg<ChildProcessArgsaArgsjava.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
static <constchar* sAppDir"appDir","appdir}java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64 static CommandLineArg <>sJsInitLen{-" jsinitlen"}; staticCommandLineArgconstchar* sAppOmni"-,"";
java.lang.StringIndexOutOfBoundsException: Range [17, 6) out of bounds for length 67
staticCommandLineArgmozilla:SharedMemoryHandle>sJsInitHandle
-,"}java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 static CommandLineArg< staticCommandLineArgmozillaipcSharedMemoryHandle { "-prefsHandle", "prefshandle"}; static <bool sIsForBrowser"isForBrowser,""}java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75 static CommandLineArg<mozilla "-prefMapHandle", "prefmaphandle"}; staticCommandLineArguint64_t> sPrefMapSize"prefMapSize" prefmapsize}
#ifdefined(XP_WIN) |java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6 static CommandLineArg<constchar*> sCrashReporter{"-crashReporter", "crashreporter"}java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67 #elifdefined(XP_UNIX)
andle>sCrashReporter-"
>sDisableDynamicDllBlocklist #if()&MOZ_SANDBOX
#ifCommandLineArg<UniqueFileHandle {-,
java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 # endif // defined(MOZ_SANDBOX) static CommandLineArg<bool> sDisableDynamicDllBlocklist{ "-disableDynamicBlocklist", "disabledynamicblocklist"}; #endif// defined(XP_WIN)
#ifdefined(__GNUC__) # pragma GCC diagnostic pop #endif
} // namespace geckoargs
} // namespace mozilla
#endif// mozilla_GeckoArgs_h
Messung V0.5
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.6Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.