<trclass="memdesc:namespacecrashpad_1_1internal"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The internal namespace, not for public use. <br/></td></tr>
<trclass="memdesc:namespacecrashpad_1_1test"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The testing namespace, for use in test code only. <br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A <aclass="el"href="classcrashpad_1_1PruneCondition.html"title="An abstract base class for evaluating crash reports for deletion. ">PruneCondition</a> that deletes reports older than the specified number days. <ahref="classcrashpad_1_1AgePruneCondition.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A standard allocator that aligns its allocations as requested, suitable for use as an allocator in standard containers. <ahref="structcrashpad_1_1AlignedAllocator.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A <aclass="el"href="classcrashpad_1_1PruneCondition.html"title="An abstract base class for evaluating crash reports for deletion. ">PruneCondition</a> that conjoins two other PruneConditions. <ahref="classcrashpad_1_1BinaryPruneCondition.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Ensures that a range, composed of a base and size, does not overflow its data type. <ahref="classcrashpad_1_1CheckedRange.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Implements a handshake protocol that allows processes to exchange port rights. <ahref="classcrashpad_1_1ChildPortHandshake.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A server interface for the <code>child_port</code> Mach subsystem. <ahref="classcrashpad_1_1ChildPortServer.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The message passed from client to server by <aclass="el"href="namespacecrashpad.html#a638d7916642f81df8063d300f08ff2ca"title="Connect over the given pipe_name, passing message to the server, storing the server's reply into resp...">SendToCrashHandlerServer()</a>. <ahref="structcrashpad_1_1ClientToServerMessage.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A CodeView record linking to a <code>.pdb</code> 2.0 file. <ahref="structcrashpad_1_1CodeViewRecordPDB20.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A CodeView record linking to a <code>.pdb</code> 7.0 file. <ahref="structcrashpad_1_1CodeViewRecordPDB70.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An implementation of <aclass="el"href="classcrashpad_1_1HTTPBodyStream.html"title="An interface to a stream that can be used for an HTTP request body. ">HTTPBodyStream</a> that combines an array of several other <aclass="el"href="classcrashpad_1_1HTTPBodyStream.html"title="An interface to a stream that can be used for an HTTP request body. ">HTTPBodyStream</a> objects into a single, unified stream. <ahref="classcrashpad_1_1CompositeHTTPBodyStream.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adapts multiple <aclass="el"href="classcrashpad_1_1MachMessageServer_1_1Interface.html"title="A Mach RPC callback interface, called by Run(). ">MachMessageServer::Interface</a> implementations for simultaneous use in a single <aclass="el"href="classcrashpad_1_1MachMessageServer.html#ace981f2e495984f119aa074f7d33bff6"title="Runs a Mach message server to handle a Mach RPC request for MIG servers. ">MachMessageServer::Run()</a> call. <ahref="classcrashpad_1_1CompositeMachMessageServer.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A context structure capable of carrying the context of any supported CPU architecture. <ahref="structcrashpad_1_1CPUContext.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A context structure carrying 32-bit x86 CPU state. <ahref="structcrashpad_1_1CPUContextX86.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The primary interface for an application to have Crashpad monitor it for crashes. <ahref="classcrashpad_1_1CrashpadClient.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A structure that can be used by a Crashpad-enabled program to provide information to the Crashpad crash handler. <ahref="structcrashpad_1_1CrashpadInfo.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Options represented in a client’s <aclass="el"href="structcrashpad_1_1CrashpadInfo.html"title="A structure that can be used by a Crashpad-enabled program to provide information to the Crashpad cra...">CrashpadInfo</a> structure. <ahref="structcrashpad_1_1CrashpadInfoClientOptions.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An interface for managing a collection of crash report files and metadata associated with the crash reports. <ahref="classcrashpad_1_1CrashReportDatabase.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An exception handler that writes crash reports for exception messages to a <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html"title="An interface for managing a collection of crash report files and metadata associated with the crash r...">CrashReportDatabase</a>. <ahref="classcrashpad_1_1CrashReportExceptionHandler.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A thread that processes pending crash reports in a <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html"title="An interface for managing a collection of crash report files and metadata associated with the crash r...">CrashReportDatabase</a> by uploading them or marking them as completed without upload, as desired. <ahref="classcrashpad_1_1CrashReportUploadThread.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A <aclass="el"href="classcrashpad_1_1PruneCondition.html"title="An abstract base class for evaluating crash reports for deletion. ">PruneCondition</a> that deletes older reports to keep the total Crashpad database size under the specified limit. <ahref="classcrashpad_1_1DatabaseSizePruneCondition.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Runs the main exception-handling server in Crashpad’s handler process. <ahref="classcrashpad_1_1ExceptionHandlerServer.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Structure read out of the client process by the crash handler when an exception occurs. <ahref="structcrashpad_1_1ExceptionInformation.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A better interface to <code>*_get_exception_ports()</code> and <code>*_set_exception_ports()</code>. <ahref="classcrashpad_1_1ExceptionPorts.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An abstract interface to a snapshot representing an exception that a snapshot process sustained and triggered the snapshot being taken. <ahref="classcrashpad_1_1ExceptionSnapshot.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An implementation of <aclass="el"href="classcrashpad_1_1HTTPBodyStream.html"title="An interface to a stream that can be used for an HTTP request body. ">HTTPBodyStream</a> that reads from the specified file and provides its contents for an HTTP body. <ahref="classcrashpad_1_1FileHTTPBodyStream.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A file reader implementation that wraps traditional system file operations on files accessed through the filesystem. <ahref="classcrashpad_1_1FileReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An interface to read to files and other file-like objects with semantics matching the underlying platform (POSIX or Windows). <ahref="classcrashpad_1_1FileReaderInterface.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An interface to seek in files and other file-like objects with semantics matching the underlying platform (POSIX or Windows). <ahref="classcrashpad_1_1FileSeekerInterface.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A file writer implementation that wraps traditional system file operations on files accessed through the filesystem. <ahref="classcrashpad_1_1FileWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An interface to write to files and other file-like objects with semantics matching the underlying platform (POSIX or Windows). <ahref="classcrashpad_1_1FileWriterInterface.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An implementation of <aclass="el"href="classcrashpad_1_1HTTPBodyStream.html"title="An interface to a stream that can be used for an HTTP request body. ">HTTPBodyStream</a> that <code>gzip</code>-compresses another <aclass="el"href="classcrashpad_1_1HTTPBodyStream.html"title="An interface to a stream that can be used for an HTTP request body. ">HTTPBodyStream</a>. <ahref="classcrashpad_1_1GzipHTTPBodyStream.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An interface to a stream that can be used for an HTTP request body. <ahref="classcrashpad_1_1HTTPBodyStream.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This class is used to build a MIME multipart message, conforming to RFC 2046, for use as a HTTP request body. <ahref="classcrashpad_1_1HTTPMultipartBuilder.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight"><aclass="el"href="classcrashpad_1_1HTTPTransport.html"title="HTTPTransport executes a HTTP request using the specified URL, HTTP method, headers, and body. This class can only issue a synchronous HTTP request. ">HTTPTransport</a> executes a HTTP request using the specified URL, HTTP method, headers, and body. This class can only issue a synchronous HTTP request. <ahref="classcrashpad_1_1HTTPTransport.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A container for the data associated with the <code>--initial-client-data</code> method for initializing the handler process on Windows. <ahref="classcrashpad_1_1InitialClientData.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Tracks whether data are initialized. <ahref="classcrashpad_1_1InitializationState.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Tracks whether data are initialized, triggering a DCHECK assertion on an invalid data access. <ahref="classcrashpad_1_1InitializationStateDcheck.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Runs a Mach message server to handle a Mach RPC request for MIG servers. <ahref="classcrashpad_1_1MachMessageServer.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A reader for annotations stored in a Mach-O image mapped into another process. <ahref="classcrashpad_1_1MachOImageAnnotationsReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A reader for Mach-O images mapped into another process. <ahref="classcrashpad_1_1MachOImageReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A reader for <code>LC_SEGMENT</code> or <code>LC_SEGMENT_64</code> load commands in Mach-O images mapped into another process. <ahref="classcrashpad_1_1MachOImageSegmentReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A reader for symbol tables in Mach-O images mapped into another process. <ahref="classcrashpad_1_1MachOImageSymbolTableReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An abstract interface to a snapshot representing a region of the memory map present in the snapshot process. <ahref="classcrashpad_1_1MemoryMapRegionSnapshot.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An abstract interface to a snapshot representing a region of memory present in a snapshot process. <ahref="classcrashpad_1_1MemorySnapshot.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Container class to hold shared UMA metrics integration points. <ahref="classcrashpad_1_1Metrics.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An x86_64 (AMD64) CPU context (register state) carried in a minidump file. <ahref="structcrashpad_1_1MinidumpContextAMD64.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structcrashpad_1_1MinidumpContextAMD64.html"title="An x86_64 (AMD64) CPU context (register state) carried in a minidump file. ">MinidumpContextAMD64</a> structure in a minidump file. <ahref="classcrashpad_1_1MinidumpContextAMD64Writer.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The base class for writers of CPU context structures in minidump files. <ahref="classcrashpad_1_1MinidumpContextWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A 32-bit x86 CPU context (register state) carried in a minidump file. <ahref="structcrashpad_1_1MinidumpContextX86.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structcrashpad_1_1MinidumpContextX86.html"title="A 32-bit x86 CPU context (register state) carried in a minidump file. ">MinidumpContextX86</a> structure in a minidump file. <ahref="classcrashpad_1_1MinidumpContextX86Writer.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Additional Crashpad-specific information carried within a minidump file. <ahref="structcrashpad_1_1MinidumpCrashpadInfo.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structcrashpad_1_1MinidumpCrashpadInfo.html"title="Additional Crashpad-specific information carried within a minidump file. ">MinidumpCrashpadInfo</a> stream in a minidump file. <ahref="classcrashpad_1_1MinidumpCrashpadInfoWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structMINIDUMP__EXCEPTION__STREAM.html"title="Information about the exception that triggered a minidump file’s generation. ">MINIDUMP_EXCEPTION_STREAM</a> stream in a minidump file. <ahref="classcrashpad_1_1MinidumpExceptionWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The root-level object in a minidump file. <ahref="classcrashpad_1_1MinidumpFileWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a MINIDUMP_HANDLE_DATA_STREAM stream in a minidump and its contained <aclass="el"href="structMINIDUMP__HANDLE__DESCRIPTOR.html"title="Contains the state of an individual system handle at the time the snapshot was taken. This structure is Windows-specific. ">MINIDUMP_HANDLE_DESCRIPTOR</a> s. <ahref="classcrashpad_1_1MinidumpHandleDataWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structMINIDUMP__MEMORY__INFO__LIST.html"title="Contains a list of memory regions. ">MINIDUMP_MEMORY_INFO_LIST</a> stream in a minidump file, containing a list of <aclass="el"href="structMINIDUMP__MEMORY__INFO.html"title="Describes a region of memory. ">MINIDUMP_MEMORY_INFO</a> objects. <ahref="classcrashpad_1_1MinidumpMemoryInfoListWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structMINIDUMP__MEMORY__LIST.html"title="Information about memory regions within the process. ">MINIDUMP_MEMORY_LIST</a> stream in a minidump file, containing a list of <aclass="el"href="structMINIDUMP__MEMORY__DESCRIPTOR.html"title="A pointer to a snapshot of a region of memory contained within a minidump file. ">MINIDUMP_MEMORY_DESCRIPTOR</a> objects. <ahref="classcrashpad_1_1MinidumpMemoryListWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a stream in the <aclass="el"href="structMINIDUMP__MISC__INFO.html"title="Information about the process that the minidump file contains a snapshot of, as well as the system th...">MINIDUMP_MISC_INFO</a> family in a minidump file. <ahref="classcrashpad_1_1MinidumpMiscInfoWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structcrashpad_1_1CodeViewRecordPDB20.html"title="A CodeView record linking to a .pdb 2.0 file. ">CodeViewRecordPDB20</a> object in a minidump file. <ahref="classcrashpad_1_1MinidumpModuleCodeViewRecordPDB20Writer.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structcrashpad_1_1CodeViewRecordPDB70.html"title="A CodeView record linking to a .pdb 7.0 file. ">CodeViewRecordPDB70</a> object in a minidump file. <ahref="classcrashpad_1_1MinidumpModuleCodeViewRecordPDB70Writer.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The base class for writers of CodeView records referenced by <aclass="el"href="structMINIDUMP__MODULE.html#acd07e35faf066880eeabea8a91aa887a"title="A pointer to the module’s CodeView record, typically a link to its debugging information in crashpad...">MINIDUMP_MODULE::CvRecord</a> in minidump files. <ahref="classcrashpad_1_1MinidumpModuleCodeViewRecordWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Additional Crashpad-specific information about a module carried within a minidump file. <ahref="structcrashpad_1_1MinidumpModuleCrashpadInfo.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A link between a <aclass="el"href="structMINIDUMP__MODULE.html"title="Information about a specific module loaded within the process at the time the snapshot was taken...">MINIDUMP_MODULE</a> structure and additional Crashpad-specific information about a module carried within a minidump file. <ahref="structcrashpad_1_1MinidumpModuleCrashpadInfoLink.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Additional Crashpad-specific information about modules carried within a minidump file. <ahref="structcrashpad_1_1MinidumpModuleCrashpadInfoList.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structcrashpad_1_1MinidumpModuleCrashpadInfoList.html"title="Additional Crashpad-specific information about modules carried within a minidump file. ">MinidumpModuleCrashpadInfoList</a> object in a minidump file, containing a list of <aclass="el"href="structcrashpad_1_1MinidumpModuleCrashpadInfo.html"title="Additional Crashpad-specific information about a module carried within a minidump file...">MinidumpModuleCrashpadInfo</a> objects. <ahref="classcrashpad_1_1MinidumpModuleCrashpadInfoListWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structcrashpad_1_1MinidumpModuleCrashpadInfo.html"title="Additional Crashpad-specific information about a module carried within a minidump file...">MinidumpModuleCrashpadInfo</a> object in a minidump file. <ahref="classcrashpad_1_1MinidumpModuleCrashpadInfoWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structMINIDUMP__MODULE__LIST.html"title="Information about all modules loaded within the process at the time the snapshot was taken...">MINIDUMP_MODULE_LIST</a> stream in a minidump file, containing a list of <aclass="el"href="structMINIDUMP__MODULE.html"title="Information about a specific module loaded within the process at the time the snapshot was taken...">MINIDUMP_MODULE</a> objects. <ahref="classcrashpad_1_1MinidumpModuleListWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for an <aclass="el"href="structIMAGE__DEBUG__MISC.html"title="Miscellaneous debugging record. ">IMAGE_DEBUG_MISC</a> object in a minidump file. <ahref="classcrashpad_1_1MinidumpModuleMiscDebugRecordWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structMINIDUMP__MODULE.html"title="Information about a specific module loaded within the process at the time the snapshot was taken...">MINIDUMP_MODULE</a> object in a minidump file. <ahref="classcrashpad_1_1MinidumpModuleWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A list of <aclass="el"href="dbghelp_8h.html#acf465a1a77ecf067a9d946583bc6a3f8"title="An offset within a minidump file, relative to the start of its MINIDUMP_HEADER. ">RVA</a> pointers. <ahref="structcrashpad_1_1MinidumpRVAList.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A list of key-value pairs. <ahref="structcrashpad_1_1MinidumpSimpleStringDictionary.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structcrashpad_1_1MinidumpSimpleStringDictionaryEntry.html"title="A key-value pair. ">MinidumpSimpleStringDictionaryEntry</a> object in a minidump file. <ahref="classcrashpad_1_1MinidumpSimpleStringDictionaryEntryWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structcrashpad_1_1MinidumpSimpleStringDictionary.html"title="A list of key-value pairs. ">MinidumpSimpleStringDictionary</a> object in a minidump file, containing a list of <aclass="el"href="structcrashpad_1_1MinidumpSimpleStringDictionaryEntry.html"title="A key-value pair. ">MinidumpSimpleStringDictionaryEntry</a> objects. <ahref="classcrashpad_1_1MinidumpSimpleStringDictionaryWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html"title="Information about the system that hosted the process that the minidump file contains a snapshot of...">MINIDUMP_SYSTEM_INFO</a> stream in a minidump file. <ahref="classcrashpad_1_1MinidumpSystemInfoWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structMINIDUMP__THREAD__LIST.html"title="Information about all threads within the process. ">MINIDUMP_THREAD_LIST</a> stream in a minidump file, containing a list of <aclass="el"href="structMINIDUMP__THREAD.html"title="Information about a specific thread within the process. ">MINIDUMP_THREAD</a> objects. <ahref="classcrashpad_1_1MinidumpThreadListWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structMINIDUMP__THREAD.html"title="Information about a specific thread within the process. ">MINIDUMP_THREAD</a> object in a minidump file. <ahref="classcrashpad_1_1MinidumpThreadWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structMINIDUMP__UNLOADED__MODULE__LIST.html"title="Information about all modules recorded as unloaded when the snapshot was taken. ">MINIDUMP_UNLOADED_MODULE_LIST</a> stream in a minidump file, containing a list of <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html"title="Information about a specific module that was recorded as being unloaded at the time the snapshot was ...">MINIDUMP_UNLOADED_MODULE</a> objects. <ahref="classcrashpad_1_1MinidumpUnloadedModuleListWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a <aclass="el"href="structMINIDUMP__UNLOADED__MODULE.html"title="Information about a specific module that was recorded as being unloaded at the time the snapshot was ...">MINIDUMP_UNLOADED_MODULE</a> object in a minidump file. <ahref="classcrashpad_1_1MinidumpUnloadedModuleWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The writer for a MINIDUMP_USER_STREAM in a minidump file. <ahref="classcrashpad_1_1MinidumpUserStreamWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A variable-length UTF-8-encoded string carried within a minidump file. <ahref="structcrashpad_1_1MinidumpUTF8String.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An abstract interface to a snapshot representing a code module (binary image) loaded into a snapshot process. <ahref="classcrashpad_1_1ModuleSnapshot.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A server interface for the <code>notify</code> Mach subsystem. <ahref="classcrashpad_1_1NotifyServer.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A reader of annotations stored in a PE image mapped into another process. <ahref="classcrashpad_1_1PEImageAnnotationsReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A reader for PE images mapped into another process. <ahref="classcrashpad_1_1PEImageReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A reader for resources stored in PE images mapped into another process. <ahref="classcrashpad_1_1PEImageResourceReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Allows a <code>std::vector</code> to “own”pointer elements stored in it. <ahref="classcrashpad_1_1PointerVector.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Gathers information about a process given its <code>HANDLE</code>. This consists primarily of information stored in the Process Environment Block. <ahref="classcrashpad_1_1ProcessInfo.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Accesses information about another process, identified by a Mach task. <ahref="classcrashpad_1_1ProcessReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Accesses information about another process, identified by a <code>HANDLE</code>. <ahref="classcrashpad_1_1ProcessReaderWin.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An abstract interface to a snapshot representing the state of a process. <ahref="classcrashpad_1_1ProcessSnapshot.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> of a running (or crashed) process running on a macOS system. <ahref="classcrashpad_1_1ProcessSnapshotMac.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> based on a minidump file. <ahref="classcrashpad_1_1ProcessSnapshotMinidump.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A <aclass="el"href="classcrashpad_1_1ProcessSnapshot.html"title="An abstract interface to a snapshot representing the state of a process. ">ProcessSnapshot</a> of a running (or crashed) process running on a Windows system. <ahref="classcrashpad_1_1ProcessSnapshotWin.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A wrapper for <aclass="el"href="classcrashpad_1_1ProcessReaderWin.html"title="Accesses information about another process, identified by a HANDLE. ">ProcessReaderWin</a> that only allows a specific subrange to be read from. <ahref="classcrashpad_1_1ProcessSubrangeReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An abstract base class for evaluating crash reports for deletion. <ahref="classcrashpad_1_1PruneCondition.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A thread that periodically prunes crash reports from the database using the specified condition. <ahref="classcrashpad_1_1PruneCrashReportThread.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Asserts that a scope must not be exited while unsafe. <ahref="classcrashpad_1_1ScopedForbidReturn.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Manages the suspension of another process. <ahref="classcrashpad_1_1ScopedProcessSuspend.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Manages the suspension of another task. <ahref="classcrashpad_1_1ScopedTaskSuspend.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The response sent back to the client via <aclass="el"href="namespacecrashpad.html#a638d7916642f81df8063d300f08ff2ca"title="Connect over the given pipe_name, passing message to the server, storing the server's reply into resp...">SendToCrashHandlerServer()</a>. <ahref="unioncrashpad_1_1ServerToClientMessage.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a hidden window and waits for a <code>WM_ENDSESSION</code> message, indicating that the session is ending and the application should terminate. <ahref="classcrashpad_1_1SessionEndWatcher.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An interface for accessing and modifying the settings of a <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html"title="An interface for managing a collection of crash report files and metadata associated with the crash r...">CrashReportDatabase</a>. <ahref="classcrashpad_1_1Settings.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A message only sent to the server by itself to trigger shutdown. <ahref="structcrashpad_1_1ShutdownRequest.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The base class for writers of memory ranges pointed to by <aclass="el"href="structMINIDUMP__MEMORY__DESCRIPTOR.html"title="A pointer to a snapshot of a region of memory contained within a minidump file. ">MINIDUMP_MEMORY_DESCRIPTOR</a> objects in a minidump file. <ahref="classcrashpad_1_1SnapshotMinidumpMemoryWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A file reader and writer backed by a virtual file, as opposed to a file on disk or other operating system file descriptor-based file. <ahref="classcrashpad_1_1StringFile.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An implementation of <aclass="el"href="classcrashpad_1_1HTTPBodyStream.html"title="An interface to a stream that can be used for an HTTP request body. ">HTTPBodyStream</a> that turns a fixed string into a stream. <ahref="classcrashpad_1_1StringHTTPBodyStream.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An abstract interface to a snapshot representing the state of a system, comprising an operating system, CPU architecture, and various other characteristics. <ahref="classcrashpad_1_1SystemSnapshot.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Accesses the memory of another Mach task. <ahref="classcrashpad_1_1TaskMemory.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Basic thread abstraction. Users should derive from this class and implement ThreadMain(). <ahref="classcrashpad_1_1Thread.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Captures log messages produced on the current thread during an object’s lifetime. <ahref="classcrashpad_1_1ThreadLogMessages.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot process. <ahref="classcrashpad_1_1ThreadSnapshot.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Common functions used by command line tools. <ahref="classcrashpad_1_1ToolSupport.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A bag implementation using a fixed amount of storage, so that it does not perform any dynamic allocations for its operations. <ahref="classcrashpad_1_1TSimpleAddressRangeBag.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A map/dictionary collection implementation using a fixed amount of storage, so that it does not perform any dynamic allocations for its operations. <ahref="classcrashpad_1_1TSimpleStringDictionary.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Stores a 128-bit quantity. <ahref="structcrashpad_1_1uint128__struct.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A server interface for the <code>exc</code> and <code>mach_exc</code> Mach subsystems, unified to handle exceptions delivered to either subsystem, and simplified to have only a single interface method needing implementation. <ahref="classcrashpad_1_1UniversalMachExcServer.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Information about an unloaded module that was previously loaded into a snapshot process. <ahref="classcrashpad_1_1UnloadedModuleSnapshot.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Information describing a custom user data stream in a minidump. <ahref="classcrashpad_1_1UserMinidumpStream.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A file reader backed by a FileHandle. <ahref="classcrashpad_1_1WeakFileHandleFileReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A file writer backed by a FileHandle. <ahref="classcrashpad_1_1WeakFileHandleFileWriter.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A file reader backed by a standard input/output <code>FILE*</code>. <ahref="classcrashpad_1_1WeakStdioFileReader.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A <aclass="el"href="classcrashpad_1_1WorkerThread.html"title="A WorkerThread executes its Delegate's DoWork method repeatedly on a dedicated thread at a set time i...">WorkerThread</a> executes its <aclass="el"href="classcrashpad_1_1WorkerThread_1_1Delegate.html"title="An interface for doing work on a WorkerThread. ">Delegate</a>'s DoWork method repeatedly on a dedicated thread at a set time interval. <ahref="classcrashpad_1_1WorkerThread.html#details">More...</a><br/></td></tr>
<trclass="memdesc:"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A version of <code>iovec</code> with a <code>const</code><aclass="el"href="structcrashpad_1_1WritableIoVec.html#abcf5d801519cf50aa286c3baa8f55d05"title="The base address of a memory region for output. ">iov_base</a> field. <ahref="structcrashpad_1_1WritableIoVec.html#details">More...</a><br/></td></tr>
<trclass="memdesc:a3843475bf1f7956af4153e33bd1bd298"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A <aclass="el"href="classcrashpad_1_1TSimpleAddressRangeBag.html"title="A bag implementation using a fixed amount of storage, so that it does not perform any dynamic allocat...">TSimpleAddressRangeBag</a> with default template parameters. <br/></td></tr>
<trclass="memdesc:ac21afdb4f6e3c57ccf3bd34ea8410978"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A <aclass="el"href="classcrashpad_1_1TSimpleStringDictionary.html"title="A map/dictionary collection implementation using a fixed amount of storage, so that it does not perfo...">TSimpleStringDictionary</a> with default template parameters. <ahref="#ac21afdb4f6e3c57ccf3bd34ea8410978">More...</a><br/></td></tr>
<trclass="memdesc:a07f8e33c4fdeba3783277f9f2563e48a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Platform-specific alias for a low-level file handle. <br/></td></tr>
<trclass="memdesc:a1e53a1957d9edcba8b406ea632b6daf2"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Platform-specific alias for a position in an open file. <br/></td></tr>
<trclass="memdesc:a9daa1b956487883acd9f43d13cc77339"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Scoped wrapper of a FileHandle. <br/></td></tr>
<trclass="memdesc:a8d7f0170c573e59ca6b02e29735f4fad"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Ensures that a range, composed of a base and a size, does not overflow the pointer type of the process it describes a range in. <ahref="#a8d7f0170c573e59ca6b02e29735f4fad">More...</a><br/></td></tr>
<trclass="memdesc:a72fa9ea632f7f1ec93ec3c1b1d300db6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A const version of <code>thread_state_t</code>. <ahref="#a72fa9ea632f7f1ec93ec3c1b1d300db6">More...</a><br/></td></tr>
<trclass="memdesc:a34f36473e385b19eb229798ab2f7210c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The time before which a <aclass="el"href="namespacecrashpad.html#a35293418a0b7637a00631807ac4b431e"title="Runs mach_msg() with a deadline, as opposed to a timeout. ">MachMessageWithDeadline()</a> call should complete. <ahref="#a34f36473e385b19eb229798ab2f7210c">More...</a><br/></td></tr>
<trclass="memdesc:a0f13feba965ef7750b3d49064936e5ee"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A bitfield containing values of <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105ed"title="Options for various *ToString functions in symbolic_constants_* files. ">SymbolicConstantToStringOptionBits</a>. <br/></td></tr>
<trclass="memdesc:a14f1de509869f929122998a2f88f08a6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A bitfield containing values of <aclass="el"href="namespacecrashpad.html#a8387ad067a7e6a1735ab97a1af450d2b"title="Options for various StringTo* functions in symbolic_constants_* files. ">StringToSymbolicConstantOptionBits</a>. <br/></td></tr>
<trclass="memdesc:af6ffe10a8131fab8d1f8de60d9a812f9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A map of HTTP header fields to their values. <br/></td></tr>
<trclass="memdesc:a0103ebbd1b4f59431dd7292bd544de39"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A <code>std::vector</code> using <aclass="el"href="structcrashpad_1_1AlignedAllocator.html"title="A standard allocator that aligns its allocations as requested, suitable for use as an allocator in st...">AlignedAllocator</a>. <ahref="#a0103ebbd1b4f59431dd7292bd544de39">More...</a><br/></td></tr>
<trclass="memdesc:a368af6d88f68998b5c5eb80b8f6ebb76"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Type used to represent an address in a process, potentially across bitness. <br/></td></tr>
<trclass="memdesc:a1bac9f2a189b24737e743d6690362239"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Type used to represent the size of a memory range (with a WinVMAddress), potentially across bitness. <br/></td></tr>
<trclass="memdesc:ad171ce8db60c84b2d875f7acd3b90f1e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Ensures that a range, composed of a base and a size, does not overflow the pointer type of the process it describes a range in. <ahref="#ad171ce8db60c84b2d875f7acd3b90f1e">More...</a><br/></td></tr>
<trclass="memitem:a88363a45a4af1a16f542a8c1ff522ab9"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a88363a45a4af1a16f542a8c1ff522ab9">MinidumpStreamType</a> : uint32_t <trclass="memdesc:a88363a45a4af1a16f542a8c1ff522ab9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Minidump stream type values for <aclass="el"href="structMINIDUMP__DIRECTORY.html#a425b8b68da6810a126c759c5f5a94f7d"title="The type of stream referenced, a value of MINIDUMP_STREAM_TYPE. ">MINIDUMP_DIRECTORY::StreamType</a>. Each stream structure has a corresponding stream type value to identify it. <ahref="namespacecrashpad.html#a88363a45a4af1a16f542a8c1ff522ab9">More...</a><br/></td></tr>
<trclass="memitem:a98e532bb06fc5ffdd93e0ceb6d789eb1"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1">MinidumpCPUArchitecture</a> : uint16_t <trclass="memdesc:a98e532bb06fc5ffdd93e0ceb6d789eb1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">CPU type values for <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#adc85b29d7df8943baf1a96af23051ca8"title="The system’s CPU architecture. This may be a PROCESSOR_ARCHITECTURE_* value, or a member of crashpad...">MINIDUMP_SYSTEM_INFO::ProcessorArchitecture</a>. <ahref="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1">More...</a><br/></td></tr>
<trclass="memitem:a3bf5a6562c9ccee9b4ef3ae4d9ac0be7"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a3bf5a6562c9ccee9b4ef3ae4d9ac0be7">MinidumpOSType</a> : uint8_t <trclass="memdesc:a3bf5a6562c9ccee9b4ef3ae4d9ac0be7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Operating system type values for <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#a9aac8ed4707ea43563fed1776454bad5"title="The system’s operating system type, which distinguishes between “desktop” or “workstation” syste...">MINIDUMP_SYSTEM_INFO::ProductType</a>. <ahref="namespacecrashpad.html#a3bf5a6562c9ccee9b4ef3ae4d9ac0be7">More...</a><br/></td></tr>
<trclass="memitem:a9be77c6f7868f00c2f279006a1abe26a"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a9be77c6f7868f00c2f279006a1abe26a">MinidumpOS</a> : uint32_t <trclass="memdesc:a9be77c6f7868f00c2f279006a1abe26a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Operating system family values for <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#a214e7bd61a89343a80a3c9a265fbbe96"title="The system’s operating system family. This may be a VER_PLATFORM_* value, or a member of crashpad::M...">MINIDUMP_SYSTEM_INFO::PlatformId</a>. <ahref="namespacecrashpad.html#a9be77c6f7868f00c2f279006a1abe26a">More...</a><br/></td></tr>
<trclass="memitem:ab96bb7edb42a2e1ce28eda205a18a17a"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#ab96bb7edb42a2e1ce28eda205a18a17a">ProcessSuspensionState</a> : bool <trclass="memdesc:ab96bb7edb42a2e1ce28eda205a18a17a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">State of process being read by ProcessReaderWin. <ahref="namespacecrashpad.html#ab96bb7edb42a2e1ce28eda205a18a17a">More...</a><br/></td></tr>
<trclass="memitem:afa69b0967d9a6df659ff5d2a02ff3e51"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#afa69b0967d9a6df659ff5d2a02ff3e51">FileWriteMode</a><trclass="memdesc:afa69b0967d9a6df659ff5d2a02ff3e51"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Determines the mode that <aclass="el"href="namespacecrashpad.html#a62fc6876cc0c660f0ea8bd1dd0a07e82"title="Wraps OpenFileForWrite(), logging an error if the operation fails. ">LoggingOpenFileForWrite()</a> uses. <ahref="namespacecrashpad.html#afa69b0967d9a6df659ff5d2a02ff3e51">More...</a><br/></td></tr>
<trclass="memitem:a034ccc90eb0d1f587ee89275d822175d"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a034ccc90eb0d1f587ee89275d822175d">FilePermissions</a> : bool <trclass="memdesc:a034ccc90eb0d1f587ee89275d822175d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Determines the permissions bits for files created on POSIX systems. <ahref="namespacecrashpad.html#a034ccc90eb0d1f587ee89275d822175d">More...</a><br/></td></tr>
<trclass="memitem:a3753a95b02e5c96c6e20017e467cef07"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a3753a95b02e5c96c6e20017e467cef07">FileLocking</a> : bool <trclass="memdesc:a3753a95b02e5c96c6e20017e467cef07"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Determines the locking mode that <aclass="el"href="namespacecrashpad.html#acd02263566d8c43fc7886f88a13b364f"title="Locks the given file using flock() on POSIX or LockFileEx() on Windows. ">LoggingLockFile()</a> uses. <ahref="namespacecrashpad.html#a3753a95b02e5c96c6e20017e467cef07">More...</a><br/></td></tr>
<trclass="memitem:a589b4d9bd6f2233b67148ab6793c3c13"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a589b4d9bd6f2233b67148ab6793c3c13">XattrStatus</a><trclass="memdesc:a589b4d9bd6f2233b67148ab6793c3c13"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The result code for a ReadXattr operation. <ahref="namespacecrashpad.html#a589b4d9bd6f2233b67148ab6793c3c13">More...</a><br/></td></tr>
<trclass="memitem:a0720c6dd92c22f4946aeeb17d638f5ab"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom">: mach_msg_timeout_t <trclass="memdesc:a0720c6dd92c22f4946aeeb17d638f5ab"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Special constants used as <code>mach_msg_timeout_t</code> values. <ahref="namespacecrashpad.html#a0720c6dd92c22f4946aeeb17d638f5ab">More...</a><br/></td></tr>
<trclass="memitem:a124c0056f68c3859092b317f486fae9c"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom">: MachMessageDeadline <trclass="memdesc:a124c0056f68c3859092b317f486fae9c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Special constants used as <aclass="el"href="namespacecrashpad.html#a34f36473e385b19eb229798ab2f7210c">MachMessageDeadline</a> values. <ahref="namespacecrashpad.html#a124c0056f68c3859092b317f486fae9c">More...</a><br/></td></tr>
<trclass="memitem:a7856b82b71167792ea6103debb5105ed"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105ed">SymbolicConstantToStringOptionBits</a><trclass="memdesc:a7856b82b71167792ea6103debb5105ed"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Options for various <code>*ToString</code> functions in <code>symbolic_constants_*</code> files. <ahref="namespacecrashpad.html#a7856b82b71167792ea6103debb5105ed">More...</a><br/></td></tr>
<trclass="memitem:a8387ad067a7e6a1735ab97a1af450d2b"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a8387ad067a7e6a1735ab97a1af450d2b">StringToSymbolicConstantOptionBits</a><trclass="memdesc:a8387ad067a7e6a1735ab97a1af450d2b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Options for various <code>StringTo*</code> functions in <code>symbolic_constants_*</code> files. <ahref="namespacecrashpad.html#a8387ad067a7e6a1735ab97a1af450d2b">More...</a><br/></td></tr>
<trclass="memitem:a3b405c19a5787fabcfba96001d49f292"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a3b405c19a5787fabcfba96001d49f292">TriState</a> : uint8_t <trclass="memdesc:a3b405c19a5787fabcfba96001d49f292"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A tri-state value that can be unset, on, or off. <ahref="namespacecrashpad.html#a3b405c19a5787fabcfba96001d49f292">More...</a><br/></td></tr>
<trclass="memitem:acf909fcc58999f95ab1a2d485a3b884f"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#acf909fcc58999f95ab1a2d485a3b884f">TerminationCodes</a> : unsigned int <trclass="memdesc:acf909fcc58999f95ab1a2d485a3b884f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Crashpad-specific codes that are used as arguments to <code>TerminateProcess()</code> in unusual circumstances. <ahref="namespacecrashpad.html#acf909fcc58999f95ab1a2d485a3b884f">More...</a><br/></td></tr>
<trclass="memdesc:ac25486c6b4c38fc7c7868e978094edcf"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Saves the CPU context. <ahref="#ac25486c6b4c38fc7c7868e978094edcf">More...</a><br/></td></tr>
<trclass="memdesc:a87aa3a36a41939af1166c336db41ec11"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deletes crash reports from <em>database</em> that match <em>condition</em>. <ahref="#a87aa3a36a41939af1166c336db41ec11">More...</a><br/></td></tr>
<trclass="memdesc:a45a44a5552e00ceaf0917f94433ac104"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Simulates a exception without crashing. <ahref="#a45a44a5552e00ceaf0917f94433ac104">More...</a><br/></td></tr>
<trclass="memdesc:aaad18d253c543d4f003b5803fd295f91"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The <code>main()</code> of the <code>crashpad_handler</code> binary. <ahref="#aaad18d253c543d4f003b5803fd295f91">More...</a><br/></td></tr>
<trclass="memdesc:a58169a74e32daa2888614fcd2f2381ce"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Builds a MinidumpThreadIDMap for a group of <aclass="el"href="classcrashpad_1_1ThreadSnapshot.html"title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a> objects. <ahref="#a58169a74e32daa2888614fcd2f2381ce">More...</a><br/></td></tr>
<trclass="memdesc:aaccce94b8a0b7b0ada3391216706e599"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Reads the module annotations from another process. <ahref="#aaccce94b8a0b7b0ada3391216706e599">More...</a><br/></td></tr>
<trclass="memdesc:a5fc668a00f655e2ca484a3cd6f88e938"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Initializes a <aclass="el"href="structcrashpad_1_1CPUContextX86.html"title="A context structure carrying 32-bit x86 CPU state. ">CPUContextX86</a> structure from a native context structure on Windows. <br/></td></tr>
<trclass="memdesc:a1841e343addd4079444c944116d6df77"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Initializes a <aclass="el"href="structcrashpad_1_1CPUContextX86__64.html"title="A context structure carrying x86_64 CPU state. ">CPUContextX86_64</a> structure from a native context structure on Windows. <br/></td></tr>
<trclass="memdesc:abd2a51526c1f15e3f21a962457cbc53a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile()</a>, ensuring that exactly <em>size</em> bytes are read. <ahref="#abd2a51526c1f15e3f21a962457cbc53a">More...</a><br/></td></tr>
<trclass="memdesc:a8a91af9c690d2a280c463596bf82070b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="namespacecrashpad.html#ab9dded3137add283f6cf32facb86641a"title="Writes to a file, retrying when interrupted or following a short write on POSIX. ">WriteFile()</a>, ensuring that exactly <em>size</em> bytes are written. <ahref="#a8a91af9c690d2a280c463596bf82070b">More...</a><br/></td></tr>
<trclass="memdesc:aee611c7116746b846a3cf79e65619f4d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile()</a>, ensuring that exactly <em>size</em> bytes are read. <ahref="#aee611c7116746b846a3cf79e65619f4d">More...</a><br/></td></tr>
<trclass="memdesc:a74c74fefa3b1f5e0c1b885755c9f9cf6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="namespacecrashpad.html#ab9dded3137add283f6cf32facb86641a"title="Writes to a file, retrying when interrupted or following a short write on POSIX. ">WriteFile()</a>, ensuring that exactly <em>size</em> bytes are written. <ahref="#a74c74fefa3b1f5e0c1b885755c9f9cf6">More...</a><br/></td></tr>
<trclass="memdesc:ac8e7e1b1a4b89b489964ffee54d0d9df"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile()</a>, ensuring that it indicates end-of-file. <ahref="#ac8e7e1b1a4b89b489964ffee54d0d9df">More...</a><br/></td></tr>
<trclass="memdesc:ac7cb2e4837a6fda169cbe92d1603460f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <code>close()</code> or <code>CloseHandle()</code>, ensuring that it succeeds. <ahref="#ac7cb2e4837a6fda169cbe92d1603460f">More...</a><br/></td></tr>
<trclass="memdesc:a8599600814a17d622766decd5f122a96"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Reads from a file, retrying when interrupted on POSIX or following a short read. <ahref="#a8599600814a17d622766decd5f122a96">More...</a><br/></td></tr>
<trclass="memdesc:ab9dded3137add283f6cf32facb86641a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Writes to a file, retrying when interrupted or following a short write on POSIX. <ahref="#ab9dded3137add283f6cf32facb86641a">More...</a><br/></td></tr>
<trclass="memdesc:a7987df05e1260e6d8d93ee3a21e9b0eb"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <code>open()</code> or <code>CreateFile()</code>, opening an existing file for reading. <ahref="#a7987df05e1260e6d8d93ee3a21e9b0eb">More...</a><br/></td></tr>
<trclass="memdesc:ad8e8848af82384f7757108c8c445f18d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <code>open()</code> or <code>CreateFile()</code>, creating a file for output. <ahref="#ad8e8848af82384f7757108c8c445f18d">More...</a><br/></td></tr>
<trclass="memdesc:abe6238b18be49921772c14dd25a624de"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <code>open()</code> or <code>CreateFile()</code>, creating a file for both input and output. <ahref="#abe6238b18be49921772c14dd25a624de">More...</a><br/></td></tr>
<trclass="memdesc:ab3712d59104f641109b170c78a912b4d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="namespacecrashpad.html#a7987df05e1260e6d8d93ee3a21e9b0eb"title="Wraps open() or CreateFile(), opening an existing file for reading. ">OpenFileForRead()</a>, logging an error if the operation fails. <ahref="#ab3712d59104f641109b170c78a912b4d">More...</a><br/></td></tr>
<trclass="memdesc:a62fc6876cc0c660f0ea8bd1dd0a07e82"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="namespacecrashpad.html#ad8e8848af82384f7757108c8c445f18d"title="Wraps open() or CreateFile(), creating a file for output. ">OpenFileForWrite()</a>, logging an error if the operation fails. <ahref="#a62fc6876cc0c660f0ea8bd1dd0a07e82">More...</a><br/></td></tr>
<trclass="memdesc:aab3e964bdba04aaf74e7a27a36efe108"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="namespacecrashpad.html#abe6238b18be49921772c14dd25a624de"title="Wraps open() or CreateFile(), creating a file for both input and output. ">OpenFileForReadAndWrite()</a>, logging an error if the operation fails. <ahref="#aab3e964bdba04aaf74e7a27a36efe108">More...</a><br/></td></tr>
<trclass="memdesc:acd02263566d8c43fc7886f88a13b364f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Locks the given <em>file</em> using <code>flock()</code> on POSIX or <code>LockFileEx()</code> on Windows. <ahref="#acd02263566d8c43fc7886f88a13b364f">More...</a><br/></td></tr>
<trclass="memdesc:a15c1f3a2c6f04e944fdca12e22b0cb6e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Unlocks a file previously locked with <aclass="el"href="namespacecrashpad.html#acd02263566d8c43fc7886f88a13b364f"title="Locks the given file using flock() on POSIX or LockFileEx() on Windows. ">LoggingLockFile()</a>. <ahref="#a15c1f3a2c6f04e944fdca12e22b0cb6e">More...</a><br/></td></tr>
<trclass="memitem:a3d6cedc10e24145d4a0c1000c33f8a10"><tdclass="memItemLeft"align="right"valign="top"><aclass="el"href="namespacecrashpad.html#a1e53a1957d9edcba8b406ea632b6daf2">FileOffset</a> </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a3d6cedc10e24145d4a0c1000c33f8a10">LoggingSeekFile</a> (<aclass="el"href="namespacecrashpad.html#a07f8e33c4fdeba3783277f9f2563e48a">FileHandle</a> file, <aclass="el"href="namespacecrashpad.html#a1e53a1957d9edcba8b406ea632b6daf2">FileOffset</a> offset, int whence)</td></tr>
<trclass="memdesc:a3d6cedc10e24145d4a0c1000c33f8a10"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <code>lseek()</code> or <code>SetFilePointerEx()</code>. Logs an error if the operation fails. <ahref="#a3d6cedc10e24145d4a0c1000c33f8a10">More...</a><br/></td></tr>
<trclass="memdesc:a06ba30c1a4b2974f1d4ea842db55b068"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Truncates the given <em>file</em> to zero bytes in length. <ahref="#a06ba30c1a4b2974f1d4ea842db55b068">More...</a><br/></td></tr>
<trclass="memdesc:ab9db00544fd57cfde0bb03d32b989221"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <code>close()</code> or <code>CloseHandle()</code>, logging an error if the operation fails. <ahref="#ab9db00544fd57cfde0bb03d32b989221">More...</a><br/></td></tr>
<trclass="memdesc:a0224d5a689cdb8c2315c255fd6ea6b5c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Determines the size of a file. <ahref="#a0224d5a689cdb8c2315c255fd6ea6b5c">More...</a><br/></td></tr>
<trclass="memdesc:a616ed0784021ecbd2f0f14b7e75c068c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a Core Foundation-type property list to a launchd-type <code>launch_data_t</code>. <ahref="#a616ed0784021ecbd2f0f14b7e75c068c">More...</a><br/></td></tr>
<trclass="memdesc:ab05052e02f3c3605fd7bae0f006d2cba"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the version of the running operating system. <ahref="#ab05052e02f3c3605fd7bae0f006d2cba">More...</a><br/></td></tr>
<trclass="memitem:a99a833f0c39ce203b49862367494a923"><tdclass="memItemLeft"align="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a99a833f0c39ce203b49862367494a923">MacOSXVersion</a> (int *major, int *minor, int *bugfix, std::string *build, bool *server, std::string *version_string)</td></tr>
<trclass="memdesc:a99a833f0c39ce203b49862367494a923"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the version of the running operating system. <ahref="#a99a833f0c39ce203b49862367494a923">More...</a><br/></td></tr>
<trclass="memdesc:a71c79500b827d06b190e30b7cc016c35"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the model name and board ID of the running system. <ahref="#a71c79500b827d06b190e30b7cc016c35">More...</a><br/></td></tr>
<trclass="memdesc:a97ebbbac4c7f27e2e3ba2b9c080ed0f3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Submits a job to the user launchd domain as in <code>SMJobSubmit()</code>. <ahref="#a97ebbbac4c7f27e2e3ba2b9c080ed0f3">More...</a><br/></td></tr>
<trclass="memdesc:a8cc130fecf996b7d7c76a56200afccb1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Removes a job from the user launchd domain as in <code>SMJobRemove()</code>. <ahref="#a8cc130fecf996b7d7c76a56200afccb1">More...</a><br/></td></tr>
<trclass="memdesc:aead5f04bd94549956a7f2826aeccf495"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Determines whether a specified job is loaded in the user launchd domain. <ahref="#aead5f04bd94549956a7f2826aeccf495">More...</a><br/></td></tr>
<trclass="memdesc:a3bc3a94386dd27968d48619f42154463"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Determines whether a specified job is running in the user launchd domain. <ahref="#a3bc3a94386dd27968d48619f42154463">More...</a><br/></td></tr>
<trclass="memdesc:ac86f028e5f175cccfcab418346d7bcfe"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Reads an extended attribute on a file. <ahref="#ac86f028e5f175cccfcab418346d7bcfe">More...</a><br/></td></tr>
<trclass="memdesc:a6842e0ae3110f04477765c771c04dc60"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Writes an extended attribute on a file. <ahref="#a6842e0ae3110f04477765c771c04dc60">More...</a><br/></td></tr>
<trclass="memdesc:ab8c682ff6d5f00ca828640a72436e196"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Reads an extended attribute on a file. <ahref="#ab8c682ff6d5f00ca828640a72436e196">More...</a><br/></td></tr>
<trclass="memdesc:ae086861e350e7225e4ea065d941e664f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Writes an extended attribute on a file. <ahref="#ae086861e350e7225e4ea065d941e664f">More...</a><br/></td></tr>
<trclass="memitem:a0c28700ce2629c13b5b8bb1392625ef4"><tdclass="memItemLeft"align="right"valign="top"><aclass="el"href="namespacecrashpad.html#a589b4d9bd6f2233b67148ab6793c3c13">XattrStatus</a> </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a0c28700ce2629c13b5b8bb1392625ef4">ReadXattrInt</a> (const base::FilePath &file, const base::StringPiece &name, int *value)</td></tr>
<trclass="memdesc:a0c28700ce2629c13b5b8bb1392625ef4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Reads an extended attribute on a file. <ahref="#a0c28700ce2629c13b5b8bb1392625ef4">More...</a><br/></td></tr>
<trclass="memitem:a85a3551184d900a1d970bd8fa0be0ec3"><tdclass="memItemLeft"align="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a85a3551184d900a1d970bd8fa0be0ec3">WriteXattrInt</a> (const base::FilePath &file, const base::StringPiece &name, int value)</td></tr>
<trclass="memdesc:a85a3551184d900a1d970bd8fa0be0ec3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Writes an extended attribute on a file. <ahref="#a85a3551184d900a1d970bd8fa0be0ec3">More...</a><br/></td></tr>
<trclass="memdesc:a71572c94f27aba3f34938d3a0d9030a3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Reads an extended attribute on a file. <ahref="#a71572c94f27aba3f34938d3a0d9030a3">More...</a><br/></td></tr>
<trclass="memdesc:ae63f9a1eeeec00b78c216f72b1ca1327"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Writes an extended attribute on a file. <ahref="#ae63f9a1eeeec00b78c216f72b1ca1327">More...</a><br/></td></tr>
<trclass="memdesc:a354d84b9ce60fa7d437c2ee6f58ea05f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Removes an extended attribute from a file. <ahref="#a354d84b9ce60fa7d437c2ee6f58ea05f">More...</a><br/></td></tr>
<trclass="memdesc:a34001ec0bfa5e0815fa478a8cf025c61"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Calls the appropriate <code>*exception_raise*()</code> function for the specified <em>behavior</em>. <ahref="#a34001ec0bfa5e0815fa478a8cf025c61">More...</a><br/></td></tr>
<trclass="memdesc:a2112e7fcb6a2fc7f9b6b0ff8856e8466"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Computes an approriate successful return value for an exception handler function. <ahref="#a2112e7fcb6a2fc7f9b6b0ff8856e8466">More...</a><br/></td></tr>
<trclass="memdesc:ac192440e1d208f5dd348f0cba652d93a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Copies the old state to the new state for state-carrying exceptions. <ahref="#ac192440e1d208f5dd348f0cba652d93a">More...</a><br/></td></tr>
<trclass="memdesc:acea6434eb784ccde471620e9d79ba8c1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Determines whether <em>behavior</em> indicates an exception behavior that carries thread state information. <ahref="#acea6434eb784ccde471620e9d79ba8c1">More...</a><br/></td></tr>
<trclass="memdesc:a5d424769dc3683b809a9783f9319d4ab"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Determines whether <em>behavior</em> indicates an exception behavior that carries thread and task identities. <ahref="#a5d424769dc3683b809a9783f9319d4ab">More...</a><br/></td></tr>
<trclass="memdesc:a2e26b5b9a8355ab15063b1c07fa6dff7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the basic behavior value of <em>behavior</em>, its value without <code>MACH_EXCEPTION_CODES</code> set. <ahref="#a2e26b5b9a8355ab15063b1c07fa6dff7">More...</a><br/></td></tr>
<trclass="memitem:a830c754edaa401f7d866e69369f76ae1"><tdclass="memItemLeft"align="right"valign="top">exception_type_t </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a830c754edaa401f7d866e69369f76ae1">ExcCrashRecoverOriginalException</a> (mach_exception_code_t code_0, mach_exception_code_t *original_code_0, int *signal)</td></tr>
<trclass="memdesc:a830c754edaa401f7d866e69369f76ae1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Recovers the original exception, first exception code, and signal from the encoded form of the first exception code delivered with <code>EXC_CRASH</code> exceptions. <ahref="#a830c754edaa401f7d866e69369f76ae1">More...</a><br/></td></tr>
<trclass="memdesc:a83c8325c451170f4d3fb883014656af3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Determines whether a given exception type could plausibly be carried within an <code>EXC_CRASH</code> exception. <ahref="#a83c8325c451170f4d3fb883014656af3">More...</a><br/></td></tr>
<trclass="memdesc:ac448d0b014125dc8edd9c617836eb44c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the exception code to report via a configured metrics system. <ahref="#ac448d0b014125dc8edd9c617836eb44c">More...</a><br/></td></tr>
<trclass="memdesc:ad2ac0b9fe2a066fecac5e8d9b977e892"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Determines whether an exception is a non-fatal <code>EXC_RESOURCE</code>. <ahref="#ad2ac0b9fe2a066fecac5e8d9b977e892">More...</a><br/></td></tr>
<trclass="memdesc:a79ee9764b34c0267b58f54404946275a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Like <code>mach_thread_self()</code>, but without the obligation to release the send right. <ahref="#a79ee9764b34c0267b58f54404946275a">More...</a><br/></td></tr>
<trclass="memdesc:a9c9bc6ad9973f794c425707617b63278"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a new Mach port in the current task. <ahref="#a9c9bc6ad9973f794c425707617b63278">More...</a><br/></td></tr>
<trclass="memdesc:a194e0575e09db56e4107e1c41b27c941"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The value for <code>EXC_MASK_ALL</code> appropriate for the operating system at run time. <ahref="#a194e0575e09db56e4107e1c41b27c941">More...</a><br/></td></tr>
<trclass="memdesc:a18e47623f33e0c86fef1d08a82b28cc9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An exception mask containing every possible exception understood by the operating system at run time. <ahref="#a18e47623f33e0c86fef1d08a82b28cc9">More...</a><br/></td></tr>
<trclass="memdesc:af63980b36cac449785c26cee00c89205"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Makes a <code>boostrap_check_in()</code> call to the process’ bootstrap server. <ahref="#af63980b36cac449785c26cee00c89205">More...</a><br/></td></tr>
<trclass="memdesc:a32e6cb4455e49ede76dab41a256962ee"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Makes a <code>boostrap_look_up()</code> call to the process’ bootstrap server. <ahref="#a32e6cb4455e49ede76dab41a256962ee">More...</a><br/></td></tr>
<trclass="memdesc:aa31f495c675536bcb30d1267c3a9b696"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Computes the deadline for a specified timeout value. <ahref="#aa31f495c675536bcb30d1267c3a9b696">More...</a><br/></td></tr>
<trclass="memdesc:a35293418a0b7637a00631807ac4b431e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Runs <code>mach_msg()</code> with a deadline, as opposed to a timeout. <ahref="#a35293418a0b7637a00631807ac4b431e">More...</a><br/></td></tr>
<trclass="memdesc:a2274adc0459f68b93ffe51d8f975f14e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Initializes a reply message for a MIG server routine based on its corresponding request. <ahref="#a2274adc0459f68b93ffe51d8f975f14e">More...</a><br/></td></tr>
<trclass="memdesc:aa023691aedd4f3e6faa923e8d2095947"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the error code in a reply message for a MIG server routine. <ahref="#aa023691aedd4f3e6faa923e8d2095947">More...</a><br/></td></tr>
<trclass="memdesc:a979ca1d327dcf56488d3304efa9680eb"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a Mach message trailer for a message that has been received. <ahref="#a979ca1d327dcf56488d3304efa9680eb">More...</a><br/></td></tr>
<trclass="memdesc:a2c18eae8148ec3304733581a28c2da3b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the process ID of a Mach message’s sender from its audit trailer. <ahref="#a2c18eae8148ec3304733581a28c2da3b">More...</a><br/></td></tr>
<trclass="memdesc:a2670a96d46f33b0e88db50a6222c0b47"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Destroys or deallocates a Mach port received in a Mach message. <ahref="#a2670a96d46f33b0e88db50a6222c0b47">More...</a><br/></td></tr>
<trclass="memdesc:a05296bfd23550f42639067355410811e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a Mach exception value to a textual representation. <ahref="#a05296bfd23550f42639067355410811e">More...</a><br/></td></tr>
<trclass="memdesc:a229a9b5ddd24c6722e413e6132d0acf0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a string to its corresponding Mach exception value. <ahref="#a229a9b5ddd24c6722e413e6132d0acf0">More...</a><br/></td></tr>
<trclass="memdesc:a8ee31102507c0f75d82496dcd6f6b53b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a Mach exception mask value to a textual representation. <ahref="#a8ee31102507c0f75d82496dcd6f6b53b">More...</a><br/></td></tr>
<trclass="memdesc:a7ab63868a738f3bfd4d2449e60607dec"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a string to its corresponding Mach exception mask value. <ahref="#a7ab63868a738f3bfd4d2449e60607dec">More...</a><br/></td></tr>
<trclass="memdesc:a53fd131112ba6eba0d81467733a7643a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a Mach exception behavior value to a textual representation. <ahref="#a53fd131112ba6eba0d81467733a7643a">More...</a><br/></td></tr>
<trclass="memdesc:a957c7de6eb716bf1662c08333b1f7e21"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a string to its corresponding Mach exception behavior value. <ahref="#a957c7de6eb716bf1662c08333b1f7e21">More...</a><br/></td></tr>
<trclass="memdesc:a857f6b2f39cb21b22891242df26757e0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a thread state flavor value to a textual representation. <ahref="#a857f6b2f39cb21b22891242df26757e0">More...</a><br/></td></tr>
<trclass="memdesc:a2fdb1f659a2813e80d5b644020a44208"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a string to its corresponding thread state flavor value. <ahref="#a2fdb1f659a2813e80d5b644020a44208">More...</a><br/></td></tr>
<trclass="memdesc:aa93af751a4a09c316fb3de1a90e03fe8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the value of the system’s monotonic clock. <ahref="#aa93af751a4a09c316fb3de1a90e03fe8">More...</a><br/></td></tr>
<trclass="memdesc:a8f1db976c6e43d3731c26df569368592"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sleeps for the specified duration. <ahref="#a8f1db976c6e43d3731c26df569368592">More...</a><br/></td></tr>
<trclass="memdesc:ab15d0aff86a0aafe6f33cbd8913441c7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a random string. <ahref="#ab15d0aff86a0aafe6f33cbd8913441c7">More...</a><br/></td></tr>
<trclass="memdesc:af9a547efca1b5ea53e95a3a12047c38a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Obtain a <em>window_bits</em> parameter to pass to <code>deflateInit2()</code> or <code>inflateInit2()</code> that specifies a <code>gzip</code> wrapper instead of the default zlib wrapper. <ahref="#af9a547efca1b5ea53e95a3a12047c38a">More...</a><br/></td></tr>
<trclass="memdesc:ae0634eb0299cf5b28f7a373454d97c51"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Formats a string for an error received from the zlib library. <ahref="#ae0634eb0299cf5b28f7a373454d97c51">More...</a><br/></td></tr>
<trclass="memdesc:a6e1b1c536af301cd418dad62348b1d29"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Casts to a different type if it can be done without data loss, logging a warning message and returing a default value otherwise. <ahref="#a6e1b1c536af301cd418dad62348b1d29">More...</a><br/></td></tr>
<trclass="memdesc:aeb040202b4562c8c4087b9c9db2ce430"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Performs an assignment if it can be done safely, and signals if it cannot be done safely. <ahref="#aeb040202b4562c8c4087b9c9db2ce430">More...</a><br/></td></tr>
<trclass="memitem:a003f563ef0fe26081b4520012e0c1ef8"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a003f563ef0fe26081b4520012e0c1ef8">CloseMultipleNowOrOnExec</a> (int fd, int preserve_fd)</td></tr>
<trclass="memdesc:a003f563ef0fe26081b4520012e0c1ef8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Close multiple file descriptors or mark them close-on-exec. <ahref="#a003f563ef0fe26081b4520012e0c1ef8">More...</a><br/></td></tr>
<trclass="memdesc:aa8a3145ce95463d1638428b2547cde4d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Closes <code>stdin</code> and <code>stdout</code> by opening <code>/dev/null</code> over them. <ahref="#aa8a3145ce95463d1638428b2547cde4d">More...</a><br/></td></tr>
<trclass="memdesc:a5e5ee7c62768446ceb8fa8a76db99952"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Permanently drops privileges conferred by being a setuid or setgid executable. <ahref="#a5e5ee7c62768446ceb8fa8a76db99952">More...</a><br/></td></tr>
<trclass="memdesc:a97b946d80de148d1fd2452af38b220f4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a POSIX signal value to a textual representation. <ahref="#a97b946d80de148d1fd2452af38b220f4">More...</a><br/></td></tr>
<trclass="memitem:a6249dd58c6a81b300d64b25a943fa25c"><tdclass="memItemLeft"align="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a6249dd58c6a81b300d64b25a943fa25c">StringToSignal</a> (const base::StringPiece &string, <aclass="el"href="namespacecrashpad.html#a14f1de509869f929122998a2f88f08a6">StringToSymbolicConstantOptions</a> options, int *signal)</td></tr>
<trclass="memdesc:a6249dd58c6a81b300d64b25a943fa25c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a string to its corresponding POSIX signal value. <ahref="#a6249dd58c6a81b300d64b25a943fa25c">More...</a><br/></td></tr>
<trclass="memdesc:a0486df983d8e9cecbe1e46e0059806df"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Inserts a mapping from <em>key</em> to <em>value</em> into <em>map</em>, or replaces an existing mapping so that <em>key</em> maps to <em>value</em>. <ahref="#a0486df983d8e9cecbe1e46e0059806df">More...</a><br/></td></tr>
<trclass="memdesc:ab42fe62040bb628fb134573bb2131955"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Copy a <code>NUL</code>-terminated char16-based string to a fixed-size buffer. <ahref="#ab42fe62040bb628fb134573bb2131955">More...</a><br/></td></tr>
<trclass="memdesc:ac8605dea4710c2630ccdd21439e05999"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the length of a string, not to exceed a maximum. <ahref="#ac8605dea4710c2630ccdd21439e05999">More...</a><br/></td></tr>
<trclass="memdesc:a1b3aaf00fdc6fef366afb2a00062c97f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Splits a string into two parts at the first delimiter found. <ahref="#a1b3aaf00fdc6fef366afb2a00062c97f">More...</a><br/></td></tr>
<trclass="memdesc:abb5d05de37d3f1a92ce36c3ce37842b7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Splits a string into multiple parts on the given delimiter. <ahref="#abb5d05de37d3f1a92ce36c3ce37842b7">More...</a><br/></td></tr>
<trclass="memdesc:adbc9204d047dd250fe5f6b4ce0dd27ae"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Saves the CPU context. <ahref="#adbc9204d047dd250fe5f6b4ce0dd27ae">More...</a><br/></td></tr>
<trclass="memdesc:a52a7dee343e392e5bf1794e8136df7f9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Utility function for building escaped command lines. <ahref="#a52a7dee343e392e5bf1794e8136df7f9">More...</a><br/></td></tr>
<trclass="memdesc:af8340c24a2983e788d2a3ba90d1d4846"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Equivalent to <code>InitializeCritialSection()</code>, but attempts to allocate with a valid <code>.DebugInfo</code> field on versions of Windows where it's possible to do so. <ahref="#af8340c24a2983e788d2a3ba90d1d4846">More...</a><br/></td></tr>
<trclass="memdesc:a3746e63a20ecf254ab6ec0a2a3fc9072"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Proxy function for <code>GetModuleInformation()</code>. <br/></td></tr>
<trclass="memdesc:ae643b5c6bce4e11a0f51eb2f4d5fa1de"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts a <code>HANDLE</code> to an <code>int</code>. <ahref="#ae643b5c6bce4e11a0f51eb2f4d5fa1de">More...</a><br/></td></tr>
<trclass="memdesc:a83df06f1e4dc470676c1f86e93b6bc63"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Converts an <code>int</code> to an <code>HANDLE</code>. <ahref="#a83df06f1e4dc470676c1f86e93b6bc63">More...</a><br/></td></tr>
<trclass="memdesc:af5f4414be804bdcd71f57053d7147eff"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Retrieve the type and version information from a given module (exe, dll, etc.) <ahref="#af5f4414be804bdcd71f57053d7147eff">More...</a><br/></td></tr>
<trclass="memdesc:a794c1a44de599deb3e261eab0bd6c03b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Given a memory map of a process, and a range to be read from the target process, returns a vector of ranges, representing the readable portions of the original range. <ahref="#a794c1a44de599deb3e261eab0bd6c03b">More...</a><br/></td></tr>
<trclass="memdesc:a638d7916642f81df8063d300f08ff2ca"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Connect over the given <em>pipe_name</em>, passing <em>message</em> to the server, storing the server's reply into <em>response</em>. <ahref="#a638d7916642f81df8063d300f08ff2ca">More...</a><br/></td></tr>
<trclass="memdesc:a1bb7596acd0c7d75d0608ffafc6028e8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps CreateNamedPipe() to create a single named pipe instance. <ahref="#a1bb7596acd0c7d75d0608ffafc6028e8">More...</a><br/></td></tr>
<trclass="memdesc:af22242667ee950fe12a99b298dda5e08"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the SECURITY_DESCRIPTOR blob that will be used for creating the connection pipe in <aclass="el"href="namespacecrashpad.html#a1bb7596acd0c7d75d0608ffafc6028e8"title="Wraps CreateNamedPipe() to create a single named pipe instance. ">CreateNamedPipeInstance()</a>. <ahref="#af22242667ee950fe12a99b298dda5e08">More...</a><br/></td></tr>
<trclass="memdesc:a12442a42a099c4b68211fd230e94f42c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Convert Windows <code>FILETIME</code> to <code>timeval</code>, converting from Windows epoch to POSIX epoch. <br/></td></tr>
<trclass="memdesc:a2597c6565e3733dceb0f933cea2146a1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Convert Windows <code>FILETIME</code> to <code>timeval</code>, treating the values as an interval of elapsed time. <br/></td></tr>
<trclass="memdesc:ad150794de658f3bec7f37aa33ac521c4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Similar to POSIX gettimeofday(), gets the current system time in UTC. <br/></td></tr>
<trclass="memdesc:aec89d58359f33bb2ba3671feea0c15f4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#aec89d58359f33bb2ba3671feea0c15f4">More...</a><br/></td></tr>
<trclass="memdesc:a765503fd97e9e3d622d3b30bff543fb9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a765503fd97e9e3d622d3b30bff543fb9">More...</a><br/></td></tr>
<trclass="memdesc:a6075a91ef08754a4f6f1d1cc4f4243d2"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a6075a91ef08754a4f6f1d1cc4f4243d2">More...</a><br/></td></tr>
<trclass="memdesc:a5637f13db21865305a5d09b123647ee0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a5637f13db21865305a5d09b123647ee0">More...</a><br/></td></tr>
<trclass="memdesc:a7d4549b38faef80da81a53b88b1a27ac"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a7d4549b38faef80da81a53b88b1a27ac">More...</a><br/></td></tr>
<trclass="memdesc:aedb99d12b989d048f972d843a2aea013"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#aedb99d12b989d048f972d843a2aea013">More...</a><br/></td></tr>
<trclass="memdesc:a075be3843e4294e446c40022ba6661c4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a075be3843e4294e446c40022ba6661c4">More...</a><br/></td></tr>
<trclass="memdesc:a46e5304477aab0ad1d165869557eb3b5"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a46e5304477aab0ad1d165869557eb3b5">More...</a><br/></td></tr>
<trclass="memdesc:abeb060347d9343e720856380234cd6ff"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#abeb060347d9343e720856380234cd6ff">More...</a><br/></td></tr>
<trclass="memitem:a7b4bfcaae95ef3a81e3ec2d27f059bab"><tdclass="memItemLeft"align="right"valign="top">launch_data_t </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#a7b4bfcaae95ef3a81e3ec2d27f059bab">LaunchDataNewInteger</a> (long long integer)</td></tr>
<trclass="memdesc:a7b4bfcaae95ef3a81e3ec2d27f059bab"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a7b4bfcaae95ef3a81e3ec2d27f059bab">More...</a><br/></td></tr>
<trclass="memdesc:a19e679e954d2d8ca88ace03ccab5c4df"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a19e679e954d2d8ca88ace03ccab5c4df">More...</a><br/></td></tr>
<trclass="memdesc:aa78698056108819fe4bd268cc55801c3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#aa78698056108819fe4bd268cc55801c3">More...</a><br/></td></tr>
<trclass="memdesc:a7ae48002caa906acb164114bc290b048"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a7ae48002caa906acb164114bc290b048">More...</a><br/></td></tr>
<trclass="memdesc:a5af22dade75539fd9e5032acf799c945"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a5af22dade75539fd9e5032acf799c945">More...</a><br/></td></tr>
<trclass="memdesc:a54549da20f78530f300712625fc0ba5a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a54549da20f78530f300712625fc0ba5a">More...</a><br/></td></tr>
<trclass="memdesc:a6fd262daa89e57ffd897e4b583d44d44"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a6fd262daa89e57ffd897e4b583d44d44">More...</a><br/></td></tr>
<trclass="memdesc:a21114f1a9f28bfb065033f569d466a09"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a21114f1a9f28bfb065033f569d466a09">More...</a><br/></td></tr>
<trclass="memdesc:a30a24e225530ab7feeb3e12df480f5c5"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a30a24e225530ab7feeb3e12df480f5c5">More...</a><br/></td></tr>
<trclass="memdesc:aaf2fbe2de028de73c9013d6c0759bc2b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#aaf2fbe2de028de73c9013d6c0759bc2b">More...</a><br/></td></tr>
<trclass="memdesc:a6ed0f2e24befe2e6faa94445bb03e054"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a6ed0f2e24befe2e6faa94445bb03e054">More...</a><br/></td></tr>
<trclass="memdesc:a5637cdc78caedaaadb2c0e47857ccf78"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#a5637cdc78caedaaadb2c0e47857ccf78">More...</a><br/></td></tr>
<trclass="memdesc:ae541f07925a67de751502b903af919b4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps the <code><launch.h></code> function of the same name. <ahref="#ae541f07925a67de751502b903af919b4">More...</a><br/></td></tr>
<trclass="memitem:ab269ab8edf326666ef7056a18f4a67c4"><tdclass="memItemLeft"align="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#ab269ab8edf326666ef7056a18f4a67c4">StringToNumber</a> (const base::StringPiece &string, int *number)</td></tr>
<trclass="memdesc:ab269ab8edf326666ef7056a18f4a67c4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Convert a string to a number. <ahref="#ab269ab8edf326666ef7056a18f4a67c4">More...</a><br/></td></tr>
<trclass="memitem:ac76c5a4040c1f8e2878412dd368a4ea2"><tdclass="memItemLeft"align="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="namespacecrashpad.html#ac76c5a4040c1f8e2878412dd368a4ea2">StringToNumber</a> (const base::StringPiece &string, unsigned int *number)</td></tr>
<trclass="memdesc:ac76c5a4040c1f8e2878412dd368a4ea2"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Convert a string to a number. <ahref="#ac76c5a4040c1f8e2878412dd368a4ea2">More...</a><br/></td></tr>
<trclass="memdesc:a38697c7bab6ab9c9abeea86b421252cf"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Convert a string to a number. <ahref="#a38697c7bab6ab9c9abeea86b421252cf">More...</a><br/></td></tr>
<trclass="memdesc:a0d7e404d4414f4a6dd7c00f3ac2920e9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Convert a string to a number. <ahref="#a0d7e404d4414f4a6dd7c00f3ac2920e9">More...</a><br/></td></tr>
<trclass="memdesc:add54baa0f53825b93f3aab2fcafce367"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A value that can never be a valid FileHandle. <br/></td></tr>
<trclass="memdesc:a7c7b6c8b4f44c95c7f0fb70a56342277"><tdclass="mdescLeft"> </td><tdclass="mdescRight"><code>MACH_PORT_NULL</code> with the correct type for a Mach port, <code>mach_port_t</code>. <ahref="#a7c7b6c8b4f44c95c7f0fb70a56342277">More...</a><br/></td></tr>
<trclass="memdesc:a7dbcba9449a5dd47d2911b1f85bc1a58"><tdclass="mdescLeft"> </td><tdclass="mdescRight"><code>MACH_EXCEPTION_CODES</code> with the correct type for a Mach exception behavior, <code>exception_behavior_t</code>. <ahref="#a7dbcba9449a5dd47d2911b1f85bc1a58">More...</a><br/></td></tr>
<trclass="memdesc:ad22bbde846a82173474ba002116c325c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">An exception type to use for simulated exceptions. <br/></td></tr>
<trclass="memdesc:a2673983f0177685e048be73ee578eddb"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A Mach message option specifying that an audit trailer should be delivered during a receive operation. <ahref="#a2673983f0177685e048be73ee578eddb">More...</a><br/></td></tr>
<trclass="memdesc:ae0af855b48de54cc50ef186da37cb769"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The header name <code>"Content-Type"</code>. <br/></td></tr>
<trclass="memdesc:a281b3c75cd8b0ae8ba3c9658a60bf2b3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The header name <code>"Content-Length"</code>. <br/></td></tr>
<trclass="memdesc:a9eb387ab361a9f81c766833c066d4e8f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The header name <code>"Content-Encoding"</code>. <br/></td></tr>
<p>A <code>std::vector</code> using <aclass="el"href="structcrashpad_1_1AlignedAllocator.html"title="A standard allocator that aligns its allocations as requested, suitable for use as an allocator in st...">AlignedAllocator</a>. </p>
<p>This is similar to <code>std::vector<T></code>, with the addition of an alignment guarantee. <em>Alignment</em> must be a power of 2. If <em>Alignment</em> is not specified, the default alignment for type <em>T</em> is used. </p>
<p>Ensures that a range, composed of a base and a size, does not overflow the pointer type of the process it describes a range in. </p>
<p>This class checks bases of type <code>mach_vm_address_t</code> and sizes of type <code>mach_vm_address_t</code> against a process whose pointer type is either 32 or 64 bits wide.</p>
<p>Aside from varying the overall range on the basis of a process’ pointer type width, this class functions very similarly to <aclass="el"href="classcrashpad_1_1CheckedRange.html"title="Ensures that a range, composed of a base and size, does not overflow its data type. ">CheckedRange</a>. </p>
<p>Ensures that a range, composed of a base and a size, does not overflow the pointer type of the process it describes a range in. </p>
<p>This class checks bases of type WinVMAddress and sizes of type WinVMSize against a process whose pointer type is either 32 or 64 bits wide.</p>
<p>Aside from varying the overall range on the basis of a process' pointer type width, this class functions very similarly to <aclass="el"href="classcrashpad_1_1CheckedRange.html"title="Ensures that a range, composed of a base and size, does not overflow its data type. ">CheckedRange</a>. </p>
<p>A const version of <code>thread_state_t</code>. </p>
<p>This is useful as the <em>old_state</em> parameter to exception handler functions. Normally, these parameters are of type <code>thread_state_t</code>, but this allows modification of the state, which is conceptually <code>const</code>. </p>
<p>The time before which a <aclass="el"href="namespacecrashpad.html#a35293418a0b7637a00631807ac4b431e"title="Runs mach_msg() with a deadline, as opposed to a timeout. ">MachMessageWithDeadline()</a> call should complete. </p>
<p>A value of this type may be one of the special constants <aclass="el"href="namespacecrashpad.html#a124c0056f68c3859092b317f486fae9ca6461bf9de012b5f2305fb3da6d0f82d5"title="MachMessageWithDeadline() should not block at all in its operation. ">kMachMessageDeadlineNonblocking</a> or <aclass="el"href="namespacecrashpad.html#a124c0056f68c3859092b317f486fae9ca848a739b3c252f4565161a6bd3f070d6"title="MachMessageWithDeadline() should wait indefinitely for the requested operation to complete...">kMachMessageDeadlineWaitIndefinitely</a>. Any other values should be produced by calling <aclass="el"href="namespacecrashpad.html#aa31f495c675536bcb30d1267c3a9b696"title="Computes the deadline for a specified timeout value. ">MachMessageDeadlineFromTimeout()</a>.</p>
<p>Internally, these are currently specified on the same time base as <aclass="el"href="namespacecrashpad.html#aa93af751a4a09c316fb3de1a90e03fe8"title="Returns the value of the system’s monotonic clock. ">ClockMonotonicNanoseconds()</a>, although this is an implementation detail. </p>
<p>64-bit snapshot thread IDs are obtained from <aclass="el"href="classcrashpad_1_1ThreadSnapshot.html#a3c953575fadb934cd5f163560df149da"title="Returns the thread’s identifier. ">ThreadSnapshot::ThreadID()</a>. 32-bit minidump thread IDs are stored in <aclass="el"href="structMINIDUMP__THREAD.html#a1d2508187af6c3ec09e5836badb56fd2"title="The thread’s ID. This may be referenced by MINIDUMP_EXCEPTION_STREAM::ThreadId. ">MINIDUMP_THREAD::ThreadId</a>.</p>
<p>A <aclass="el"href="classcrashpad_1_1TSimpleStringDictionary.html"title="A map/dictionary collection implementation using a fixed amount of storage, so that it does not perfo...">TSimpleStringDictionary</a> with default template parameters. </p>
<p>For historical reasons this specialized version is available with the same size factors as a previous implementation. </p>
</div>
</div>
<h2class="groupheader">Enumeration Type Documentation</h2>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a24b09ceb3508dd862a91ce02f0583ae8ae4f1a3b637ac392d76826131e72ac832"></a>kXPProcessAllAccess </td><tdclass="fielddoc"><p>This is the XP-suitable value of <code>PROCESS_ALL_ACCESS</code>. </p>
<p>Requesting <code>PROCESS_ALL_ACCESS</code> with the value defined when building against a Vista+ SDK results in <code>ERROR_ACCESS_DENIED</code> when running on XP. See <ahref="https://msdn.microsoft.com/en-ca/library/windows/desktop/ms684880.aspx">https://msdn.microsoft.com/en-ca/library/windows/desktop/ms684880.aspx</a></p>
<tr><tdclass="fieldname"><aid="a24b09ceb3508dd862a91ce02f0583ae8af4736ae0e9abf32de684ad33895eec0e"></a>kXPThreadAllAccess </td><tdclass="fielddoc"><p>This is the XP-suitable value of <code>THREAD_ALL_ACCESS</code>. </p>
<p>Requesting <code>THREAD_ALL_ACCESS</code> with the value defined when building against a Vista+ SDK results in <code>ERROR_ACCESS_DENIED</code> when running on XP. See <ahref="https://msdn.microsoft.com/en-us/library/windows/desktop/ms686769.aspx">https://msdn.microsoft.com/en-us/library/windows/desktop/ms686769.aspx</a></p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a0720c6dd92c22f4946aeeb17d638f5aba15aaf8991271871ab08493449c00a048"></a>kMachMessageTimeoutNonblocking </td><tdclass="fielddoc"><p>When passed to <aclass="el"href="namespacecrashpad.html#aa31f495c675536bcb30d1267c3a9b696"title="Computes the deadline for a specified timeout value. ">MachMessageDeadlineFromTimeout()</a>, that function will return <aclass="el"href="namespacecrashpad.html#a124c0056f68c3859092b317f486fae9ca6461bf9de012b5f2305fb3da6d0f82d5"title="MachMessageWithDeadline() should not block at all in its operation. ">kMachMessageDeadlineNonblocking</a>. </p>
<tr><tdclass="fieldname"><aid="a0720c6dd92c22f4946aeeb17d638f5abaaf4f2c8a649ea6bcfe896e77c312315f"></a>kMachMessageTimeoutWaitIndefinitely </td><tdclass="fielddoc"><p>When passed to <aclass="el"href="namespacecrashpad.html#aa31f495c675536bcb30d1267c3a9b696"title="Computes the deadline for a specified timeout value. ">MachMessageDeadlineFromTimeout()</a>, that function will return <aclass="el"href="namespacecrashpad.html#a124c0056f68c3859092b317f486fae9ca848a739b3c252f4565161a6bd3f070d6"title="MachMessageWithDeadline() should wait indefinitely for the requested operation to complete...">kMachMessageDeadlineWaitIndefinitely</a>. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a124c0056f68c3859092b317f486fae9ca6461bf9de012b5f2305fb3da6d0f82d5"></a>kMachMessageDeadlineNonblocking </td><tdclass="fielddoc"><p><aclass="el"href="namespacecrashpad.html#a35293418a0b7637a00631807ac4b431e"title="Runs mach_msg() with a deadline, as opposed to a timeout. ">MachMessageWithDeadline()</a> should not block at all in its operation. </p>
<tr><tdclass="fieldname"><aid="a124c0056f68c3859092b317f486fae9ca848a739b3c252f4565161a6bd3f070d6"></a>kMachMessageDeadlineWaitIndefinitely </td><tdclass="fielddoc"><p><aclass="el"href="namespacecrashpad.html#a35293418a0b7637a00631807ac4b431e"title="Runs mach_msg() with a deadline, as opposed to a timeout. ">MachMessageWithDeadline()</a> should wait indefinitely for the requested operation to complete. </p>
<p>This can be used to represent the CPU architecture of an entire system as in SystemSnapshot::CPUArchitecture(). It can also be used to represent the architecture of a <aclass="el"href="structcrashpad_1_1CPUContext.html"title="A context structure capable of carrying the context of any supported CPU architecture. ">CPUContext</a> structure in its <aclass="el"href="structcrashpad_1_1CPUContext.html#af71f7a2e8478339d53fcb9d52ded6ae5"title="The CPU architecture of a context structure. This field controls the expression of the union...">CPUContext::architecture</a> field without reference to external data. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a270e290ba558e948eb6690bd217cbb71a4a3c395099ca8e31f9bd9511e058c73c"></a>kCPUArchitectureUnknown </td><tdclass="fielddoc"><p>The CPU architecture is unknown. </p>
<p>Determines the locking mode that <aclass="el"href="namespacecrashpad.html#acd02263566d8c43fc7886f88a13b364f"title="Locks the given file using flock() on POSIX or LockFileEx() on Windows. ">LoggingLockFile()</a> uses. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a3753a95b02e5c96c6e20017e467cef07a767e1337acb2aa20d7ce4e903a75ca16"></a>kShared </td><tdclass="fielddoc"><p>Equivalent to <code>flock()</code> with <code>LOCK_SH</code>. </p>
<tr><tdclass="fieldname"><aid="a3753a95b02e5c96c6e20017e467cef07a9d38b79e17ebc3239ca19ba517174b5b"></a>kExclusive </td><tdclass="fielddoc"><p>Equivalent to <code>flock()</code> with <code>LOCK_EX</code>. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a034ccc90eb0d1f587ee89275d822175dab73168a18962d7b0ed6b67f2e0ade611"></a>kOwnerOnly </td><tdclass="fielddoc"><p>Equivalent to <code>0600</code>. </p>
<tr><tdclass="fieldname"><aid="a034ccc90eb0d1f587ee89275d822175da5368ce91b6c60534fe1187a23e98924d"></a>kWorldReadable </td><tdclass="fielddoc"><p>Equivalent to <code>0644</code>. </p>
<p>Determines the mode that <aclass="el"href="namespacecrashpad.html#a62fc6876cc0c660f0ea8bd1dd0a07e82"title="Wraps OpenFileForWrite(), logging an error if the operation fails. ">LoggingOpenFileForWrite()</a> uses. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="afa69b0967d9a6df659ff5d2a02ff3e51aafde8ca07d267d05bcec5df8b0fc6c22"></a>kReuseOrFail </td><tdclass="fielddoc"><p>Opens the file if it exists, or fails if it does not. </p>
<tr><tdclass="fieldname"><aid="afa69b0967d9a6df659ff5d2a02ff3e51ae32f90c7a8d4224749e4e99f11e5eee7"></a>kReuseOrCreate </td><tdclass="fielddoc"><p>Opens the file if it exists, or creates a new file. </p>
<tr><tdclass="fieldname"><aid="afa69b0967d9a6df659ff5d2a02ff3e51a751805077642855501f572c876e1d907"></a>kTruncateOrCreate </td><tdclass="fielddoc"><p>Creates a new file. If the file already exists, it will be overwritten. </p>
<tr><tdclass="fieldname"><aid="afa69b0967d9a6df659ff5d2a02ff3e51a4ece9fd054e01c35ba925186adcf0c71"></a>kCreateOrFail </td><tdclass="fielddoc"><p>Creates a new file. If the file already exists, the open will fail. </p>
<p>x86_64-specific flags for <aclass="el"href="structcrashpad_1_1MinidumpContextAMD64.html#a086c5c2655800e91e080241317aa3ace"title="A bitfield composed of values of MinidumpContextFlags and MinidumpContextAMD64Flags. ">MinidumpContextAMD64::context_flags</a>. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="aa197c419950bae99f1ba663f10b1891caaa3c47e2ec7565ce81b7cda3a4c101c6"></a>kMinidumpContextAMD64 </td><tdclass="fielddoc"><p>Identifies the context structure as x86_64. This is the same as <code>CONTEXT_AMD64</code> on Windows for this architecture. </p>
<tr><tdclass="fieldname"><aid="aa197c419950bae99f1ba663f10b1891ca7aaf3a9f32414c379444f75a341f61f6"></a>kMinidumpContextAMD64Control </td><tdclass="fielddoc"><p>Indicates the validity of control registers (<code>CONTEXT_CONTROL</code>). </p>
<tr><tdclass="fieldname"><aid="aa197c419950bae99f1ba663f10b1891ca3231a2e73f13021707e1dd5465124c94"></a>kMinidumpContextAMD64Integer </td><tdclass="fielddoc"><p>Indicates the validity of non-control integer registers (<code>CONTEXT_INTEGER</code>). </p>
<tr><tdclass="fieldname"><aid="aa197c419950bae99f1ba663f10b1891ca087fcb89147fcb03a42917257d7c95d8"></a>kMinidumpContextAMD64Segment </td><tdclass="fielddoc"><p>Indicates the validity of non-control segment registers (<code>CONTEXT_SEGMENTS</code>). </p>
<tr><tdclass="fieldname"><aid="aa197c419950bae99f1ba663f10b1891ca80855829a791a48417d0599bda56685c"></a>kMinidumpContextAMD64FloatingPoint </td><tdclass="fielddoc"><p>Indicates the validity of floating-point state (<code>CONTEXT_FLOATING_POINT</code>). </p>
<tr><tdclass="fieldname"><aid="aa197c419950bae99f1ba663f10b1891ca0a6187be426495350ac54f8eec044770"></a>kMinidumpContextAMD64Debug </td><tdclass="fielddoc"><p>Indicates the validity of debug registers (<code>CONTEXT_DEBUG_REGISTERS</code>). </p>
<tr><tdclass="fieldname"><aid="aa197c419950bae99f1ba663f10b1891cae39eafc6efd87afc7c6977ae3cc0fc96"></a>kMinidumpContextAMD64Xstate </td><tdclass="fielddoc"><p>Indicates the validity of <code>xsave</code> data (<code>CONTEXT_XSTATE</code>). </p>
<tr><tdclass="fieldname"><aid="aa197c419950bae99f1ba663f10b1891ca7d67332dea79c652a93e592341ab5e51"></a>kMinidumpContextAMD64Full </td><tdclass="fielddoc"><p>Indicates the validity of control, integer, and floating-point registers (<code>CONTEXT_FULL</code>). </p>
<tr><tdclass="fieldname"><aid="aa197c419950bae99f1ba663f10b1891cac84b1d90bf34dbb26631ca77d942abf8"></a>kMinidumpContextAMD64All </td><tdclass="fielddoc"><p>Indicates the validity of all registers except <code>xsave</code> data (<code>CONTEXT_ALL</code>). </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a835e6bd6cb3f97c99c572596878c1573ac76899aed0f9a5f331fcdc9343a1bc68"></a>kMinidumpContextExceptionActive </td><tdclass="fielddoc"><p>The thread was executing a trap handler in kernel mode (<code>CONTEXT_EXCEPTION_ACTIVE</code>). </p>
<p>If this bit is set, it indicates that the context is from a thread that was executing a trap handler in the kernel. This bit is only valid when <aclass="el"href="namespacecrashpad.html#a835e6bd6cb3f97c99c572596878c1573ae8cd92df6bc89b12ba3a4f7fe8529f10"title="Kernel-mode state reporting is provided (CONTEXT_EXCEPTION_REPORTING). ">kMinidumpContextExceptionReporting</a> is also set. This bit is only used on Windows. </p>
<tr><tdclass="fieldname"><aid="a835e6bd6cb3f97c99c572596878c1573ac0a5b0f61a08eae36fc1ed26fa929ebb"></a>kMinidumpContextServiceActive </td><tdclass="fielddoc"><p>The thread was executing a system call in kernel mode (<code>CONTEXT_SERVICE_ACTIVE</code>). </p>
<p>If this bit is set, it indicates that the context is from a thread that was executing a system call in the kernel. This bit is only valid when <aclass="el"href="namespacecrashpad.html#a835e6bd6cb3f97c99c572596878c1573ae8cd92df6bc89b12ba3a4f7fe8529f10"title="Kernel-mode state reporting is provided (CONTEXT_EXCEPTION_REPORTING). ">kMinidumpContextExceptionReporting</a> is also set. This bit is only used on Windows. </p>
<tr><tdclass="fieldname"><aid="a835e6bd6cb3f97c99c572596878c1573a86fb4b3183b9ec5acb7798246f2de9e5"></a>kMinidumpContextExceptionRequest </td><tdclass="fielddoc"><p>Kernel-mode state reporting is desired (<code>CONTEXT_EXCEPTION_REQUEST</code>). </p>
<p>This bit is not used in context structures containing snapshots of thread CPU context. It used when calling <code>GetThreadContext()</code> on Windows to specify that kernel-mode state reporting (<aclass="el"href="namespacecrashpad.html#a835e6bd6cb3f97c99c572596878c1573ae8cd92df6bc89b12ba3a4f7fe8529f10"title="Kernel-mode state reporting is provided (CONTEXT_EXCEPTION_REPORTING). ">kMinidumpContextExceptionReporting</a>) is desired in the returned context structure. </p>
<tr><tdclass="fieldname"><aid="a835e6bd6cb3f97c99c572596878c1573ae8cd92df6bc89b12ba3a4f7fe8529f10"></a>kMinidumpContextExceptionReporting </td><tdclass="fielddoc"><p>Kernel-mode state reporting is provided (<code>CONTEXT_EXCEPTION_REPORTING</code>). </p>
<p>If this bit is set, it indicates that the bits indicating how the thread had entered kernel mode (<aclass="el"href="namespacecrashpad.html#a835e6bd6cb3f97c99c572596878c1573ac76899aed0f9a5f331fcdc9343a1bc68"title="The thread was executing a trap handler in kernel mode (CONTEXT_EXCEPTION_ACTIVE). ">kMinidumpContextExceptionActive</a> and and <aclass="el"href="namespacecrashpad.html#a835e6bd6cb3f97c99c572596878c1573ac0a5b0f61a08eae36fc1ed26fa929ebb"title="The thread was executing a system call in kernel mode (CONTEXT_SERVICE_ACTIVE). ">kMinidumpContextServiceActive</a>) are valid. This bit is only used on Windows. </p>
<p>32-bit x86-specifc flags for <aclass="el"href="structcrashpad_1_1MinidumpContextX86.html#a0b4f61874b6d7bf6bb750e270ceaad80"title="A bitfield composed of values of MinidumpContextFlags and MinidumpContextX86Flags. ">MinidumpContextX86::context_flags</a>. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a2a503f0a39ec98188b60178edbc1fc55a2f6918d087ba8042f2df2342e4fb3875"></a>kMinidumpContextX86 </td><tdclass="fielddoc"><p>Identifies the context structure as 32-bit x86. This is the same as <code>CONTEXT_i386</code> and <code>CONTEXT_i486</code> on Windows for this architecture. </p>
<tr><tdclass="fieldname"><aid="a2a503f0a39ec98188b60178edbc1fc55ada1e4c9c9232467b3f2d3784bceecb7b"></a>kMinidumpContextX86Control </td><tdclass="fielddoc"><p>Indicates the validity of control registers (<code>CONTEXT_CONTROL</code>). </p>
<tr><tdclass="fieldname"><aid="a2a503f0a39ec98188b60178edbc1fc55a8cee96af57fd2f7e45350dadd97743ad"></a>kMinidumpContextX86Integer </td><tdclass="fielddoc"><p>Indicates the validity of non-control integer registers (<code>CONTEXT_INTEGER</code>). </p>
<tr><tdclass="fieldname"><aid="a2a503f0a39ec98188b60178edbc1fc55a351a40dfb28c1bed5d3efbaa5109f69e"></a>kMinidumpContextX86Segment </td><tdclass="fielddoc"><p>Indicates the validity of non-control segment registers (<code>CONTEXT_SEGMENTS</code>). </p>
<tr><tdclass="fieldname"><aid="a2a503f0a39ec98188b60178edbc1fc55aab6d4add027b8667770e914b21e22471"></a>kMinidumpContextX86FloatingPoint </td><tdclass="fielddoc"><p>Indicates the validity of floating-point state (<code>CONTEXT_FLOATING_POINT</code>). </p>
<p>The <code>fsave</code> field is valid. The <code>float_save</code> field is included in this definition, but its members have no practical use asdie from <code>fsave</code>. </p>
<tr><tdclass="fieldname"><aid="a2a503f0a39ec98188b60178edbc1fc55a9cab86cf2d37ab8bc0f6ec0fa9a1442e"></a>kMinidumpContextX86Debug </td><tdclass="fielddoc"><p>Indicates the validity of debug registers (<code>CONTEXT_DEBUG_REGISTERS</code>). </p>
<tr><tdclass="fieldname"><aid="a2a503f0a39ec98188b60178edbc1fc55afbe5d3708e41ca9b92a6d3acb6f6f322"></a>kMinidumpContextX86Extended </td><tdclass="fielddoc"><p>Indicates the validity of extended registers in <code>fxsave</code> format (<code>CONTEXT_EXTENDED_REGISTERS</code>). </p>
<tr><tdclass="fieldname"><aid="a2a503f0a39ec98188b60178edbc1fc55a2e59094ad192c7388e85ca768d741dd4"></a>kMinidumpContextX86Xstate </td><tdclass="fielddoc"><p>Indicates the validity of <code>xsave</code> data (<code>CONTEXT_XSTATE</code>). </p>
<tr><tdclass="fieldname"><aid="a2a503f0a39ec98188b60178edbc1fc55a8dd8413af4852a4ca699b17a4d39d7bd"></a>kMinidumpContextX86Full </td><tdclass="fielddoc"><p>Indicates the validity of control, integer, and segment registers. (<code>CONTEXT_FULL</code>). </p>
<tr><tdclass="fieldname"><aid="a2a503f0a39ec98188b60178edbc1fc55a49dd96e7cd1bb82c676a38eece63d63f"></a>kMinidumpContextX86All </td><tdclass="fielddoc"><p>Indicates the validity of all registers except <code>xsave</code> data. (<code>CONTEXT_ALL</code>). </p>
<p>CPU type values for <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#adc85b29d7df8943baf1a96af23051ca8"title="The system’s CPU architecture. This may be a PROCESSOR_ARCHITECTURE_* value, or a member of crashpad...">MINIDUMP_SYSTEM_INFO::ProcessorArchitecture</a>. </p>
<tr><tdclass="fieldname"><aid="a98e532bb06fc5ffdd93e0ceb6d789eb1a492f53b6303f91d08192bbfb9341e3cb"></a>kMinidumpCPUArchitectureX86Win64 </td><tdclass="fielddoc"><p>A 32-bit x86 process running on IA-64 (Itanium). </p>
<dlclass="section note"><dt>Note</dt><dd>This value is not used in minidump files for 32-bit x86 processes running on a 64-bit-capable x86 CPU and operating system. In that configuration, <aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1a667f84537acd054ce17f527bcd41c885"title="32-bit x86. ">kMinidumpCPUArchitectureX86</a> is used instead. </dd></dl>
<p>These systems identify their CPUs generically as “arm64” or “aarch64”, or with more specific names such as “armv8”.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#a98e532bb06fc5ffdd93e0ceb6d789eb1af06c5024168bed0a96de94e665ba2e70"title="Used by Breakpad for 64-bit ARM. ">kMinidumpCPUArchitectureARM64Breakpad</a></dd></dl>
<tr><tdclass="fieldname"><aid="a98e532bb06fc5ffdd93e0ceb6d789eb1af06c5024168bed0a96de94e665ba2e70"></a>kMinidumpCPUArchitectureARM64Breakpad </td><tdclass="fielddoc"><p>Used by Breakpad for 64-bit ARM. </p>
<tr><tdclass="fieldname"><aid="a98e532bb06fc5ffdd93e0ceb6d789eb1a1d0ecd96474945b642af3568bc43ab92"></a>kMinidumpCPUArchitectureUnknown </td><tdclass="fielddoc"><p>Unknown CPU architecture. </p>
<p>Operating system family values for <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#a214e7bd61a89343a80a3c9a265fbbe96"title="The system’s operating system family. This may be a VER_PLATFORM_* value, or a member of crashpad::M...">MINIDUMP_SYSTEM_INFO::PlatformId</a>. </p>
<tr><tdclass="fieldname"><aid="a9be77c6f7868f00c2f279006a1abe26aa652417bb9221b48e7086f8b5e7055e72"></a>kMinidumpOSWin32Windows </td><tdclass="fielddoc"><p>Windows 95, Windows 98, and Windows Me. </p>
<tr><tdclass="fieldname"><aid="a9be77c6f7868f00c2f279006a1abe26aa00fdfb21197a2b114e5ffeb51f53e3df"></a>kMinidumpOSWin32NT </td><tdclass="fielddoc"><p>Windows NT, Windows 2000, and later. </p>
<tr><tdclass="fieldname"><aid="a9be77c6f7868f00c2f279006a1abe26aa03b20aa69a12cad7a9c08b3335b309d3"></a>kMinidumpOSMacOSX </td><tdclass="fielddoc"><p>macOS, Darwin for traditional systems. </p>
<tr><tdclass="fieldname"><aid="a9be77c6f7868f00c2f279006a1abe26aa093968e4c9c7704732760e9ce2916115"></a>kMinidumpOSiOS </td><tdclass="fielddoc"><p>iOS, Darwin for mobile devices. </p>
<tr><tdclass="fieldname"><aid="a9be77c6f7868f00c2f279006a1abe26aa126dc921b6c301f5ce7d111a29b72d4f"></a>kMinidumpOSLinux </td><tdclass="fielddoc"><p>Linux, not including Android. </p>
<p>Operating system type values for <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html#a9aac8ed4707ea43563fed1776454bad5"title="The system’s operating system type, which distinguishes between “desktop” or “workstation” syste...">MINIDUMP_SYSTEM_INFO::ProductType</a>. </p>
<p>Minidump stream type values for <aclass="el"href="structMINIDUMP__DIRECTORY.html#a425b8b68da6810a126c759c5f5a94f7d"title="The type of stream referenced, a value of MINIDUMP_STREAM_TYPE. ">MINIDUMP_DIRECTORY::StreamType</a>. Each stream structure has a corresponding stream type value to identify it. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="dbghelp_8h.html#a64711234318a4a002f399dffb474ca08"title="Minidump stream type values for MINIDUMP_DIRECTORY::StreamType. Each stream structure has a correspon...">MINIDUMP_STREAM_TYPE</a></dd></dl>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a88363a45a4af1a16f542a8c1ff522ab9af87c478a3f2ce198936d817e98d87531"></a>kMinidumpStreamTypeThreadList </td><tdclass="fielddoc"><p>The stream type for <aclass="el"href="structMINIDUMP__THREAD__LIST.html"title="Information about all threads within the process. ">MINIDUMP_THREAD_LIST</a>. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="dbghelp_8h.html#a64711234318a4a002f399dffb474ca08a4dd234223e39c89f93aabce77e649d2c"title="The stream type for MINIDUMP_THREAD_LIST. ">ThreadListStream</a></dd></dl>
<tr><tdclass="fieldname"><aid="a88363a45a4af1a16f542a8c1ff522ab9a226cb7d075ec01c79f233d098e9a9e3f"></a>kMinidumpStreamTypeModuleList </td><tdclass="fielddoc"><p>The stream type for <aclass="el"href="structMINIDUMP__MODULE__LIST.html"title="Information about all modules loaded within the process at the time the snapshot was taken...">MINIDUMP_MODULE_LIST</a>. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="dbghelp_8h.html#a64711234318a4a002f399dffb474ca08ad404c18554f01aa57ac0af1a7674060b"title="The stream type for MINIDUMP_MODULE_LIST. ">ModuleListStream</a></dd></dl>
<tr><tdclass="fieldname"><aid="a88363a45a4af1a16f542a8c1ff522ab9ac9923e6a5c46946ba2cdc8ce4272c181"></a>kMinidumpStreamTypeMemoryList </td><tdclass="fielddoc"><p>The stream type for <aclass="el"href="structMINIDUMP__MEMORY__LIST.html"title="Information about memory regions within the process. ">MINIDUMP_MEMORY_LIST</a>. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="dbghelp_8h.html#a64711234318a4a002f399dffb474ca08a1511624630cd9150436de906ae033cbd"title="The stream type for MINIDUMP_MEMORY_LIST. ">MemoryListStream</a></dd></dl>
<tr><tdclass="fieldname"><aid="a88363a45a4af1a16f542a8c1ff522ab9a445b370a989c63b41f4080c2584912e7"></a>kMinidumpStreamTypeException </td><tdclass="fielddoc"><p>The stream type for <aclass="el"href="structMINIDUMP__EXCEPTION__STREAM.html"title="Information about the exception that triggered a minidump file’s generation. ">MINIDUMP_EXCEPTION_STREAM</a>. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="dbghelp_8h.html#a64711234318a4a002f399dffb474ca08a5ddc831e2440dfcfd112cb19401bbd60"title="The stream type for MINIDUMP_EXCEPTION_STREAM. ">ExceptionStream</a></dd></dl>
<tr><tdclass="fieldname"><aid="a88363a45a4af1a16f542a8c1ff522ab9a57ae6ef428bb48fdc877d92bc8046bd3"></a>kMinidumpStreamTypeSystemInfo </td><tdclass="fielddoc"><p>The stream type for <aclass="el"href="structMINIDUMP__SYSTEM__INFO.html"title="Information about the system that hosted the process that the minidump file contains a snapshot of...">MINIDUMP_SYSTEM_INFO</a>. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="dbghelp_8h.html#a64711234318a4a002f399dffb474ca08a36ca9398c8a42fa4ec2b4baf9c3d3474"title="The stream type for MINIDUMP_SYSTEM_INFO. ">SystemInfoStream</a></dd></dl>
<tr><tdclass="fieldname"><aid="a88363a45a4af1a16f542a8c1ff522ab9a956e21d34f0d97aa5b3b640b1676ef37"></a>kMinidumpStreamTypeHandleData </td><tdclass="fielddoc"><p>The stream type for MINIDUMP_HANDLE_DATA_STREAM. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="dbghelp_8h.html#a64711234318a4a002f399dffb474ca08ad7775c9c100abafc1b864499acf84757"title="The stream contains information about active HANDLEs. ">HandleDataStream</a></dd></dl>
<tr><tdclass="fieldname"><aid="a88363a45a4af1a16f542a8c1ff522ab9afab92691d30e4386b008dab71fe359f6"></a>kMinidumpStreamTypeUnloadedModuleList </td><tdclass="fielddoc"><p>The stream type for <aclass="el"href="structMINIDUMP__UNLOADED__MODULE__LIST.html"title="Information about all modules recorded as unloaded when the snapshot was taken. ">MINIDUMP_UNLOADED_MODULE_LIST</a>. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="dbghelp_8h.html#a64711234318a4a002f399dffb474ca08ac9a369c7cfd7b0c05208e4af380c4bba"title="The stream type for MINIDUMP_UNLOADED_MODULE_LIST. ">UnloadedModuleListStream</a></dd></dl>
<tr><tdclass="fieldname"><aid="a88363a45a4af1a16f542a8c1ff522ab9a631532de9316c7cb41cf27b2df2f802f"></a>kMinidumpStreamTypeMiscInfo </td><tdclass="fielddoc"><p>The stream type for <aclass="el"href="structMINIDUMP__MISC__INFO.html"title="Information about the process that the minidump file contains a snapshot of, as well as the system th...">MINIDUMP_MISC_INFO</a>, <aclass="el"href="structMINIDUMP__MISC__INFO__2.html"title="Information about the process that the minidump file contains a snapshot of, as well as the system th...">MINIDUMP_MISC_INFO_2</a>, <aclass="el"href="structMINIDUMP__MISC__INFO__3.html"title="Information about the process that the minidump file contains a snapshot of, as well as the system th...">MINIDUMP_MISC_INFO_3</a>, and <aclass="el"href="structMINIDUMP__MISC__INFO__4.html"title="Information about the process that the minidump file contains a snapshot of, as well as the system th...">MINIDUMP_MISC_INFO_4</a>. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="dbghelp_8h.html#a64711234318a4a002f399dffb474ca08a02e9fb2f037d09f1cdb4eb0c9f115b33"title="The stream type for MINIDUMP_MISC_INFO, MINIDUMP_MISC_INFO_2, MINIDUMP_MISC_INFO_3, MINIDUMP_MISC_INFO_4, and MINIDUMP_MISC_INFO_5. ">MiscInfoStream</a></dd></dl>
<tr><tdclass="fieldname"><aid="a88363a45a4af1a16f542a8c1ff522ab9ab6f692da21dc09fb3c17a186fdc3271b"></a>kMinidumpStreamTypeMemoryInfoList </td><tdclass="fielddoc"><p>The stream type for <aclass="el"href="structMINIDUMP__MEMORY__INFO__LIST.html"title="Contains a list of memory regions. ">MINIDUMP_MEMORY_INFO_LIST</a>. </p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="dbghelp_8h.html#a64711234318a4a002f399dffb474ca08ab3437fce4862d62ca22f4933cada4d43"title="The stream type for MINIDUMP_MEMORY_INFO_LIST. ">MemoryInfoListStream</a></dd></dl>
<tr><tdclass="fieldname"><aid="a88363a45a4af1a16f542a8c1ff522ab9af1056a1f748bba4c88fa8f4104771d00"></a>kMinidumpStreamTypeCrashpadInfo </td><tdclass="fielddoc"><p>The stream type for <aclass="el"href="structcrashpad_1_1MinidumpCrashpadInfo.html"title="Additional Crashpad-specific information carried within a minidump file. ">MinidumpCrashpadInfo</a>. </p>
<p>State of process being read by <aclass="el"href="classcrashpad_1_1ProcessReaderWin.html"title="Accesses information about another process, identified by a HANDLE. ">ProcessReaderWin</a>. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="ab96bb7edb42a2e1ce28eda205a18a17aa2fc7fbf0d19294f85dd3880460dd3c0a"></a>kRunning </td><tdclass="fielddoc"><p>The process has not been suspended. </p>
<tr><tdclass="fieldname"><aid="ab96bb7edb42a2e1ce28eda205a18a17aa6e09d95243f1f7bec7d0061e5831dc82"></a>kSuspended </td><tdclass="fielddoc"><p>The process is suspended. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a8387ad067a7e6a1735ab97a1af450d2ba1ca8cfec5f4774db61b0359f6905cb49"></a>kAllowFullName </td><tdclass="fielddoc"><p>Allow conversion from a string containing a symbolic constant by its full name. </p>
<tr><tdclass="fieldname"><aid="a8387ad067a7e6a1735ab97a1af450d2ba56cf2e379949ef54954bf3d23ca38e85"></a>kAllowShortName </td><tdclass="fielddoc"><p>Allow conversion from a string containing a symbolic constant by its short name. </p>
<tr><tdclass="fieldname"><aid="a8387ad067a7e6a1735ab97a1af450d2ba9021a9f07e3e4eb819ac567dd4d28b6f"></a>kAllowNumber </td><tdclass="fielddoc"><p>Allow conversion from a numeric string. </p>
<tr><tdclass="fieldname"><aid="a8387ad067a7e6a1735ab97a1af450d2ba060cbf403d47785a69b249e9c562f410"></a>kAllowOr </td><tdclass="fielddoc"><p>Allow <code>|</code> to combine values in a bitfield. </p>
<p>For families whose values may be constructed as bitfields, allow conversion of strings containing multiple individual components treated as being combined by a bitwise “or” operation. An example family of constants that behaves this way is the suite of Mach exception masks. For constants that are not constructed as bitfields, or constants that are only partially constructed as bitfields, this option has no effect. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a7856b82b71167792ea6103debb5105edad497286630d39fe9b19c950a85c56db7"></a>kUseFullName </td><tdclass="fielddoc"><p>Return the full name for a given constant. </p>
<dlclass="section attention"><dt>Attention</dt><dd>API consumers should provide this value when desired, but should provide only one of kUseFullName and <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105eda127e077880ede5d2f87b87873d46ea55"title="Return the short name for a given constant. ">kUseShortName</a>. Because kUseFullName is valueless, implementers should check for the absence of <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105eda127e077880ede5d2f87b87873d46ea55"title="Return the short name for a given constant. ">kUseShortName</a> instead. </dd></dl>
<tr><tdclass="fieldname"><aid="a7856b82b71167792ea6103debb5105eda127e077880ede5d2f87b87873d46ea55"></a>kUseShortName </td><tdclass="fielddoc"><p>Return the short name for a given constant. </p>
<tr><tdclass="fieldname"><aid="a7856b82b71167792ea6103debb5105eda6fd207e044b85ec202143881fcd5eb2e"></a>kUnknownIsEmpty </td><tdclass="fielddoc"><p>If no symbolic name is known for a given constant, return an empty string. </p>
<dlclass="section attention"><dt>Attention</dt><dd>API consumers should provide this value when desired, but should provide only one of kUnknownIsEmpty and <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105edaf9da07820c9857c86422b70c3cc33c12"title="If no symbolic name is known for a given constant, return a numeric string. ">kUnknownIsNumeric</a>. Because kUnknownIsEmpty is valueless, implementers should check for the absence of <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105edaf9da07820c9857c86422b70c3cc33c12"title="If no symbolic name is known for a given constant, return a numeric string. ">kUnknownIsNumeric</a> instead. </dd></dl>
<tr><tdclass="fieldname"><aid="a7856b82b71167792ea6103debb5105edaf9da07820c9857c86422b70c3cc33c12"></a>kUnknownIsNumeric </td><tdclass="fielddoc"><p>If no symbolic name is known for a given constant, return a numeric string. </p>
<p>The numeric format used will vary by family, but will be appropriate to the family. Families whose values are typically constructed as bitfields will generally use a hexadecimal format, and other families will generally use a signed or unsigned decimal format. </p>
<tr><tdclass="fieldname"><aid="a7856b82b71167792ea6103debb5105eda18aa149c3471a5129274df2af6972f04"></a>kUseOr </td><tdclass="fielddoc"><p>Use <code>|</code> to combine values in a bitfield. </p>
<p>For families whose values may be constructed as bitfields, allow conversion to strings containing multiple individual components treated as being combined by a bitwise “or” operation. An example family of constants that behaves this way is the suite of Mach exception masks. For constants that are not constructed as bitfields, or constants that are only partially constructed as bitfields, this option has no effect. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="acf909fcc58999f95ab1a2d485a3b884fa80056c7b41974ff409381f83677977fb"></a>kTerminationCodeCrashNoDump </td><tdclass="fielddoc"><p>The crash handler did not respond, and the client self-terminated. </p>
<tr><tdclass="fieldname"><aid="acf909fcc58999f95ab1a2d485a3b884fa360db709d75512a0e6b8a27b9b122910"></a>kTerminationCodeSnapshotFailed </td><tdclass="fielddoc"><p>The initial process snapshot failed, so the correct client termination code could not be retrieved. </p>
<tr><tdclass="fieldname"><aid="acf909fcc58999f95ab1a2d485a3b884fa3110b7733dd8d446957e061cb8fb37d2"></a>kTerminationCodeNotConnectedToHandler </td><tdclass="fielddoc"><p>A dump was requested for a client that was never registered with the crash handler. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a3b405c19a5787fabcfba96001d49f292ac69d34d47bfd5244204004878441d53f"></a>kUnset </td><tdclass="fielddoc"><p>The value has not explicitly been set. </p>
<tr><tdclass="fieldname"><aid="a3b405c19a5787fabcfba96001d49f292ade1ec1870756a80dffbdc4cda53153e0"></a>kEnabled </td><tdclass="fielddoc"><p>The value has explicitly been set to on, or a behavior has explicitly been enabled. </p>
<tr><tdclass="fieldname"><aid="a3b405c19a5787fabcfba96001d49f292a7b04d8795f5fd03c761ce70dab985fee"></a>kDisabled </td><tdclass="fielddoc"><p>The value has explicitly been set to off, or a behavior has explicitly been disabled. </p>
<tr><thcolspan="2">Enumerator</th></tr><tr><tdclass="fieldname"><aid="a589b4d9bd6f2233b67148ab6793c3c13ab8c5bbba307a5b38f6a1474fbf23dddd"></a>kOK </td><tdclass="fielddoc"><p>No error occured. No message is logged. </p>
<tr><tdclass="fieldname"><aid="a589b4d9bd6f2233b67148ab6793c3c13a56b68c332155feb30564a8ebd779ba67"></a>kNoAttribute </td><tdclass="fielddoc"><p>The attribute does not exist. No message is logged. </p>
<tr><tdclass="fieldname"><aid="a589b4d9bd6f2233b67148ab6793c3c13a298223b78cd88f4983fbc5ae093136ca"></a>kOtherError </td><tdclass="fielddoc"><p>An error occurred and an error message was logged. </p>
<p>Utility function for building escaped command lines. </p>
<p>This builds a command line so that individual arguments can be reliably decoded by <code>CommandLineToArgvW()</code>.</p>
<p><em>argument</em> is appended to <em>command_line</em>. If necessary, it will be placed in quotation marks and escaped properly. If <em>command_line</em> is initially non-empty, a space will precede <em>argument</em>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">argument</td><td>The argument to append to <em>command_line</em>. </td></tr>
<tr><tdclass="paramdir">[in,out]</td><tdclass="paramname">command_line</td><td>The command line being constructed. </td></tr>
<p>Performs an assignment if it can be done safely, and signals if it cannot be done safely. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">destination</td><td>A pointer to the variable to be assigned to. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">source</td><td>The value to assign.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if <em>source</em> is in the range supported by the type of <em>*destination</em>, with the assignment to <em>*destination</em> having been performed. <code>false</code> if the assignment cannot be completed safely because <em>source</em> is outside of this range. </dd></dl>
<p>Returns the process ID of a Mach message’s sender from its audit trailer. </p>
<p>For the audit trailer to be present, the message must have been received with <aclass="el"href="namespacecrashpad.html#a2673983f0177685e048be73ee578eddb"title="A Mach message option specifying that an audit trailer should be delivered during a receive operation...">kMachMessageReceiveAuditTrailer</a> or its macro equivalent specified in the receive options.</p>
<p>If the kernel is the message’s sender, a process ID of <code>0</code> will be returned.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">trailer</td><td>The trailer received with a Mach message.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The process ID of the message’s sender, or <code>-1</code> on failure with a message logged. It is considered a failure for <em>trailer</em> to not contain audit information. </dd></dl>
<p>Makes a <code>boostrap_check_in()</code> call to the process’ bootstrap server. </p>
<p>This function is provided to make it easier to call <code>bootstrap_check_in()</code> while avoiding accidental leaks of the returned receive right.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">service_name</td><td>The service name to check in.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>On success, a receive right to the service port. On failure, <code>MACH_PORT_NULL</code> with a message logged. </dd></dl>
<p>Makes a <code>boostrap_look_up()</code> call to the process’ bootstrap server. </p>
<p>This function is provided to make it easier to call <code>bootstrap_look_up()</code> while avoiding accidental leaks of the returned send right.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">service_name</td><td>The service name to look up.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>On success, a send right to the service port. On failure, <code>MACH_PORT_NULL</code> with a message logged. </dd></dl>
<p>Builds a MinidumpThreadIDMap for a group of <aclass="el"href="classcrashpad_1_1ThreadSnapshot.html"title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a> objects. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">thread_snapshots</td><td>The thread snapshots to use as source data. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">thread_id_map</td><td>A MinidumpThreadIDMap to be built by this method. This map must be empty when this function is called.</td></tr>
</table>
</dd>
</dl>
<p>The map ensures that for any unique 64-bit thread ID found in a <aclass="el"href="classcrashpad_1_1ThreadSnapshot.html"title="An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot...">ThreadSnapshot</a>, the 32-bit thread ID used in a minidump file will also be unique. </p>
<p>Copy a <code>NUL</code>-terminated char16-based string to a fixed-size buffer. </p>
<p>This function behaves identically to <code>strlcpy()</code>, but it operates on char16 data instead of <code>char</code> data. It copies the <code>NUL</code>-terminated string in the buffer beginning at <em>source</em> to the buffer of size <em>length</em> at <em>destination</em>, ensuring that the destination buffer is <code>NUL</code>-terminated. No data will be written outside of the <em>destination</em> buffer, but if <em>length</em> is smaller than the length of the string at <em>source</em>, the string will be truncated.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">destination</td><td>A pointer to a buffer of at least size <em>length</em> char16 units (not bytes). The string will be copied to this buffer, possibly with truncation, and <code>NUL</code>-terminated. Nothing will be written following the <code>NUL</code> terminator. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">source</td><td>A pointer to a <code>NUL</code>-terminated string of char16 data. The <code>NUL</code> terminator must be a <code>NUL</code> value in a char16 unit, not just a single <code>NUL</code> byte. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">length</td><td>The length of the <em>destination</em> buffer in char16 units, not bytes. A maximum of <em><code>length</em> - 1</code> char16 units from <em>source</em> will be copied to <em>destination</em>.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The length of the <em>source</em> string in char16 units, not including its <code>NUL</code> terminator. When truncation occurs, the return value will be equal to or greater than than the <em>length</em> parameter. </dd></dl>
<p>The CPU context will be captured as accurately and completely as possible, containing an atomic snapshot at the point of this function’s return. This function does not modify any registers.</p>
<p>This function captures all integer registers as well as the floating-point and vector (SSE) state. It does not capture debug registers, which are inaccessible by user code.</p>
<p>This function is a replacement for <code>RtlCaptureContext()</code>, which contains bugs and limitations. On 32-bit x86, <code>RtlCaptureContext()</code> requires that <code>ebp</code> be used as a frame pointer, and returns <code>ebp</code>, <code>esp</code>, and <code>eip</code> out of sync with the other registers. Both the 32-bit x86 and 64-bit x86_64 versions of <code>RtlCaptureContext()</code> capture only the state of the integer registers, ignoring floating-point and vector state.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">context</td><td>The structure to store the context in.</td></tr>
</table>
</dd>
</dl>
<dlclass="section note"><dt>Note</dt><dd>On x86_64, the value for <code>rcx</code> will be populated with the address of this function’s argument, as mandated by the ABI. </dd></dl>
<p>The CPU context will be captured as accurately and completely as possible, containing an atomic snapshot at the point of this function’s return. This function does not modify any registers.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">cpu_context</td><td>The structure to store the context in.</td></tr>
<dlclass="section note"><dt>Note</dt><dd>On x86_64, the value for <code>%rdi</code> will be populated with the address of this function’s argument, as mandated by the ABI. If the value of <code>%rdi</code> prior to calling this function is needed, it must be obtained separately prior to calling this function. For example: <divclass="fragment"><divclass="line">uint64_t rdi;</div><divclass="line"><spanclass="keyword">asm</span>(<spanclass="stringliteral">"movq %%rdi, %0"</span> : <spanclass="stringliteral">"=m"</span>(rdi));</div></div><!-- fragment --></dd></dl>
<p>Converts a Core Foundation-type property list to a launchd-type <code>launch_data_t</code>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">property_cf</td><td>The Core Foundation-type property list to convert.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The converted launchd-type <code>launch_data_t</code>. The caller takes ownership of the returned value. On error, returns <code>nullptr</code>.</dd></dl>
<dlclass="section note"><dt>Note</dt><dd>This function handles all <code>CFPropertyListRef</code> types except for <code>CFDateRef</code>, because there’s no <code>launch_data_type_t</code> analogue. Not all types supported in a launchd-type <code>launch_data_t</code> have <code>CFPropertyListRef</code> analogues. </dd></dl>
<p>Wraps <aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile()</a>, ensuring that exactly <em>size</em> bytes are read. </p>
<p>If <em>size</em> is out of the range of possible <aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile()</a> return values, if the underlying <aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile()</a> fails, or if other than <em>size</em> bytes were read, this function causes execution to terminate without returning.</p>
<aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile</a></dd>
<aclass="el"href="namespacecrashpad.html#abd2a51526c1f15e3f21a962457cbc53a"title="Wraps ReadFile(), ensuring that exactly size bytes are read. ">LoggingReadFile</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#ac8e7e1b1a4b89b489964ffee54d0d9df"title="Wraps ReadFile(), ensuring that it indicates end-of-file. ">CheckedReadFileAtEOF</a></dd></dl>
<p>Wraps <aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile()</a>, ensuring that it indicates end-of-file. </p>
<p>Attempts to read a single byte from <em>file</em>, expecting no data to be read. If the underlying <aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile()</a> fails, or if a byte actually is read, this function causes execution to terminate without returning.</p>
<aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile</a></dd></dl>
<p>Wraps <aclass="el"href="namespacecrashpad.html#ab9dded3137add283f6cf32facb86641a"title="Writes to a file, retrying when interrupted or following a short write on POSIX. ">WriteFile()</a>, ensuring that exactly <em>size</em> bytes are written. </p>
<p>If <em>size</em> is out of the range of possible <aclass="el"href="namespacecrashpad.html#ab9dded3137add283f6cf32facb86641a"title="Writes to a file, retrying when interrupted or following a short write on POSIX. ">WriteFile()</a> return values, if the underlying <aclass="el"href="namespacecrashpad.html#ab9dded3137add283f6cf32facb86641a"title="Writes to a file, retrying when interrupted or following a short write on POSIX. ">WriteFile()</a> fails, or if other than <em>size</em> bytes were written, this function causes execution to terminate without returning.</p>
<aclass="el"href="namespacecrashpad.html#ab9dded3137add283f6cf32facb86641a"title="Writes to a file, retrying when interrupted or following a short write on POSIX. ">WriteFile</a></dd>
<aclass="el"href="namespacecrashpad.html#a8a91af9c690d2a280c463596bf82070b"title="Wraps WriteFile(), ensuring that exactly size bytes are written. ">LoggingWriteFile</a></dd></dl>
<p>Returns the value of the system’s monotonic clock. </p>
<p>The monotonic clock is a tick counter whose epoch is unspecified. It is a monotonically-increasing clock that cannot be set, and never jumps backwards on a running system. The monotonic clock may stop while the system is sleeping, and it may be reset when the system starts up. This clock is suitable for computing durations of events. Subject to the underlying clock’s resolution, successive calls to this function will result in a series of increasing values.</p>
<dlclass="section return"><dt>Returns</dt><dd>The value of the system’s monotonic clock, in nanoseconds. </dd></dl>
<p>Close multiple file descriptors or mark them close-on-exec. </p>
<p>This is similar to the BSD/Solaris-style <code>closefrom()</code> routine, which closes all open file descriptors equal to or higher than its <em>fd</em> argument. This function must not be called while other threads are active. It is intended to be used in a child process created by <code>fork()</code>, prior to calling an <code>exec()</code>-family function. This guarantees that a (possibly untrustworthy) child process does not inherit file descriptors that it has no need for.</p>
<p>Unlike the BSD function, this function may not close file descriptors immediately, but may instead mark them as close-on-exec. The actual behavior chosen is specific to the operating system. On macOS, file descriptors are marked close-on-exec instead of being closed outright in order to avoid raising <code>EXC_GUARD</code> exceptions for guarded file descriptors that are protected against <code>close()</code>.</p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">fd</td><td>The lowest file descriptor to close or set as close-on-exec. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">preserve_fd</td><td>A file descriptor to preserve and not close (or set as close-on-exec), even if it is open and its value is greater than <em>fd</em>. To not preserve any file descriptor, pass <code>-1</code> for this parameter. </td></tr>
<p>Closes <code>stdin</code> and <code>stdout</code> by opening <code>/dev/null</code> over them. </p>
<p>It is normally inadvisable to <code>close()</code> the three standard input/output streams, because they occupy special file descriptors. Closing them outright could result in their file descriptors being reused. This causes problems for library code (including the standard library) that expects these file descriptors to have special meaning.</p>
<p>This function discards the standard input and standard output streams by opening <code>/dev/null</code> and assigning it to their file descriptors, closing whatever had been at those file descriptors previously.</p>
<p><code>stderr</code>, the standard error stream, is not closed. It is often useful to retain the ability to send diagnostic messages to the standard error stream.</p>
<dlclass="section note"><dt>Note</dt><dd>This function can only maintain its guarantees in a single-threaded process, or in situations where the caller has control of all threads in the process. </dd></dl>
<p>Wraps CreateNamedPipe() to create a single named pipe instance. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">pipe_name</td><td>The name to use for the pipe. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">first_instance</td><td>If <code>true</code>, the named pipe instance will be created with <code>FILE_FLAG_FIRST_PIPE_INSTANCE</code>. This ensures that the the pipe name is not already in use when created. The first instance will be created with an untrusted integrity SACL so instances of this pipe can be connected to by processes of any integrity level. </td></tr>
<p>Permanently drops privileges conferred by being a setuid or setgid executable. </p>
<p>The effective user ID and saved set-user ID are set to the real user ID, negating any effects of being a setuid executable. The effective group ID and saved set-group ID are set to the real group ID, negating any effects of being a setgid executable. Because the saved set-user ID and saved set-group ID are reset, there is no way to restore the prior privileges, and the drop is permanent.</p>
<p>This function drops privileges correctly when running setuid root and in other circumstances, including when running setuid non-root. If the program is not a setuid or setgid executable, this function has no effect.</p>
<p>No changes are made to the supplementary group list, which is normally not altered for setuid or setgid executables. </p>
<p>Determines whether a given exception type could plausibly be carried within an <code>EXC_CRASH</code> exception. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">exception</td><td>The exception type to test.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if an <code>EXC_CRASH</code> exception could plausibly carry <em>exception</em>.</dd></dl>
<p>An <code>EXC_CRASH</code> exception can wrap exceptions that originate as hardware faults, as well as exceptions that originate from certain software sources such as POSIX signals. It cannot wrap another <code>EXC_CRASH</code> exception, nor can it wrap <code>EXC_RESOURCE</code>, <code>EXC_GUARD</code>, or <code>EXC_CORPSE_NOTIFY</code> exceptions. It also cannot wrap Crashpad-specific <aclass="el"href="namespacecrashpad.html#ad22bbde846a82173474ba002116c325c"title="An exception type to use for simulated exceptions. ">kMachExceptionSimulated</a> exceptions. </p>
<p>Recovers the original exception, first exception code, and signal from the encoded form of the first exception code delivered with <code>EXC_CRASH</code> exceptions. </p>
<p><code>EXC_CRASH</code> exceptions are generated when the kernel has committed to terminating a process as a result of a core-generating POSIX signal and, for hardware exceptions, an earlier Mach exception. Information about this earlier exception and signal is made available to the <code>EXC_CRASH</code> handler via its <code>code[0]</code> parameter. This function recovers the original exception, the value of <code>code[0]</code> from the original exception, and the value of the signal responsible for process termination.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">code_0</td><td>The first exception code (<code>code[0]</code>) passed to a Mach exception handler in an <code>EXC_CRASH</code> exception. It is invalid to call this function with an exception code from any exception other than <code>EXC_CRASH</code>. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">original_code_0</td><td>The first exception code (<code>code[0]</code>) passed to the Mach exception handler for a hardware exception that resulted in the generation of a POSIX signal that caused process termination. If the signal that caused termination was not sent as a result of a hardware exception, this will be <code>0</code>. Callers that do not need this value may pass <code>nullptr</code>. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">signal</td><td>The POSIX signal that caused process termination. Callers that do not need this value may pass <code>nullptr</code>.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The original exception for a hardware exception that resulted in the generation of a POSIX signal that caused process termination. If the signal that caused termination was not sent as a result of a hardware exception, this will be <code>0</code>. </dd></dl>
<dlclass="section return"><dt>Returns</dt><dd><code>EXCEPTION_DEFAULT</code>, <code>EXCEPTION_STATE</code>, or <code>EXCEPTION_STATE_IDENTITY</code>, assuming <em>behavior</em> was a correct exception behavior value. </dd></dl>
<p>Determines whether <em>behavior</em> indicates an exception behavior that carries thread and task identities. </p>
<p>When this function returns <code>true</code>, an exception message of <em>behavior</em> will carry thread and task identities in the form of send rights to the thread and task ports. Its <em>thread</em> and <em>task</em> fields will be valid. When this function returns <code>false</code>, these fields will not be valid.</p>
<p>Exception behaviors that carry thread and task identity information are <code>EXCEPTION_DEFAULT</code> and <code>EXCEPTION_STATE_IDENTITY</code>. <code>MACH_EXCEPTION_CODES</code> may also be set. These behaviors correspond to <code>exception_raise()</code>, <code>exception_raise_state_identity()</code>, <code>mach_exception_raise()</code>, and <code>mach_exception_raise_state_identity()</code>.</p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if <em>behavior</em> is <code>EXCEPTION_DEFAULT</code> or <code>EXCEPTION_STATE_IDENTITY</code>, possibly with <code>MACH_EXCEPTION_CODES</code> also set. </dd></dl>
<p>Determines whether <em>behavior</em> indicates an exception behavior that carries 64-bit exception codes (“Mach exception codes”). </p>
<p>When this function returns <code>true</code>, an exception message of <em>behavior</em> will carry 64-bit exception codes of type <code>mach_exception_code_t</code> in its <em>code</em> field. When this function returns <code>false</code>, the exception message will carry 32-bit exception codes of type <code>exception_data_type_t</code> in its <em>code</em> field.</p>
<p>Exception behaviors that carry 64-bit exception codes are those that have <code>MACH_EXCEPTION_CODES</code> set. These behaviors correspond to <code>mach_exception_raise()</code>, <code>mach_exception_raise_state()</code>, and <code>mach_exception_raise_state_identity()</code>.</p>
<p>Determines whether <em>behavior</em> indicates an exception behavior that carries thread state information. </p>
<p>When this function returns <code>true</code>, an exception message of <em>behavior</em> will carry thread state information. Its <em>flavor</em>, <em>old_state</em>, <em>old_state_count</em>, <em>new_state</em>, and <em>new_state_count</em> fields will be valid. When this function returns <code>false</code>, these fields will not be valid.</p>
<p>Exception behaviors that carry thread state information are <code>EXCEPTION_STATE</code> and <code>EXCEPTION_STATE_IDENTITY</code>. <code>MACH_EXCEPTION_CODES</code> may also be set. These behaviors correspond to <code>exception_raise_state()</code>, <code>exception_raise_state_identity()</code>, <code>mach_exception_raise_state()</code>, and <code>mach_exception_raise_state_identity()</code>.</p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if <em>behavior</em> is <code>EXCEPTION_STATE</code> or <code>EXCEPTION_STATE_IDENTITY</code>, possibly with <code>MACH_EXCEPTION_CODES</code> also set. </dd></dl>
<p>Converts a Mach exception behavior value to a textual representation. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">behavior</td><td>The Mach exception behavior value to convert. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">options</td><td>Options affecting the conversion. <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105eda18aa149c3471a5129274df2af6972f04"title="Use | to combine values in a bitfield. ">kUseOr</a> is ignored. <code>MACH_EXCEPTION_CODES</code> can always be ORed in, but no other values can be ORed with each other. For <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105edaf9da07820c9857c86422b70c3cc33c12"title="If no symbolic name is known for a given constant, return a numeric string. ">kUnknownIsNumeric</a>, the format is <code>"%#x"</code>.</td></tr>
<p>Returns the exception code to report via a configured metrics system. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">exception</td><td>The exception type as received by a Mach exception handler. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">code_0</td><td>The first exception code (<code>code[0]</code>) as received by a Mach exception handler.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>An exception code that maps useful information from <em>exception</em> and <em>code_0</em> to the more limited data type available for metrics reporting.</dd></dl>
<p>For classic Mach exceptions (including hardware faults reported as Mach exceptions), the mapping is <code>(exception << 16) | code_0</code>.</p>
<p>For <code>EXC_CRASH</code> exceptions that originate as Mach exceptions described above, the mapping above is used, with the original exception’s values. For <code>EXC_CRASH</code> exceptions that originate as POSIX signals without an underlying Mach exception, the mapping is <code>(EXC_CRASH << 16) | code_0</code>.</p>
<p><code>EXC_RESOURCE</code> and <code>EXC_GUARD</code> exceptions both contain exception-specific “type” values and type-specific “flavor” values. In these cases, the mapping is <code>(exception << 16) | (type << 8) | flavor</code>. For <code>EXC_GUARD</code>, the “flavor” value is rewritten to be more space-efficient by replacing the kernel-supplied bitmask having exactly one bit set with the index of the set bit.</p>
<p><code>EXC_CORPSE_NOTIFY</code> exceptions are reported as classic Mach exceptions with the <em>code_0</em> field set to <code>0</code>.</p>
<p>If <em>exception</em> is <aclass="el"href="namespacecrashpad.html#ad22bbde846a82173474ba002116c325c"title="An exception type to use for simulated exceptions. ">kMachExceptionSimulated</a>, that value is returned as-is.</p>
<p>Overflow conditions in any field are handled via saturation. </p>
<p>Converts a Mach exception mask value to a textual representation. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">exception_mask</td><td>The Mach exception mask value to convert. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">options</td><td>Options affecting the conversion. <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105eda18aa149c3471a5129274df2af6972f04"title="Use | to combine values in a bitfield. ">kUseOr</a> is honored. For <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105edaf9da07820c9857c86422b70c3cc33c12"title="If no symbolic name is known for a given constant, return a numeric string. ">kUnknownIsNumeric</a>, the format is <code>"%#x"</code>.</td></tr>
<p>Converts a Mach exception value to a textual representation. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">exception</td><td>The Mach exception value to convert. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">options</td><td>Options affecting the conversion. <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105eda18aa149c3471a5129274df2af6972f04"title="Use | to combine values in a bitfield. ">kUseOr</a> is ignored. For <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105edaf9da07820c9857c86422b70c3cc33c12"title="If no symbolic name is known for a given constant, return a numeric string. ">kUnknownIsNumeric</a>, the format is <code>"%d"</code>.</td></tr>
<p>The value for <code>EXC_MASK_ALL</code> appropriate for the operating system at run time. </p>
<p>The SDK’s definition of <code>EXC_MASK_ALL</code> has changed over time, with later versions containing more bits set than earlier versions. However, older kernels will reject exception masks that contain bits set that they don’t recognize. Calling this function will return a value for <code>EXC_MASK_ALL</code> appropriate for the system at run time.</p>
<dlclass="section note"><dt>Note</dt><dd><code>EXC_MASK_ALL</code> does not include the value of <code>EXC_MASK_CRASH</code> or <code>EXC_MASK_CORPSE_NOTIFY</code>. Consumers that want <code>EXC_MASK_ALL</code> along with <code>EXC_MASK_CRASH</code> may use <aclass="el"href="namespacecrashpad.html#a194e0575e09db56e4107e1c41b27c941"title="The value for EXC_MASK_ALL appropriate for the operating system at run time. ">ExcMaskAll()</a><code>| EXC_MASK_CRASH</code>. Consumers may use <aclass="el"href="namespacecrashpad.html#a18e47623f33e0c86fef1d08a82b28cc9"title="An exception mask containing every possible exception understood by the operating system at run time...">ExcMaskValid()</a> for <code>EXC_MASK_ALL</code> along with <code>EXC_MASK_CRASH</code>, <code>EXC_MASK_CORPSE_NOTIFY</code>, and any values that come into existence in the future. </dd></dl>
<p>An exception mask containing every possible exception understood by the operating system at run time. </p>
<p><code>EXC_MASK_ALL</code>, and thus <aclass="el"href="namespacecrashpad.html#a194e0575e09db56e4107e1c41b27c941"title="The value for EXC_MASK_ALL appropriate for the operating system at run time. ">ExcMaskAll()</a>, never includes the value of <code>EXC_MASK_CRASH</code> or <code>EXC_MASK_CORPSE_NOTIFY</code>. For situations where an exception mask corresponding to every possible exception understood by the running kernel is desired, use this function instead.</p>
<p>Should new exception types be introduced in the future, this function will be updated to include their bits in the returned mask value when run time support is present. </p>
<p>Copies the old state to the new state for state-carrying exceptions. </p>
<p>When the kernel sends a state-carrying exception request and the response is successful (<code>MACH_MSG_SUCCESS</code>, a synonym for <code>KERN_SUCCESS</code>), it will set a new thread state based on <em>new_state</em> and <em>new_state_count</em>. To ease initialization of the new state, this function copies <em>old_state</em> and <em>old_state_count</em>. This is only done if <em>behavior</em> indicates a state-carrying exception.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">behavior</td><td>The behavior of the exception handler as invoked. This may be taken directly from the <em>behavior</em> parameter of internal::SimplifiedExcServer::Interface::CatchException(), for example. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">old_state</td><td>The original state value. This may be taken directly from the <em>old_state</em> parameter of internal::SimplifiedExcServer::Interface::CatchException(), for example. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">old_state_count</td><td>The number of significant <code>natural_t</code> words in <em>old_state</em>. This may be taken directly from the <em>old_state_count</em> parameter of internal::SimplifiedExcServer::Interface::CatchException(), for example. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">new_state</td><td>The state value to be set. This may be taken directly from the <em>new_state</em> parameter of internal::SimplifiedExcServer::Interface::CatchException(), for example. This parameter is untouched if <em>behavior</em> is not state-carrying. </td></tr>
<tr><tdclass="paramdir">[in,out]</td><tdclass="paramname">new_state_count</td><td>On entry, the number of <code>natural_t</code> words available to be written to in <em>new_state</em>. On return, the number of significant <code>natural_t</code> words in <em>new_state</em>. This may be taken directly from the <em>new_state_count</em> parameter of internal::SimplifiedExcServer::Interface::CatchException(), for example. This parameter is untouched if <em>behavior</em> is not state-carrying. If <em><em>behavior</em> is</em> state-carrying, this parameter should be at least as large as <em>old_state_count</em>. </td></tr>
<p>Computes an approriate successful return value for an exception handler function. </p>
<p>For exception handlers that respond to state-carrying behaviors, when the handler is called by the kernel (as it is normally), the kernel will attempt to set a new thread state when the exception handler returns successfully. Other code that mimics the kernel’s exception-delivery semantics may implement the same or similar behavior. In some situations, it is undesirable to set a new thread state. If the exception handler were to return unsuccessfully, however, the kernel would continue searching for an exception handler at a wider (task or host) scope. This may also be undesirable.</p>
<p>If such exception handlers return <code>MACH_RCV_PORT_DIED</code>, the kernel will not set a new thread state and will also not search for another exception handler. See 10.9.4 <code>xnu-2422.110.17/osfmk/kern/exception.c</code>. <code>exception_deliver()</code> will only set a new thread state if the handler’s return code was <code>MACH_MSG_SUCCESS</code> (a synonym for <code>KERN_SUCCESS</code>), and subsequently, <code>exception_triage()</code> will not search for a new handler if the handler’s return code was <code>KERN_SUCCESS</code> or <code>MACH_RCV_PORT_DIED</code>.</p>
<p>This function allows exception handlers to compute an appropriate return code to influence their caller (the kernel) in the desired way with respect to setting a new thread state while suppressing the caller’s subsequent search for other exception handlers. An exception handler should return the value returned by this function.</p>
<p>This function is useful even for <code>EXC_CRASH</code> handlers, where returning <code>KERN_SUCCESS</code> and allowing the kernel to set a new thread state has been observed to cause a perceptible and unnecessary waste of time. The victim task in an <code>EXC_CRASH</code> handler is already being terminated and is no longer schedulable, so there is no point in setting the states of any of its threads.</p>
<p>On OS X 10.11, the <code>MACH_RCV_PORT_DIED</code> mechanism cannot be used with an <code>EXC_CRASH</code> handler without triggering an undesirable <code>EXC_CORPSE_NOTIFY</code> exception. In that case, <code>KERN_SUCCESS</code> is always returned. Because this function may return <code>KERN_SUCCESS</code> for a state-carrying exception, it is important to ensure that the state returned by a state-carrying exception handler is valid, because it will be passed to <code>thread_set_status()</code>. <aclass="el"href="namespacecrashpad.html#ac192440e1d208f5dd348f0cba652d93a"title="Copies the old state to the new state for state-carrying exceptions. ">ExcServerCopyState()</a> may be used to achieve this.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">exception</td><td>The exception type passed to the exception handler. This may be taken directly from the <em>exception</em> parameter of internal::SimplifiedExcServer::Interface::CatchException(), for example. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">behavior</td><td>The behavior of the exception handler as invoked. This may be taken directly from the <em>behavior</em> parameter of internal::SimplifiedExcServer::Interface::CatchException(), for example. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">set_thread_state</td><td><code>true</code> if the handler would like its caller to set the new thread state using the <em>flavor</em>, <em>new_state</em>, and <em>new_state_count</em> out parameters. This can only happen when <em>behavior</em> is a state-carrying behavior.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>KERN_SUCCESS</code> or <code>MACH_RCV_PORT_DIED</code>. <code>KERN_SUCCESS</code> is used when <em>behavior</em> is not a state-carrying behavior, or when it is a state-carrying behavior and <em>set_thread_state</em> is <code>true</code>, or for <code>EXC_CRASH</code> exceptions on OS X 10.11 and later. Otherwise, <code>MACH_RCV_PORT_DIED</code> is used. </dd></dl>
<p>This function calls <code>GetFileVersionInfo()</code>, which can implicitly call <code>LoadLibrary()</code> to load <em>path</em> into the calling process. Do not call this function on an untrusted module, because there is a risk of executing the module’s code.</p>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">vs_fixedfileinfo</td><td>The <aclass="el"href="structVS__FIXEDFILEINFO.html"title="Version information for a file. ">VS_FIXEDFILEINFO</a> on success. <aclass="el"href="structVS__FIXEDFILEINFO.html#a1ecf0351f90806354f987321c4d1ce0e"title="A bitmask of VS_FF_* values identifying attributes of the file. Only bits present in dwFileFlagsMask ...">VS_FIXEDFILEINFO::dwFileFlags</a> will have been masked with <aclass="el"href="structVS__FIXEDFILEINFO.html#a1523cf64b0b010ecf5a8c3b02866041c"title="A bitmask of VS_FF_* values indicating which bits in dwFileFlags are valid. ">VS_FIXEDFILEINFO::dwFileFlagsMask</a> already.</td></tr>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, or <code>false</code> on failure with a message logged. If the module has no <code>VERSIONINFO</code> resource, <code>false</code> will be returned without any messages logged. </dd></dl>
<p>Given a memory map of a process, and a range to be read from the target process, returns a vector of ranges, representing the readable portions of the original range. </p>
<p>This is a free function for testing, but prefer <aclass="el"href="classcrashpad_1_1ProcessInfo.html#a96ddc54651cdea815f8f88a5ae00f0ab"title="Given a range to be read from the target process, returns a vector of ranges, representing the readab...">ProcessInfo::GetReadableRanges()</a>. </p>
<p>Returns the SECURITY_DESCRIPTOR blob that will be used for creating the connection pipe in <aclass="el"href="namespacecrashpad.html#a1bb7596acd0c7d75d0608ffafc6028e8"title="Wraps CreateNamedPipe() to create a single named pipe instance. ">CreateNamedPipeInstance()</a>. </p>
<p>This function is exposed for only for testing.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">size</td><td>The size of the returned blob. May be <code>nullptr</code> if not required.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>A pointer to a self-relative <code>SECURITY_DESCRIPTOR</code>. Ownership is not transferred to the caller. </dd></dl>
<p>The <code>main()</code> of the <code>crashpad_handler</code> binary. </p>
<p>This is exposed so that <code>crashpad_handler</code> can be embedded into another binary, but called and used as if it were a standalone executable. </p>
<p>Converts a <code>HANDLE</code> to an <code>int</code>. </p>
<p><code>HANDLE</code> is a <code>typedef</code> for <code>void *</code>, but kernel <code>HANDLE</code> values aren’t pointers to anything. Only 32 bits of kernel <code>HANDLE</code>s are significant, even in 64-bit processes on 64-bit operating systems. See <ahref="https://msdn.microsoft.com/en-us/library/windows/desktop/aa384203">Interprocess Communication Between 32-bit and 64-bit Applications</a>.</p>
<p>This function safely converts a kernel <code>HANDLE</code> to an <code>int</code> similarly to a cast operation. It checks that the operation can be performed safely, and aborts execution if it cannot.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">handle</td><td>The kernel <code>HANDLE</code> to convert.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>An equivalent <code>int</code>, truncated (if necessary) from <em>handle</em>. If truncation would have resulted in an <code>int</code> that could not be converted back to <em>handle</em>, aborts execution.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#a83df06f1e4dc470676c1f86e93b6bc63"title="Converts an int to an HANDLE. ">IntToHandle()</a></dd></dl>
<p>Equivalent to <code>InitializeCritialSection()</code>, but attempts to allocate with a valid <code>.DebugInfo</code> field on versions of Windows where it's possible to do so. </p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, or <code>false</code> on failure with a message logged. Success means that the critical section was successfully initialized, but it does not necessarily have a valid <code>.DebugInfo</code> field. </dd></dl>
<p>Casts to a different type if it can be done without data loss, logging a warning message and returing a default value otherwise. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">source</td><td>The value to convert and return. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">default_value</td><td>The default value to return, in the event that <em>source</em> cannot be represented in the destination type.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><em>source</em> if it can be represented in the destination type, otherwise <em>default_value</em>. </dd></dl>
<p>Converts an <code>int</code> to an <code>HANDLE</code>. </p>
<p><code>HANDLE</code> is a <code>typedef</code> for <code>void *</code>, but kernel <code>HANDLE</code> values aren’t pointers to anything. Only 32 bits of kernel <code>HANDLE</code>s are significant, even in 64-bit processes on 64-bit operating systems. See <ahref="https://msdn.microsoft.com/en-us/library/windows/desktop/aa384203">Interprocess Communication Between 32-bit and 64-bit Applications</a>.</p>
<p>This function safely convert an <code>int</code> to a kernel <code>HANDLE</code> similarly to a cast operation.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">handle_int</td><td>The <code>int</code> to convert. This must have been produced by <aclass="el"href="namespacecrashpad.html#ae643b5c6bce4e11a0f51eb2f4d5fa1de"title="Converts a HANDLE to an int. ">HandleToInt()</a>, possibly in a different process.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>An equivalent kernel <code>HANDLE</code>, sign-extended (if necessary) from <em>handle_int</em>.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#ae643b5c6bce4e11a0f51eb2f4d5fa1de"title="Converts a HANDLE to an int. ">HandleToInt()</a></dd></dl>
<p>Determines whether an exception is a non-fatal <code>EXC_RESOURCE</code>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">exception</td><td>The exception type as received by a Mach exception handler. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">code_0</td><td>The first exception code (<code>code[0]</code>) as received by a Mach exception handler. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">pid</td><td>The process ID that the exception occurred in. In some cases, process may need to be queried to determine whether an <code>EXC_RESOURCE</code> exception is fatal.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if the exception is a non-fatal <code>EXC_RESOURCE</code>. <code>false</code> otherwise. If the exception is <code>EXC_RESOURCE</code> of a recognized type but it is not possible to determine whether it is fatal, returns <code>true</code> under the assumption that all known <code>EXC_RESOURCE</code> exceptions are non-fatal by default. If the exception is not <code>EXC_RESOURCE</code> or is an unknown <code>EXC_RESOURCE</code> type, returns <code>false</code>. </dd></dl>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>The OS X 10.10 SDK deprecates <code><launch.h></code>, although the functionality it provides is still useful. These wrappers allow the deprecated functions to be called without triggering deprecated-declaration warnings. </p>
<p>Wraps <code>close()</code> or <code>CloseHandle()</code>, logging an error if the operation fails. </p>
<dlclass="section return"><dt>Returns</dt><dd>On success, <code>true</code> is returned. On failure, an error is logged and <code>false</code> is returned. </dd></dl>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">file</td><td>The handle to the file for which the size should be retrived.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The size of the file. If an error occurs when attempting to determine its size, returns <code>-1</code> with an error logged. </dd></dl>
<p>Locks the given <em>file</em> using <code>flock()</code> on POSIX or <code>LockFileEx()</code> on Windows. </p>
<p>It is an error to attempt to lock a file in a different mode when it is already locked. This call will block until the lock is acquired. The entire file is locked.</p>
<p>If <em>locking</em> is <aclass="el"href="namespacecrashpad.html#a3753a95b02e5c96c6e20017e467cef07a767e1337acb2aa20d7ce4e903a75ca16"title="Equivalent to flock() with LOCK_SH. ">FileLocking::kShared</a>, <em>file</em> must have been opened for reading, and if it's <aclass="el"href="namespacecrashpad.html#a3753a95b02e5c96c6e20017e467cef07a9d38b79e17ebc3239ca19ba517174b5b"title="Equivalent to flock() with LOCK_EX. ">FileLocking::kExclusive</a>, <em>file</em> must have been opened for writing.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">file</td><td>The open file handle to be locked. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">locking</td><td>Controls whether the lock is a shared reader lock, or an exclusive writer lock.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, or <code>false</code> and a message will be logged. </dd></dl>
<p>Wraps <aclass="el"href="namespacecrashpad.html#a7987df05e1260e6d8d93ee3a21e9b0eb"title="Wraps open() or CreateFile(), opening an existing file for reading. ">OpenFileForRead()</a>, logging an error if the operation fails. </p>
<dlclass="section return"><dt>Returns</dt><dd>The newly opened FileHandle, or an invalid FileHandle on failure.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#a9daa1b956487883acd9f43d13cc77339"title="Scoped wrapper of a FileHandle. ">ScopedFileHandle</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#a62fc6876cc0c660f0ea8bd1dd0a07e82"title="Wraps OpenFileForWrite(), logging an error if the operation fails. ">LoggingOpenFileForWrite</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#aab3e964bdba04aaf74e7a27a36efe108"title="Wraps OpenFileForReadAndWrite(), logging an error if the operation fails. ">LoggingOpenFileForReadAndWrite</a></dd></dl>
<p>Wraps <aclass="el"href="namespacecrashpad.html#abe6238b18be49921772c14dd25a624de"title="Wraps open() or CreateFile(), creating a file for both input and output. ">OpenFileForReadAndWrite()</a>, logging an error if the operation fails. </p>
<dlclass="section return"><dt>Returns</dt><dd>The newly opened FileHandle, or an invalid FileHandle on failure.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#a9daa1b956487883acd9f43d13cc77339"title="Scoped wrapper of a FileHandle. ">ScopedFileHandle</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#ab3712d59104f641109b170c78a912b4d"title="Wraps OpenFileForRead(), logging an error if the operation fails. ">LoggingOpenFileForRead</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#a62fc6876cc0c660f0ea8bd1dd0a07e82"title="Wraps OpenFileForWrite(), logging an error if the operation fails. ">LoggingOpenFileForWrite</a></dd></dl>
<p>Wraps <aclass="el"href="namespacecrashpad.html#ad8e8848af82384f7757108c8c445f18d"title="Wraps open() or CreateFile(), creating a file for output. ">OpenFileForWrite()</a>, logging an error if the operation fails. </p>
<dlclass="section return"><dt>Returns</dt><dd>The newly opened FileHandle, or an invalid FileHandle on failure.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#a9daa1b956487883acd9f43d13cc77339"title="Scoped wrapper of a FileHandle. ">ScopedFileHandle</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#ab3712d59104f641109b170c78a912b4d"title="Wraps OpenFileForRead(), logging an error if the operation fails. ">LoggingOpenFileForRead</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#aab3e964bdba04aaf74e7a27a36efe108"title="Wraps OpenFileForReadAndWrite(), logging an error if the operation fails. ">LoggingOpenFileForReadAndWrite</a></dd></dl>
<p>Wraps <aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile()</a>, ensuring that exactly <em>size</em> bytes are read. </p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success. If <em>size</em> is out of the range of possible <aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile()</a> return values, if the underlying <aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile()</a> fails, or if other than <em>size</em> bytes were read, this function logs a message and returns <code>false</code>.</dd></dl>
<aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile</a></dd>
<aclass="el"href="namespacecrashpad.html#aee611c7116746b846a3cf79e65619f4d"title="Wraps ReadFile(), ensuring that exactly size bytes are read. ">CheckedReadFile</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#ac8e7e1b1a4b89b489964ffee54d0d9df"title="Wraps ReadFile(), ensuring that it indicates end-of-file. ">CheckedReadFileAtEOF</a></dd></dl>
<p>Wraps <code>lseek()</code> or <code>SetFilePointerEx()</code>. Logs an error if the operation fails. </p>
<p>Repositions the offset of the open <em>file</em> to the specified <em>offset</em>, relative to <em>whence</em>. <em>whence</em> must be one of <code>SEEK_SET</code>, <code>SEEK_CUR</code>, or <code>SEEK_END</code>, and is interpreted in the usual way.</p>
<dlclass="section return"><dt>Returns</dt><dd>The resulting offset in bytes from the beginning of the file, or <code>-1</code> on failure. </dd></dl>
<p>Unlocks a file previously locked with <aclass="el"href="namespacecrashpad.html#acd02263566d8c43fc7886f88a13b364f"title="Locks the given file using flock() on POSIX or LockFileEx() on Windows. ">LoggingLockFile()</a>. </p>
<p>It is an error to attempt to unlock a file that was not previously locked. A previously-locked file should be unlocked before closing the file handle, otherwise on some OSs the lock may not be released immediately.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">file</td><td>The open locked file handle to be unlocked.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, or <code>false</code> and a message will be logged. </dd></dl>
<p>Wraps <aclass="el"href="namespacecrashpad.html#ab9dded3137add283f6cf32facb86641a"title="Writes to a file, retrying when interrupted or following a short write on POSIX. ">WriteFile()</a>, ensuring that exactly <em>size</em> bytes are written. </p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success. If <em>size</em> is out of the range of possible <aclass="el"href="namespacecrashpad.html#ab9dded3137add283f6cf32facb86641a"title="Writes to a file, retrying when interrupted or following a short write on POSIX. ">WriteFile()</a> return values, if the underlying <aclass="el"href="namespacecrashpad.html#ab9dded3137add283f6cf32facb86641a"title="Writes to a file, retrying when interrupted or following a short write on POSIX. ">WriteFile()</a> fails, or if other than <em>size</em> bytes were written, this function logs a message and returns <code>false</code>.</dd></dl>
<aclass="el"href="namespacecrashpad.html#ab9dded3137add283f6cf32facb86641a"title="Writes to a file, retrying when interrupted or following a short write on POSIX. ">WriteFile</a></dd>
<aclass="el"href="namespacecrashpad.html#a74c74fefa3b1f5e0c1b885755c9f9cf6"title="Wraps WriteFile(), ensuring that exactly size bytes are written. ">CheckedWriteFile</a></dd></dl>
<p>Computes the deadline for a specified timeout value. </p>
<p>While deadlines exist on an absolute time scale, timeouts are relative. This function calculates the deadline as <em>timeout_ms</em> milliseconds after it executes.</p>
<p>If <em>timeout_ms</em> is <aclass="el"href="namespacecrashpad.html#a124c0056f68c3859092b317f486fae9ca6461bf9de012b5f2305fb3da6d0f82d5"title="MachMessageWithDeadline() should not block at all in its operation. ">kMachMessageDeadlineNonblocking</a>, this function will return <aclass="el"href="namespacecrashpad.html#a124c0056f68c3859092b317f486fae9ca6461bf9de012b5f2305fb3da6d0f82d5"title="MachMessageWithDeadline() should not block at all in its operation. ">kMachMessageDeadlineNonblocking</a>. If <em>timeout_ms</em> is <aclass="el"href="namespacecrashpad.html#a0720c6dd92c22f4946aeeb17d638f5abaaf4f2c8a649ea6bcfe896e77c312315f"title="When passed to MachMessageDeadlineFromTimeout(), that function will return kMachMessageDeadlineWaitIn...">kMachMessageTimeoutWaitIndefinitely</a>, this function will return <aclass="el"href="namespacecrashpad.html#a124c0056f68c3859092b317f486fae9ca848a739b3c252f4565161a6bd3f070d6"title="MachMessageWithDeadline() should wait indefinitely for the requested operation to complete...">kMachMessageDeadlineWaitIndefinitely</a>. </p>
<p>Destroys or deallocates a Mach port received in a Mach message. </p>
<p>This function disposes of port rights received in a Mach message. Receive rights will be destroyed with <code>mach_port_mod_refs()</code>. Send and send-once rights will be deallocated with <code>mach_port_deallocate()</code>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">port</td><td>The port to destroy or deallocate. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">port_right_type</td><td>The right type held for <em>port:</em><code>MACH_MSG_TYPE_PORT_RECEIVE</code>, <code>MACH_MSG_TYPE_PORT_SEND</code>, or <code>MACH_MSG_TYPE_PORT_SEND_ONCE</code>.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, or <code>false</code> on failure with a message logged. </dd></dl>
<p>Returns a Mach message trailer for a message that has been received. </p>
<p>This function must only be called on Mach messages that have been received via the Mach messaging interface, such as <code>mach_msg()</code>. Messages constructed for sending do not contain trailers.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">header</td><td>A pointer to a received Mach message.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>A pointer to the trailer following the received Mach message’s body. The contents of the trailer depend on the options provided to <code>mach_msg()</code> or a similar function when the message was received. </dd></dl>
<p>Runs <code>mach_msg()</code> with a deadline, as opposed to a timeout. </p>
<p>This function is similar to <code>mach_msg()</code>, with the following differences:</p><ul>
<li>The <code>timeout</code> parameter has been replaced by <em>deadline</em>. The deadline applies uniformly to a call that is requested to both send and receive a message.</li>
<li>The <code>MACH_SEND_TIMEOUT</code> and <code>MACH_RCV_TIMEOUT</code> bits in <em>options</em> are not used. Timeouts are specified by the <em>deadline</em> argument.</li>
<li>The <code>send_size</code> parameter has been removed. Its value is implied by <em>message</em> when <em>options</em> contains <code>MACH_SEND_MSG</code>.</li>
<li>The <em>run_even_if_expired</em> parameter has been added.</li>
</ul>
<p>Like the <code>mach_msg()</code> wrapper in <code>libsyscall</code>, this function will retry operations when experiencing <code>MACH_SEND_INTERRUPTED</code> and <code>MACH_RCV_INTERRUPTED</code>, unless <em>options</em> contains <code>MACH_SEND_INTERRUPT</code> or <code>MACH_RCV_INTERRUPT</code>. Unlike <code>mach_msg()</code>, which restarts the call with the full timeout when this occurs, this function continues enforcing the user-specified <em>deadline</em>.</p>
<p>Except as noted, the parameters and return value are identical to those of <code>mach_msg()</code>.</p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">deadline</td><td>The time by which this call should complete. If the deadline is exceeded, this call will return <code>MACH_SEND_TIMED_OUT</code> or <code>MACH_RCV_TIMED_OUT</code>. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">run_even_if_expired</td><td>If <code>true</code>, a deadline that is expired when this function is called will be treated as though a deadline of <aclass="el"href="namespacecrashpad.html#a124c0056f68c3859092b317f486fae9ca6461bf9de012b5f2305fb3da6d0f82d5"title="MachMessageWithDeadline() should not block at all in its operation. ">kMachMessageDeadlineNonblocking</a> had been specified. When <code>false</code>, an expired deadline will result in a <code>MACH_SEND_TIMED_OUT</code> or <code>MACH_RCV_TIMED_OUT</code> return value, even if the deadline is already expired when the function is called.</td></tr>
<p>Like <code>mach_thread_self()</code>, but without the obligation to release the send right. </p>
<p><code>mach_thread_self()</code> returns a send right to the current thread port, incrementing its reference count. This burdens the caller with maintaining this send right, and calling <code>mach_port_deallocate()</code> when it is no longer needed. This is burdensome, and is at odds with the normal operation of <code>mach_task_self()</code>, which does not increment the task port’s reference count whose result must not be deallocated.</p>
<p>Callers can use this function in preference to <code>mach_thread_self()</code>. This function returns an extant reference to the current thread’s port without incrementing its reference count.</p>
<dlclass="section return"><dt>Returns</dt><dd>The value of <code>mach_thread_self()</code> without incrementing its reference count. The returned port must not be deallocated by <code>mach_port_deallocate()</code>. The returned value is valid as long as the thread continues to exist as a <code>pthread_t</code>. </dd></dl>
<p>Returns the model name and board ID of the running system. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">model</td><td>The system’s model name. A mid-2012 15" MacBook Pro would report “MacBookPro10,1”. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">board_id</td><td>The system’s board ID. A mid-2012 15" MacBook Pro would report “Mac-C3EC7CD22292981F”.</td></tr>
</table>
</dd>
</dl>
<p>If a value cannot be determined, its string is cleared. </p>
<dlclass="section note"><dt>Note</dt><dd>This is similar to the base::mac::IsOS*() family of functions, but is provided for situations where the caller needs to obtain version information beyond what is provided by Chromium’s base, or for when the caller needs the actual minor version value. </dd></dl>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">major</td><td>The major version of the operating system, such as <code>10</code> for macOS 10.12.1. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">minor</td><td>The major version of the operating system, such as <code>12</code> for macOS 10.12.1. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">bugfix</td><td>The bugfix version of the operating system, such as <code>1</code> for macOS 10.12.1. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">build</td><td>The operating system’s build string, such as <code>"16B2657"</code> for macOS 10.12.1. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">server</td><td><code>true</code> for a macOS Server installation, <code>false</code> otherwise (for a desktop/laptop, client, or workstation system). </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">version_string</td><td>A string representing the full operating system version, such as <code>"macOS 10.12.1 (16B2657)"</code>.</td></tr>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, <code>false</code> on failure, with an error message logged. A failure is considered to have occurred if any element could not be determined. When this happens, their values will be untouched, but other values that could be determined will still be set properly. </dd></dl>
<p>Inserts a mapping from <em>key</em> to <em>value</em> into <em>map</em>, or replaces an existing mapping so that <em>key</em> maps to <em>value</em>. </p>
<p>This behaves similarly to <code>std::map<>::insert_or_assign()</code> proposed for C++17, except that the <em>old_value</em> parameter is added.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in,out]</td><tdclass="paramname">map</td><td>The map to operate on. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">key</td><td>The key that should be mapped to <em>value</em>. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">value</td><td>The value that <em>key</em> should map to. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">old_value</td><td>If <em>key</em> was previously present in <em>map</em>, this will be set to its previous value. This parameter is optional and may be <code>nullptr</code> if this information is not required.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>false</code> if <em>key</em> was previously present in <em>map</em>. If <em>old_value</em> is not <code>nullptr</code>, it will be set to the previous value. <code>true</code> if <em>key</em> was not present in the map and was inserted. </dd></dl>
<p>Wraps <code>open()</code> or <code>CreateFile()</code>, opening an existing file for reading. </p>
<dlclass="section return"><dt>Returns</dt><dd>The newly opened FileHandle, or an invalid FileHandle on failure.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#a9daa1b956487883acd9f43d13cc77339"title="Scoped wrapper of a FileHandle. ">ScopedFileHandle</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#ad8e8848af82384f7757108c8c445f18d"title="Wraps open() or CreateFile(), creating a file for output. ">OpenFileForWrite</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#abe6238b18be49921772c14dd25a624de"title="Wraps open() or CreateFile(), creating a file for both input and output. ">OpenFileForReadAndWrite</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#ab3712d59104f641109b170c78a912b4d"title="Wraps OpenFileForRead(), logging an error if the operation fails. ">LoggingOpenFileForRead</a></dd></dl>
<p>Wraps <code>open()</code> or <code>CreateFile()</code>, creating a file for both input and output. </p>
<p><em>mode</em> determines the style (truncate, reuse, etc.) that is used to open the file. On POSIX, <em>permissions</em> determines the value that is passed as <code>mode</code> to <code>open()</code>. On Windows, the file is always opened in binary mode (that is, no CRLF translation). On Windows, the file is opened for sharing, see <aclass="el"href="namespacecrashpad.html#acd02263566d8c43fc7886f88a13b364f"title="Locks the given file using flock() on POSIX or LockFileEx() on Windows. ">LoggingLockFile()</a> and <aclass="el"href="namespacecrashpad.html#a15c1f3a2c6f04e944fdca12e22b0cb6e"title="Unlocks a file previously locked with LoggingLockFile(). ">LoggingUnlockFile()</a> to control concurrent access.</p>
<dlclass="section return"><dt>Returns</dt><dd>The newly opened FileHandle, or an invalid FileHandle on failure.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#a9daa1b956487883acd9f43d13cc77339"title="Scoped wrapper of a FileHandle. ">ScopedFileHandle</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#a7987df05e1260e6d8d93ee3a21e9b0eb"title="Wraps open() or CreateFile(), opening an existing file for reading. ">OpenFileForRead</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#ad8e8848af82384f7757108c8c445f18d"title="Wraps open() or CreateFile(), creating a file for output. ">OpenFileForWrite</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#aab3e964bdba04aaf74e7a27a36efe108"title="Wraps OpenFileForReadAndWrite(), logging an error if the operation fails. ">LoggingOpenFileForReadAndWrite</a></dd></dl>
<p>Wraps <code>open()</code> or <code>CreateFile()</code>, creating a file for output. </p>
<p><em>mode</em> determines the style (truncate, reuse, etc.) that is used to open the file. On POSIX, <em>permissions</em> determines the value that is passed as <code>mode</code> to <code>open()</code>. On Windows, the file is always opened in binary mode (that is, no CRLF translation). On Windows, the file is opened for sharing, see <aclass="el"href="namespacecrashpad.html#acd02263566d8c43fc7886f88a13b364f"title="Locks the given file using flock() on POSIX or LockFileEx() on Windows. ">LoggingLockFile()</a> and <aclass="el"href="namespacecrashpad.html#a15c1f3a2c6f04e944fdca12e22b0cb6e"title="Unlocks a file previously locked with LoggingLockFile(). ">LoggingUnlockFile()</a> to control concurrent access.</p>
<dlclass="section return"><dt>Returns</dt><dd>The newly opened FileHandle, or an invalid FileHandle on failure.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#a9daa1b956487883acd9f43d13cc77339"title="Scoped wrapper of a FileHandle. ">ScopedFileHandle</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#a7987df05e1260e6d8d93ee3a21e9b0eb"title="Wraps open() or CreateFile(), opening an existing file for reading. ">OpenFileForRead</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#abe6238b18be49921772c14dd25a624de"title="Wraps open() or CreateFile(), creating a file for both input and output. ">OpenFileForReadAndWrite</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#a62fc6876cc0c660f0ea8bd1dd0a07e82"title="Wraps OpenFileForWrite(), logging an error if the operation fails. ">LoggingOpenFileForWrite</a></dd></dl>
<p>Initializes a reply message for a MIG server routine based on its corresponding request. </p>
<p>If a request is handled by a server routine, it may be necessary to revise some of the fields set by this function, such as <code>msgh_size</code> and any fields defined in a routine’s reply structure type.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">in_header</td><td>The request message to base the reply on. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">out_header</td><td>The reply message to initialize. <em>out_header</em> will be treated as a <code>mig_reply_error_t*</code> and all of its fields will be set except for <code>RetCode</code>, which must be set by <aclass="el"href="namespacecrashpad.html#aa023691aedd4f3e6faa923e8d2095947"title="Sets the error code in a reply message for a MIG server routine. ">SetMIGReplyError()</a>. This argument is accepted as a <code>mach_msg_header_t*</code> instead of a <code>mig_reply_error_t*</code> because that is the type that callers are expected to possess in the C API. </td></tr>
<p>Deletes crash reports from <em>database</em> that match <em>condition</em>. </p>
<p>This function can be used to remove old or large reports from the database. The <em>condition</em> will be evaluated against each report in the <em>database</em>, sorted in descending order by <aclass="el"href="structcrashpad_1_1CrashReportDatabase_1_1Report.html#a8011cd1a4b4fcd84ecbc21e5c5fd80b8"title="The time at which the report was generated. ">CrashReportDatabase::Report::creation_time</a>. This guarantee allows conditions to be stateful.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">database</td><td>The database from which crash reports will be deleted. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">condition</td><td>The condition against which all reports in the database will be evaluated. </td></tr>
<p>The string consists of 16 uppercase characters chosen at random. The returned string has over 75 bits of randomness (26<sup>16</sup>> 2<sup>75</sup>). </p>
<p>Reads from a file, retrying when interrupted on POSIX or following a short read. </p>
<p>This function reads into <em>buffer</em>, stopping only when <em>size</em> bytes have been read or when end-of-file has been reached. On Windows, reading from sockets is not currently supported.</p>
<dlclass="section return"><dt>Returns</dt><dd>The number of bytes read and placed into <em>buffer</em>, or <code>-1</code> on error, with <code>errno</code> or <code>GetLastError()</code> set appropriately. On error, a portion of <em>file</em> may have been read into <em>buffer</em>.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#ab9dded3137add283f6cf32facb86641a"title="Writes to a file, retrying when interrupted or following a short write on POSIX. ">WriteFile</a></dd>
<aclass="el"href="namespacecrashpad.html#abd2a51526c1f15e3f21a962457cbc53a"title="Wraps ReadFile(), ensuring that exactly size bytes are read. ">LoggingReadFile</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#aee611c7116746b846a3cf79e65619f4d"title="Wraps ReadFile(), ensuring that exactly size bytes are read. ">CheckedReadFile</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#ac8e7e1b1a4b89b489964ffee54d0d9df"title="Wraps ReadFile(), ensuring that it indicates end-of-file. ">CheckedReadFileAtEOF</a></dd></dl>
<p>Reads the module annotations from another process. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">process</td><td>The handle to the process that hosts the <em>module</em>. Requires PROCESS_QUERY_INFORMATION and PROCESS_VM_READ accesses. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">module</td><td>The handle to the module from which the <em>annotations</em> will be read. This module should be loaded in the target process. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">annotations</td><td>The map that will be filled with the annotations. Remains unchanged if the function returns 'false'.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if the annotations could be read succesfully, even if the module doesn't contain any annotations. </dd></dl>
This function is provided because <code>SMJobCopyDictionary()</code> is deprecated in OS X 10.10. It may or may not be implemented using <code>SMJobCopyDictionary()</code> from <code>ServiceManagement.framework</code>. </dd></dl>
<dlclass="section note"><dt>Note</dt><dd>This function is provided because <code>SMJobCopyDictionary()</code> is deprecated in OS X 10.10. It may or may not be implemented using <code>SMJobCopyDictionary()</code> from <code>ServiceManagement.framework</code>. </dd></dl>
<p>Removes a job from the user launchd domain as in <code>SMJobRemove()</code>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">label</td><td>The label for the job to remove. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">wait</td><td><code>true</code> if this function should block, waiting for the job to be removed. <code>false</code> if the job may be removed asynchronously.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if the job was removed successfully or if an asynchronous attempt to remove the job was started successfully, otherwise <code>false</code>.</dd></dl>
<dlclass="section note"><dt>Note</dt><dd>This function is provided because <code>SMJobRemove()</code> is deprecated in OS X 10.10. On OS X 10.10, observed in DP8 14A361c, it also blocks for far too long (<code>_block_until_job_exits()</code> contains a one-second <code>sleep()</code>, filed as radar 18398683) and does not signal failure via its return value when asked to remove a nonexistent job (filed as radar 18268941). </dd></dl>
<dlclass="section note"><dt>Note</dt><dd>This function is provided because <code>SMJobSubmit()</code> is deprecated in OS X 10.10. It may or may not be implemented using <code>SMJobSubmit()</code> from <code>ServiceManagement.framework</code>. </dd></dl>
<p>Sets the error code in a reply message for a MIG server routine. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in,out]</td><tdclass="paramname">out_header</td><td>The reply message to operate on. <em>out_header</em> will be treated as a <code>mig_reply_error_t*</code> and its <code>RetCode</code> field will be set. This argument is accepted as a <code>mach_msg_header_t*</code> instead of a <code>mig_reply_error_t*</code> because that is the type that callers are expected to possess in the C API. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">error</td><td>The error code to store in <em>out_header</em>.</td></tr>
</table>
</dd>
</dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#a2274adc0459f68b93ffe51d8f975f14e"title="Initializes a reply message for a MIG server routine based on its corresponding request. ">PrepareMIGReplyFromRequest()</a></dd></dl>
<p>Converts a POSIX signal value to a textual representation. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">signal</td><td>The signal value to convert. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">options</td><td>Options affecting the conversion. <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105eda18aa149c3471a5129274df2af6972f04"title="Use | to combine values in a bitfield. ">kUseOr</a> is ignored. For <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105edaf9da07820c9857c86422b70c3cc33c12"title="If no symbolic name is known for a given constant, return a numeric string. ">kUnknownIsNumeric</a>, the format is <code>"%d"</code>.</td></tr>
<p>This function searches for an <code>EXC_CRASH</code> handler in the same manner that the kernel does, and sends it an exception message to that handler in the format that the handler expects, considering the behavior and thread state flavor that are registered for it. The exception sent to the handler will be <aclass="el"href="namespacecrashpad.html#ad22bbde846a82173474ba002116c325c"title="An exception type to use for simulated exceptions. ">kMachExceptionSimulated</a>, not <code>EXC_CRASH</code>.</p>
<p>Typically, the <aclass="el"href="simulate__crash__mac_8h.html#a0ac6f4df5ed356f04dd12be3f07f9ed2"title="Captures the CPU context and simulates an exception without crashing. ">CRASHPAD_SIMULATE_CRASH()</a> macro will be used in preference to this function, because it combines the context-capture operation with the raising of a simulated exception.</p>
<p>This function returns normally after the exception message is processed. If no valid handler was found, or no handler processed the exception successfully, a warning will be logged, but these conditions are not considered fatal.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">cpu_context</td><td>The thread state to pass to the exception handler as the exception context, provided that it is compatible with the thread state flavor that the exception handler accepts. If it is not compatible, the correct thread state for the handler will be obtained by calling <code>thread_get_state()</code>. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">nanoseconds</td><td>The number of nanoseconds to sleep. The actual sleep may be slightly longer due to latencies and timer resolution.</td></tr>
</table>
</dd>
</dl>
<p>This function is resilient against the underlying <code>nanosleep()</code> system call being interrupted by a signal. </p>
<p>Splits a string into two parts at the first delimiter found. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">string</td><td>The string to split. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">delimiter</td><td>The delimiter to split at. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">left</td><td>The portion of <em>string</em> up to, but not including, the first <em>delimiter</em> character. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">right</td><td>The portion of <em>string</em> after the first <em>delimiter</em> character.</td></tr>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if <em>string</em> was split successfully. <code>false</code> if <em>string</em> did not contain a <em>delimiter</em> character or began with a <em>delimiter</em> character. </dd></dl>
<p>Converts a string to its corresponding Mach exception value. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">string</td><td>The string to convert. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">options</td><td>Options affecting the conversion. <aclass="el"href="namespacecrashpad.html#a8387ad067a7e6a1735ab97a1af450d2ba060cbf403d47785a69b249e9c562f410"title="Allow | to combine values in a bitfield. ">kAllowOr</a> is ignored. </td></tr>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, <code>false</code> if <em>string</em> could not be converted as requested. </dd></dl>
<p>Converts a string to its corresponding Mach exception behavior value. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">string</td><td>The string to convert. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">options</td><td>Options affecting the conversion. <aclass="el"href="namespacecrashpad.html#a8387ad067a7e6a1735ab97a1af450d2ba060cbf403d47785a69b249e9c562f410"title="Allow | to combine values in a bitfield. ">kAllowOr</a> is ignored. <code>MACH_EXCEPTION_CODES</code> can always be ORed in, but no other values can be ORed with each other. </td></tr>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, <code>false</code> if <em>string</em> could not be converted as requested. </dd></dl>
<p>Converts a string to its corresponding Mach exception mask value. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">string</td><td>The string to convert. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">options</td><td>Options affecting the conversion. <aclass="el"href="namespacecrashpad.html#a8387ad067a7e6a1735ab97a1af450d2ba060cbf403d47785a69b249e9c562f410"title="Allow | to combine values in a bitfield. ">kAllowOr</a> is honored. </td></tr>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, <code>false</code> if <em>string</em> could not be converted as requested. </dd></dl>
<p>A conversion will only be performed if it can be done perfectly: if <em>string</em> contains no leading or trailing characters (including whitespace) other than the number to convert, and does not overflow the targeted data type.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">string</td><td>The string to convert to a number. As in <code>strtol()</code> with a <code>base</code> parameter of <code>0</code>, the string is treated as decimal unless it begins with a <code>"0x"</code> or <code>"0X"</code> prefix, in which case it is treated as hexadecimal, or a <code>"0"</code> prefix, in which case it is treated as octal. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">number</td><td>The converted number. This will only be set if a perfect conversion can be performed.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if a perfect conversion could be performed, with <em>number</em> set appropriately. <code>false</code> if a perfect conversion was not possible.</dd></dl>
<dlclass="section note"><dt>Note</dt><dd>The interface in <code>base/strings/string_number_conversions.h</code> doesn’t allow arbitrary bases based on whether the string begins with a prefix indicating its base. The functions here are provided for situations where such prefix recognition is desirable. </dd></dl>
<p>A conversion will only be performed if it can be done perfectly: if <em>string</em> contains no leading or trailing characters (including whitespace) other than the number to convert, and does not overflow the targeted data type.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">string</td><td>The string to convert to a number. As in <code>strtol()</code> with a <code>base</code> parameter of <code>0</code>, the string is treated as decimal unless it begins with a <code>"0x"</code> or <code>"0X"</code> prefix, in which case it is treated as hexadecimal, or a <code>"0"</code> prefix, in which case it is treated as octal. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">number</td><td>The converted number. This will only be set if a perfect conversion can be performed.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if a perfect conversion could be performed, with <em>number</em> set appropriately. <code>false</code> if a perfect conversion was not possible.</dd></dl>
<dlclass="section note"><dt>Note</dt><dd>The interface in <code>base/strings/string_number_conversions.h</code> doesn’t allow arbitrary bases based on whether the string begins with a prefix indicating its base. The functions here are provided for situations where such prefix recognition is desirable. </dd></dl>
<p>A conversion will only be performed if it can be done perfectly: if <em>string</em> contains no leading or trailing characters (including whitespace) other than the number to convert, and does not overflow the targeted data type.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">string</td><td>The string to convert to a number. As in <code>strtol()</code> with a <code>base</code> parameter of <code>0</code>, the string is treated as decimal unless it begins with a <code>"0x"</code> or <code>"0X"</code> prefix, in which case it is treated as hexadecimal, or a <code>"0"</code> prefix, in which case it is treated as octal. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">number</td><td>The converted number. This will only be set if a perfect conversion can be performed.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if a perfect conversion could be performed, with <em>number</em> set appropriately. <code>false</code> if a perfect conversion was not possible.</dd></dl>
<dlclass="section note"><dt>Note</dt><dd>The interface in <code>base/strings/string_number_conversions.h</code> doesn’t allow arbitrary bases based on whether the string begins with a prefix indicating its base. The functions here are provided for situations where such prefix recognition is desirable. </dd></dl>
<p>A conversion will only be performed if it can be done perfectly: if <em>string</em> contains no leading or trailing characters (including whitespace) other than the number to convert, and does not overflow the targeted data type.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">string</td><td>The string to convert to a number. As in <code>strtol()</code> with a <code>base</code> parameter of <code>0</code>, the string is treated as decimal unless it begins with a <code>"0x"</code> or <code>"0X"</code> prefix, in which case it is treated as hexadecimal, or a <code>"0"</code> prefix, in which case it is treated as octal. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">number</td><td>The converted number. This will only be set if a perfect conversion can be performed.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if a perfect conversion could be performed, with <em>number</em> set appropriately. <code>false</code> if a perfect conversion was not possible.</dd></dl>
<dlclass="section note"><dt>Note</dt><dd>The interface in <code>base/strings/string_number_conversions.h</code> doesn’t allow arbitrary bases based on whether the string begins with a prefix indicating its base. The functions here are provided for situations where such prefix recognition is desirable. </dd></dl>
<p>Converts a string to its corresponding POSIX signal value. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">string</td><td>The string to convert. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">options</td><td>Options affecting the conversion. <aclass="el"href="namespacecrashpad.html#a8387ad067a7e6a1735ab97a1af450d2ba060cbf403d47785a69b249e9c562f410"title="Allow | to combine values in a bitfield. ">kAllowOr</a> is ignored. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">signal</td><td>The converted POSIX signal value.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, <code>false</code> if <em>string</em> could not be converted as requested. </dd></dl>
<p>Converts a string to its corresponding thread state flavor value. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">string</td><td>The string to convert. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">options</td><td>Options affecting the conversion. <aclass="el"href="namespacecrashpad.html#a8387ad067a7e6a1735ab97a1af450d2ba060cbf403d47785a69b249e9c562f410"title="Allow | to combine values in a bitfield. ">kAllowOr</a> is ignored. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">flavor</td><td>The converted thread state flavor value.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success, <code>false</code> if <em>string</em> could not be converted as requested. </dd></dl>
<p>Returns the length of a string, not to exceed a maximum. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">string</td><td>The string whose length is to be calculated. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">max_length</td><td>The maximum length to return.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The length of <em>string</em>, determined as the index of the first <code>NUL</code> byte found, not exceeding <em>max_length</em>.</dd></dl>
<dlclass="section note"><dt>Note</dt><dd>This function is provided because it was introduced in POSIX.1-2008, and not all systems’ standard libraries provide an implementation. </dd></dl>
<p>Obtains the system’s default Mach exception handler for crash-type exceptions. </p>
<p>This is obtained by looking up <code>"com.apple.ReportCrash"</code> with the bootstrap server. The service name comes from the first launch agent loaded by <code>launchd</code> with a <code>MachServices</code> entry having <code>ExceptionServer</code> set. This launch agent is normally loaded from <code>/System/Library/LaunchAgents/com.apple.ReportCrash.plist</code>.</p>
<dlclass="section return"><dt>Returns</dt><dd>On success, a send right to an <code>exception_handler_t</code> corresponding to the system’s default crash reporter. On failure, <code>MACH_PORT_NULL</code>, with a message logged. </dd></dl>
<p>This function exists to support <code>task_for_pid()</code> access checks in a setuid environment. Normally, <code>task_for_pid()</code> can only return an arbitrary task’s port when running as root or when taskgated(8) approves. When not running as root, a series of access checks are perfomed to ensure that the running process has permission to obtain the other process’ task port.</p>
<p>It is possible to make an executable setuid root to give it broader <code>task_for_pid()</code> access by bypassing taskgated(8) checks, but this also has the effect of bypassing the access checks, allowing any process’ task port to be obtained. In most situations, these access checks are desirable to prevent security and privacy breaches.</p>
<p>When running as setuid root, this function wraps <code>task_for_pid()</code>, reimplementing those access checks. A process whose effective user ID is 0 and whose real user ID is nonzero is understood to be running setuid root. In this case, the requested task’s real, effective, and saved set-user IDs must all equal the running process’ real user ID, the requested task must not have changed privileges, and the requested task’s set of all group IDs (including its real, effective, and saved set-group IDs and supplementary group list) must be a subset of the running process’ set of all group IDs. These access checks mimic those that the kernel performs.</p>
<p>When not running as setuid root, <code>task_for_pid()</code> is called directly, without imposing any additional checks beyond what the kernel does.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">pid</td><td>The process ID of the task whose task port is desired.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>A send right to the task port if it could be obtained, or <code>TASK_NULL</code> otherwise, with an error message logged. If a send right is returned, the caller takes ownership of it. </dd></dl>
<p>Converts a thread state flavor value to a textual representation. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">flavor</td><td>The thread state flavor value to convert. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">options</td><td>Options affecting the conversion. <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105eda18aa149c3471a5129274df2af6972f04"title="Use | to combine values in a bitfield. ">kUseOr</a> is ignored. For <aclass="el"href="namespacecrashpad.html#a7856b82b71167792ea6103debb5105edaf9da07820c9857c86422b70c3cc33c12"title="If no symbolic name is known for a given constant, return a numeric string. ">kUnknownIsNumeric</a>, the format is <code>"%d"</code>.</td></tr>
<p>Calls the appropriate <code>*exception_raise*()</code> function for the specified <em>behavior</em>. </p>
<p>The function called will be <code>exception_raise()</code> for <code>EXCEPTION_DEFAULT</code>, <code>exception_raise_state()</code> for <code>EXCEPTION_STATE</code>, or <code>exception_raise_state_identity()</code> for <code>EXCEPTION_STATE_IDENTITY</code>. If <code>MACH_EXCEPTION_CODES</code> is also set, the function called will instead be <code>mach_exception_raise()</code>, <code>mach_exception_raise_state()</code> or <code>mach_exception_raise_state_identity()</code>, respectively.</p>
<p>This function does not fetch the existing thread state for <em>behavior</em> values that require a thread state. The caller must provide the existing thread state in the <em>flavor</em>, <em>old_state</em>, and <em>old_state_count</em> parameters for <em>behavior</em> values that require a thread state. <aclass="el"href="classcrashpad_1_1Thread.html"title="Basic thread abstraction. Users should derive from this class and implement ThreadMain(). ">Thread</a> states may be obtained by calling <code>thread_get_state()</code> if needed. Similarly, this function does not do anything with the new thread state returned for these <em>behavior</em> values. Callers that wish to make use of the new thread state may do so by using the returned <em>flavor</em>, <em>new_state</em>, and <em>new_state_count</em> values. <aclass="el"href="classcrashpad_1_1Thread.html"title="Basic thread abstraction. Users should derive from this class and implement ThreadMain(). ">Thread</a> states may be set by calling <code>thread_set_state()</code> if needed.</p>
<p><em>thread</em> and <em>task</em> are only used when <em>behavior</em> indicates that the exception message will carry identity information, when it has the value value <code>EXCEPTION_DEFAULT</code> or <code>EXCEPTION_STATE_IDENTITY</code>, possibly with <code>MACH_EXCEPTION_CODES</code> also set. In other cases, these parameters are unused and may be set to <code>THREAD_NULL</code> and <code>TASK_NULL</code>, respectively.</p>
<p><em>flavor</em>, <em>old_state</em>, <em>old_state_count</em>, <em>new_state</em>, and <em>new_state_count</em> are only used when <em>behavior</em> indicates that the exception message will carry thread state information, when it has the value <code>EXCEPTION_STATE</code> or <code>EXCEPTION_STATE_IDENTITY</code>, possibly with <code>MACH_EXCEPTION_CODES</code> also set. In other cases, these parameters are unused and may be set to <code>0</code> (<em>old_state_count</em>) or <code>nullptr</code> (the remaining parameters).</p>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">behavior</td><td>The exception behavior, which dictates which function will be called. It is an error to call this function with an invalid value for <em>behavior</em>. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">code</td><td>If <em>behavior</em> indicates a behavior without <code>MACH_EXCEPTION_CODES</code>, the elements of <em>code</em> will be truncated in order to be passed to the appropriate exception handler. </td></tr>
<p>Writes to a file, retrying when interrupted or following a short write on POSIX. </p>
<p>This function writes to <em>file</em>, stopping only when <em>size</em> bytes have been written.</p>
<dlclass="section return"><dt>Returns</dt><dd>The number of bytes written from <em>buffer</em>, or <code>-1</code> on error, with <code>errno</code> or <code>GetLastError()</code> set appropriately. On error, a portion of <em>buffer</em> may have been written to <em>file</em>.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="namespacecrashpad.html#a8599600814a17d622766decd5f122a96"title="Reads from a file, retrying when interrupted on POSIX or following a short read. ">ReadFile</a></dd>
<aclass="el"href="namespacecrashpad.html#a8a91af9c690d2a280c463596bf82070b"title="Wraps WriteFile(), ensuring that exactly size bytes are written. ">LoggingWriteFile</a></dd>
<dd>
<aclass="el"href="namespacecrashpad.html#a74c74fefa3b1f5e0c1b885755c9f9cf6"title="Wraps WriteFile(), ensuring that exactly size bytes are written. ">CheckedWriteFile</a></dd></dl>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">file</td><td>The path to the file. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">name</td><td>The name of the extended attribute to write. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">value</td><td>The value of the attribute.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if the write was successful. <code>false</code> on error, with a message logged. </dd></dl>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">file</td><td>The path to the file. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">name</td><td>The name of the extended attribute to write. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">value</td><td>The value of the attribute.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if the write was successful. <code>false</code> on error, with a message logged. </dd></dl>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">file</td><td>The path to the file. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">name</td><td>The name of the extended attribute to write. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">value</td><td>The value of the attribute.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if the write was successful. <code>false</code> on error, with a message logged. </dd></dl>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">file</td><td>The path to the file. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">name</td><td>The name of the extended attribute to write. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">value</td><td>The value of the attribute.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> if the write was successful. <code>false</code> on error, with a message logged. </dd></dl>
<p>Obtain a <em>window_bits</em> parameter to pass to <code>deflateInit2()</code> or <code>inflateInit2()</code> that specifies a <code>gzip</code> wrapper instead of the default zlib wrapper. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">window_bits</td><td>A <em>window_bits</em> value that only specifies the base-2 logarithm of the deflate sliding window size.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><em>window_bits</em> adjusted to specify a <code>gzip</code> wrapper, to be passed to <code>deflateInit2()</code> or <code>inflateInit2()</code>. </dd></dl>
<p><code>MACH_EXCEPTION_CODES</code> with the correct type for a Mach exception behavior, <code>exception_behavior_t</code>. </p>
<p>Signedness problems can occur when ORing <code>MACH_EXCEPTION_CODES</code> as a signed integer, because a signed integer overflow results. This constant can be used instead of <code>MACH_EXCEPTION_CODES</code> in such cases. </p>
<p><code>MACH_PORT_NULL</code> with the correct type for a Mach port, <code>mach_port_t</code>. </p>
<p>For situations where implicit conversions between signed and unsigned types are not performed, use kMachPortNull instead of an explicit <code>implicit_cast</code> of <code>MACH_PORT_NULL</code> to <code>mach_port_t</code>. This is useful for logging and testing assertions. </p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hrclass="footer"/><addressclass="footer"><small>
Generated by  <ahref="http://www.doxygen.org/index.html">