Skip to main content

detcore/
consts.rs

1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8
9//! Constant values.
10
11#![allow(unused)]
12
13use reverie::Pid;
14
15use crate::types::DetInode;
16use crate::types::DetPid;
17use crate::types::DetTid;
18
19/// A separate offset for special devices, including file descriptors 0,1,2
20/// stdin/stdout/stderr.
21pub static DET_SPECIAL_INODE_OFFSET: DetInode = DetInode::mint(1000);
22
23/// The starting point for deterministic inodes *other* than those addressed by
24/// `DET_SPECIAL_INODE_OFFSET`.
25pub static DET_INODE_OFFSET: DetInode = DetInode::mint(9000);
26
27pub const DEFAULT_HOSTNAME: &str = "hermetic-container.local";
28
29/// A convention of how we set up our PID namespace leaves us with a starting pid of 3.
30pub const ROOT_DETPID: DetPid = DetPid::from_raw(3);