summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-05-23 15:04:23 -0700
committerMichaël Zasso <targos@protonmail.com>2018-06-13 08:41:48 +0200
commitba17c9e46b0200f10c6289c4407ca57b846bd3ce (patch)
tree754040cab80d6780c01ef895ae017b588df6ab51 /src/node_internals.h
parent94dcdfb8983836265e723190d56154b7dcd28ef6 (diff)
downloadnode-new-ba17c9e46b0200f10c6289c4407ca57b846bd3ce.tar.gz
src: refactor bootstrap to use bootstrap object
PR-URL: https://github.com/nodejs/node/pull/20917 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Backport-PR-URL: https://github.com/nodejs/node/pull/21172
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index 1ba56458b1..3014a0e5f7 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -357,6 +357,8 @@ inline v8::Local<v8::Value> FillGlobalStatsArray(Environment* env,
return node::FillStatsArray(env->fs_stats_field_array(), s, offset);
}
+void SetupBootstrapObject(Environment* env,
+ v8::Local<v8::Object> bootstrapper);
void SetupProcessObject(Environment* env,
int argc,
const char* const* argv,
@@ -873,6 +875,24 @@ static inline const char *errno_string(int errorno) {
TRACING_CATEGORY_NODE "." #one "," \
TRACING_CATEGORY_NODE "." #one "." #two
+// Functions defined in node.cc that are exposed via the bootstrapper object
+
+void Chdir(const v8::FunctionCallbackInfo<v8::Value>& args);
+void CPUUsage(const v8::FunctionCallbackInfo<v8::Value>& args);
+void Hrtime(const v8::FunctionCallbackInfo<v8::Value>& args);
+void MemoryUsage(const v8::FunctionCallbackInfo<v8::Value>& args);
+void RawDebug(const v8::FunctionCallbackInfo<v8::Value>& args);
+void Umask(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+#if defined(__POSIX__) && !defined(__ANDROID__) && !defined(__CloudABI__)
+void SetGid(const v8::FunctionCallbackInfo<v8::Value>& args);
+void SetEGid(const v8::FunctionCallbackInfo<v8::Value>& args);
+void SetUid(const v8::FunctionCallbackInfo<v8::Value>& args);
+void SetEUid(const v8::FunctionCallbackInfo<v8::Value>& args);
+void SetGroups(const v8::FunctionCallbackInfo<v8::Value>& args);
+void InitGroups(const v8::FunctionCallbackInfo<v8::Value>& args);
+#endif // __POSIX__ && !defined(__ANDROID__) && !defined(__CloudABI__)
+
} // namespace node
void napi_module_register_by_symbol(v8::Local<v8::Object> exports,