xpcom/build/mozPoisonWrite.h
author Mike Hommey <mh+mozilla@glandium.org>
Fri, 12 Apr 2013 10:23:10 +0200
changeset 128569 214cafc09b49f27077aaddfad32fb36f6ad0a890
parent 121776 fd52260363500cae1a4897b78e1d3c7b214fd4e3
child 152265 3cb5ccf394bc4b7b8862c4a809e6a6ecede5deee
permissions -rw-r--r--
Bug 844016 - Move webapprt locale files. r=Pike

/* -*- 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/. */

#ifndef MOZPOISONWRITE_H
#define MOZPOISONWRITE_H

#include "mozilla/Types.h"
#include <stdio.h>

MOZ_BEGIN_EXTERN_C
  void MozillaRegisterDebugFD(int fd);
  void MozillaRegisterDebugFILE(FILE *f);
  void MozillaUnRegisterDebugFD(int fd);
  void MozillaUnRegisterDebugFILE(FILE *f);
MOZ_END_EXTERN_C

#ifdef __cplusplus
namespace mozilla {
enum ShutdownChecksMode {
  SCM_CRASH,
  SCM_RECORD,
  SCM_NOTHING
};
extern ShutdownChecksMode gShutdownChecks;

void InitWritePoisoning();
void PoisonWrite();
void DisableWritePoisoning();
void EnableWritePoisoning();
}
#endif

#endif