From 264c99f6c68aa8ddcbf030b227dd7e6ea812f02a Mon Sep 17 00:00:00 2001 From: James M Snell Date: Mon, 20 Aug 2018 14:07:10 -0700 Subject: src: move more to node_process.cc from node.cc PR-URL: https://github.com/nodejs/node/pull/22422 Reviewed-By: Gus Caplan Reviewed-By: Anna Henningsen Reviewed-By: Refael Ackermann Reviewed-By: Colin Ihrig --- src/node_internals.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/node_internals.h') 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& args); void Umask(const v8::FunctionCallbackInfo& args); void Uptime(const v8::FunctionCallbackInfo& args); +void EnvDeleter(v8::Local property, + const v8::PropertyCallbackInfo& info); +void EnvGetter(v8::Local property, + const v8::PropertyCallbackInfo& info); +void EnvSetter(v8::Local property, + v8::Local value, + const v8::PropertyCallbackInfo& info); +void EnvQuery(v8::Local property, + const v8::PropertyCallbackInfo& info); +void EnvEnumerator(const v8::PropertyCallbackInfo& info); + +void GetParentProcessId(v8::Local property, + const v8::PropertyCallbackInfo& info); + +void ProcessTitleGetter(v8::Local property, + const v8::PropertyCallbackInfo& info); +void ProcessTitleSetter(v8::Local property, + v8::Local value, + const v8::PropertyCallbackInfo& info); + #if defined(__POSIX__) && !defined(__ANDROID__) && !defined(__CloudABI__) void SetGid(const v8::FunctionCallbackInfo& args); void SetEGid(const v8::FunctionCallbackInfo& args); -- cgit v1.2.3