2012-07-03 13:15:34 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* vim:set ts=4 sw=4 sts=4 ci et: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2013-01-10 21:50:16 +00:00
|
|
|
#ifndef MOZPOISONWRITE_H
|
|
|
|
#define MOZPOISONWRITE_H
|
|
|
|
|
2012-07-03 13:15:34 +00:00
|
|
|
#include "mozilla/Types.h"
|
2012-08-10 16:40:21 +00:00
|
|
|
#include <stdio.h>
|
2012-07-03 13:15:34 +00:00
|
|
|
|
|
|
|
MOZ_BEGIN_EXTERN_C
|
|
|
|
void MozillaRegisterDebugFD(int fd);
|
2013-01-10 21:50:16 +00:00
|
|
|
void MozillaRegisterDebugFILE(FILE *f);
|
2012-07-03 13:15:34 +00:00
|
|
|
void MozillaUnRegisterDebugFD(int fd);
|
2012-08-10 16:40:21 +00:00
|
|
|
void MozillaUnRegisterDebugFILE(FILE *f);
|
2012-07-03 13:15:34 +00:00
|
|
|
MOZ_END_EXTERN_C
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
namespace mozilla {
|
2013-02-11 17:05:59 +00:00
|
|
|
enum ShutdownChecksMode {
|
|
|
|
SCM_CRASH,
|
|
|
|
SCM_RECORD,
|
|
|
|
SCM_NOTHING
|
|
|
|
};
|
2013-02-12 19:43:52 +00:00
|
|
|
extern ShutdownChecksMode gShutdownChecks;
|
2013-02-11 17:05:59 +00:00
|
|
|
|
2013-02-13 18:53:21 +00:00
|
|
|
void InitWritePoisoning();
|
2012-07-03 13:15:34 +00:00
|
|
|
void PoisonWrite();
|
|
|
|
void DisableWritePoisoning();
|
2012-10-31 18:18:03 +00:00
|
|
|
void EnableWritePoisoning();
|
2012-07-03 13:15:34 +00:00
|
|
|
}
|
|
|
|
#endif
|
2013-01-10 21:50:16 +00:00
|
|
|
|
|
|
|
#endif
|