Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/lib/wasmfs/special_files.h
6175 views
1
// Copyright 2022 The Emscripten Authors. All rights reserved.
2
// Emscripten is available under two separate licenses, the MIT license and the
3
// University of Illinois/NCSA Open Source License. Both these licenses can be
4
// found in the LICENSE file.
5
6
#pragma once
7
8
#include "file.h"
9
10
namespace wasmfs::SpecialFiles {
11
12
// /dev/null
13
std::shared_ptr<DataFile> getNull();
14
15
// /dev/stdin
16
std::shared_ptr<DataFile> getStdin();
17
18
// /dev/stdout
19
std::shared_ptr<DataFile> getStdout();
20
21
// /dev/stderr
22
std::shared_ptr<DataFile> getStderr();
23
24
// /dev/random
25
std::shared_ptr<DataFile> getRandom();
26
27
// /dev/urandom
28
std::shared_ptr<DataFile> getURandom();
29
30
} // namespace wasmfs::SpecialFiles
31
32