1fe6060f1SDimitry Andric //===-- dfsan_chained_origin_depot.h ----------------------------*- C++ -*-===//
2fe6060f1SDimitry Andric //
3fe6060f1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4fe6060f1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5fe6060f1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6fe6060f1SDimitry Andric //
7fe6060f1SDimitry Andric //===----------------------------------------------------------------------===//
8fe6060f1SDimitry Andric //
9fe6060f1SDimitry Andric // This file is a part of DataFlowSanitizer.
10fe6060f1SDimitry Andric //
11fe6060f1SDimitry Andric // A storage for chained origins.
12fe6060f1SDimitry Andric //===----------------------------------------------------------------------===//
13fe6060f1SDimitry Andric 
14fe6060f1SDimitry Andric #ifndef DFSAN_CHAINED_ORIGIN_DEPOT_H
15fe6060f1SDimitry Andric #define DFSAN_CHAINED_ORIGIN_DEPOT_H
16fe6060f1SDimitry Andric 
17fe6060f1SDimitry Andric #include "sanitizer_common/sanitizer_chained_origin_depot.h"
18fe6060f1SDimitry Andric #include "sanitizer_common/sanitizer_common.h"
19fe6060f1SDimitry Andric 
20fe6060f1SDimitry Andric namespace __dfsan {
21fe6060f1SDimitry Andric 
22fe6060f1SDimitry Andric ChainedOriginDepot* GetChainedOriginDepot();
23fe6060f1SDimitry Andric 
24*cb14a3feSDimitry Andric void ChainedOriginDepotLockBeforeFork();
25*cb14a3feSDimitry Andric void ChainedOriginDepotUnlockAfterFork(bool fork_child);
26*cb14a3feSDimitry Andric 
27fe6060f1SDimitry Andric }  // namespace __dfsan
28fe6060f1SDimitry Andric 
29fe6060f1SDimitry Andric #endif  // DFSAN_CHAINED_ORIGIN_DEPOT_H
30