summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-08-20 14:07:10 -0700
committerJames M Snell <jasnell@gmail.com>2018-08-22 17:58:28 -0700
commit264c99f6c68aa8ddcbf030b227dd7e6ea812f02a (patch)
tree24893165425c424688313009add62490b7721b9a /src/node_internals.h
parentd32051147cc40b0bec8fc0719a57ad9d76525fb0 (diff)
downloadandroid-node-v8-264c99f6c68aa8ddcbf030b227dd7e6ea812f02a.tar.gz
android-node-v8-264c99f6c68aa8ddcbf030b227dd7e6ea812f02a.tar.bz2
android-node-v8-264c99f6c68aa8ddcbf030b227dd7e6ea812f02a.zip
src: move more to node_process.cc from node.cc
PR-URL: https://github.com/nodejs/node/pull/22422 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index 60630953c7..d09bee0cb5 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -170,6 +170,9 @@ struct sockaddr;
namespace node {
+extern Mutex process_mutex;
+extern Mutex environ_mutex;
+
// Tells whether it is safe to call v8::Isolate::GetCurrent().
extern bool v8_initialized;
@@ -888,6 +891,26 @@ void StopProfilerIdleNotifier(const v8::FunctionCallbackInfo<v8::Value>& args);
void Umask(const v8::FunctionCallbackInfo<v8::Value>& args);
void Uptime(const v8::FunctionCallbackInfo<v8::Value>& args);
+void EnvDeleter(v8::Local<v8::Name> property,
+ const v8::PropertyCallbackInfo<v8::Boolean>& info);
+void EnvGetter(v8::Local<v8::Name> property,
+ const v8::PropertyCallbackInfo<v8::Value>& info);
+void EnvSetter(v8::Local<v8::Name> property,
+ v8::Local<v8::Value> value,
+ const v8::PropertyCallbackInfo<v8::Value>& info);
+void EnvQuery(v8::Local<v8::Name> property,
+ const v8::PropertyCallbackInfo<v8::Integer>& info);
+void EnvEnumerator(const v8::PropertyCallbackInfo<v8::Array>& info);
+
+void GetParentProcessId(v8::Local<v8::Name> property,
+ const v8::PropertyCallbackInfo<v8::Value>& info);
+
+void ProcessTitleGetter(v8::Local<v8::Name> property,
+ const v8::PropertyCallbackInfo<v8::Value>& info);
+void ProcessTitleSetter(v8::Local<v8::Name> property,
+ v8::Local<v8::Value> value,
+ const v8::PropertyCallbackInfo<void>& info);
+
#if defined(__POSIX__) && !defined(__ANDROID__) && !defined(__CloudABI__)
void SetGid(const v8::FunctionCallbackInfo<v8::Value>& args);
void SetEGid(const v8::FunctionCallbackInfo<v8::Value>& args);