Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
include /
nodejs /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
crypto
[ DIR ]
drwxr-xr-x
2024-07-10 10:55
permission
[ DIR ]
drwxr-xr-x
2024-07-10 10:55
tracing
[ DIR ]
drwxr-xr-x
2024-07-10 10:55
acorn_version.h
209
B
-rw-r--r--
2024-04-18 19:08
aliased_buffer-inl.h
7.44
KB
-rw-r--r--
2024-02-13 21:40
aliased_buffer.h
6.05
KB
-rw-r--r--
2024-02-13 21:40
aliased_struct-inl.h
1.32
KB
-rw-r--r--
2024-02-13 21:40
aliased_struct.h
1.44
KB
-rw-r--r--
2024-02-13 21:40
async_wrap-inl.h
2.68
KB
-rw-r--r--
2024-02-13 21:40
async_wrap.h
11.32
KB
-rw-r--r--
2024-02-13 21:40
base64-inl.h
5.76
KB
-rw-r--r--
2024-02-13 21:40
base64.h
1.43
KB
-rw-r--r--
2024-02-13 21:40
base64_version.h
227
B
-rw-r--r--
2024-02-13 21:40
base_object-inl.h
8.94
KB
-rw-r--r--
2024-02-13 21:40
base_object.h
13.3
KB
-rw-r--r--
2024-02-13 21:40
base_object_types.h
3.28
KB
-rw-r--r--
2024-02-13 21:40
blob_serializer_deserializer-inl.h
10.54
KB
-rw-r--r--
2024-02-13 21:40
blob_serializer_deserializer.h
3.56
KB
-rw-r--r--
2024-02-13 21:40
callback_queue-inl.h
2.59
KB
-rw-r--r--
2024-02-13 21:40
callback_queue.h
1.96
KB
-rw-r--r--
2024-02-13 21:40
cares_wrap.h
14.37
KB
-rw-r--r--
2024-04-18 19:08
cjs_module_lexer_version.h
277
B
-rw-r--r--
2024-04-18 19:08
cleanup_queue-inl.h
1.58
KB
-rw-r--r--
2024-02-13 21:40
cleanup_queue.h
2.19
KB
-rw-r--r--
2024-02-13 21:40
connect_wrap.h
584
B
-rw-r--r--
2024-02-13 21:40
connection_wrap.h
686
B
-rw-r--r--
2024-02-13 21:40
debug_utils-inl.h
7.42
KB
-rw-r--r--
2024-02-13 21:40
debug_utils.h
6.77
KB
-rw-r--r--
2024-02-13 21:40
diagnosticfilename-inl.h
768
B
-rw-r--r--
2024-02-13 21:40
env-inl.h
25.59
KB
-rw-r--r--
2024-02-13 21:40
env.h
38.85
KB
-rw-r--r--
2024-02-13 21:40
env_properties.h
33.32
KB
-rw-r--r--
2024-02-13 21:40
handle_wrap.h
4.16
KB
-rw-r--r--
2024-02-13 21:40
histogram-inl.h
2.39
KB
-rw-r--r--
2024-02-13 21:40
histogram.h
7.89
KB
-rw-r--r--
2024-02-13 21:40
inspector_agent.h
4.69
KB
-rw-r--r--
2024-02-13 21:40
inspector_io.h
2.19
KB
-rw-r--r--
2024-02-13 21:40
inspector_profiler.h
4.53
KB
-rw-r--r--
2024-02-13 21:40
inspector_socket.h
1.53
KB
-rw-r--r--
2024-02-13 21:40
inspector_socket_server.h
3.5
KB
-rw-r--r--
2024-02-13 21:40
js_native_api.h
31.22
KB
-rw-r--r--
2024-02-13 21:40
js_native_api_types.h
4.44
KB
-rw-r--r--
2024-02-13 21:40
js_native_api_v8.h
16.83
KB
-rw-r--r--
2024-02-13 21:40
js_native_api_v8_internals.h
1.56
KB
-rw-r--r--
2024-02-13 21:40
js_stream.h
1.35
KB
-rw-r--r--
2024-02-13 21:40
json_utils.h
3.8
KB
-rw-r--r--
2024-02-13 21:40
memory_tracker-inl.h
12.01
KB
-rw-r--r--
2024-02-13 21:40
memory_tracker.h
11.55
KB
-rw-r--r--
2024-02-13 21:40
module_wrap.h
3.72
KB
-rw-r--r--
2024-02-13 21:40
node.h
56.44
KB
-rw-r--r--
2024-02-13 21:40
node_api.h
9.96
KB
-rw-r--r--
2024-02-13 21:40
node_api_internals.h
1.24
KB
-rw-r--r--
2024-02-13 21:40
node_api_types.h
1.57
KB
-rw-r--r--
2024-02-13 21:40
node_binding.h
4.19
KB
-rw-r--r--
2024-02-13 21:40
node_blob.h
5.04
KB
-rw-r--r--
2024-02-13 21:40
node_bob-inl.h
657
B
-rw-r--r--
2024-02-13 21:40
node_bob.h
2.82
KB
-rw-r--r--
2024-02-13 21:40
node_buffer.h
3.6
KB
-rw-r--r--
2024-02-13 21:40
node_builtins.h
5.63
KB
-rw-r--r--
2024-02-13 21:40
node_constants.h
3.67
KB
-rw-r--r--
2024-02-13 21:40
node_context_data.h
2.94
KB
-rw-r--r--
2024-02-13 21:40
node_contextify.h
7.63
KB
-rw-r--r--
2024-02-13 21:40
node_crypto.h
2.27
KB
-rw-r--r--
2024-02-13 21:40
node_dir.h
1.31
KB
-rw-r--r--
2024-02-13 21:40
node_dtrace.h
2.89
KB
-rw-r--r--
2024-02-13 21:40
node_errors.h
16.86
KB
-rw-r--r--
2024-02-13 21:40
node_external_reference.h
7.86
KB
-rw-r--r--
2024-02-13 21:40
node_file-inl.h
12.45
KB
-rw-r--r--
2024-02-13 21:40
node_file.h
14.7
KB
-rw-r--r--
2024-02-13 21:40
node_http2.h
38.61
KB
-rw-r--r--
2024-02-13 21:40
node_http2_state.h
4.76
KB
-rw-r--r--
2024-02-13 21:40
node_http_common-inl.h
5.46
KB
-rw-r--r--
2024-02-13 21:40
node_http_common.h
24.56
KB
-rw-r--r--
2024-02-13 21:40
node_i18n.h
4.34
KB
-rw-r--r--
2024-02-13 21:40
node_internals.h
15.03
KB
-rw-r--r--
2024-02-13 21:40
node_main_instance.h
2.96
KB
-rw-r--r--
2024-02-13 21:40
node_mem-inl.h
3.6
KB
-rw-r--r--
2024-02-13 21:40
node_mem.h
1.27
KB
-rw-r--r--
2024-02-13 21:40
node_messaging.h
14.3
KB
-rw-r--r--
2024-02-13 21:40
node_metadata.h
4.37
KB
-rw-r--r--
2024-02-13 21:40
node_mutex.h
7.78
KB
-rw-r--r--
2024-02-13 21:40
node_object_wrap.h
3.78
KB
-rw-r--r--
2024-02-13 21:40
node_options-inl.h
15.86
KB
-rw-r--r--
2024-02-13 21:40
node_options.h
17.57
KB
-rw-r--r--
2024-02-13 21:40
node_perf.h
4.76
KB
-rw-r--r--
2024-02-13 21:40
node_perf_common.h
2.88
KB
-rw-r--r--
2024-02-13 21:40
node_platform.h
6.19
KB
-rw-r--r--
2024-02-13 21:40
node_process-inl.h
737
B
-rw-r--r--
2024-02-13 21:40
node_process.h
3.36
KB
-rw-r--r--
2024-02-13 21:40
node_realm-inl.h
4.59
KB
-rw-r--r--
2024-02-13 21:40
node_realm.h
5.38
KB
-rw-r--r--
2024-02-13 21:40
node_report.h
994
B
-rw-r--r--
2024-02-13 21:40
node_revert.h
2.09
KB
-rw-r--r--
2024-02-13 21:40
node_root_certs.h
231.49
KB
-rw-r--r--
2024-02-13 21:40
node_sea.h
517
B
-rw-r--r--
2024-02-13 21:40
node_shadow_realm.h
449
B
-rw-r--r--
2024-02-13 21:40
node_snapshot_builder.h
1.21
KB
-rw-r--r--
2024-02-13 21:40
node_snapshotable.h
4.82
KB
-rw-r--r--
2024-02-13 21:40
node_sockaddr-inl.h
7.28
KB
-rw-r--r--
2024-02-13 21:40
node_sockaddr.h
12.91
KB
-rw-r--r--
2024-02-13 21:40
node_stat_watcher.h
2.36
KB
-rw-r--r--
2024-02-13 21:40
node_threadsafe_cow-inl.h
1.28
KB
-rw-r--r--
2024-02-13 21:40
node_threadsafe_cow.h
2.78
KB
-rw-r--r--
2024-02-13 21:40
node_union_bytes.h
1.66
KB
-rw-r--r--
2024-02-13 21:40
node_url.h
2.13
KB
-rw-r--r--
2024-02-13 21:40
node_util.h
1.39
KB
-rw-r--r--
2024-02-13 21:40
node_v8.h
1.67
KB
-rw-r--r--
2024-02-13 21:40
node_v8_platform-inl.h
6.63
KB
-rw-r--r--
2024-02-13 21:40
node_version.h
3.85
KB
-rw-r--r--
2024-04-18 19:08
node_wasi.h
5.21
KB
-rw-r--r--
2024-02-13 21:40
node_wasm_web_api.h
1.78
KB
-rw-r--r--
2024-02-13 21:40
node_watchdog.h
4.32
KB
-rw-r--r--
2024-02-13 21:40
node_win32_etw_provider-inl.h
11.53
KB
-rw-r--r--
2024-02-13 21:40
node_win32_etw_provider.h
3.67
KB
-rw-r--r--
2024-02-13 21:40
node_worker.h
4.92
KB
-rw-r--r--
2024-02-13 21:40
pipe_wrap.h
2.78
KB
-rw-r--r--
2024-02-13 21:40
req_wrap-inl.h
5.43
KB
-rw-r--r--
2024-02-13 21:40
req_wrap.h
2.23
KB
-rw-r--r--
2024-02-13 21:40
spawn_sync.h
6.87
KB
-rw-r--r--
2024-02-13 21:40
stream_base-inl.h
4.93
KB
-rw-r--r--
2024-02-13 21:40
stream_base.h
17.44
KB
-rw-r--r--
2024-02-13 21:40
stream_pipe.h
2.39
KB
-rw-r--r--
2024-02-13 21:40
stream_wrap.h
4.15
KB
-rw-r--r--
2024-02-13 21:40
string_bytes.h
4.69
KB
-rw-r--r--
2024-02-13 21:40
string_decoder-inl.h
858
B
-rw-r--r--
2024-02-13 21:40
string_decoder.h
1.5
KB
-rw-r--r--
2024-02-13 21:40
string_search.h
20.94
KB
-rw-r--r--
2024-02-13 21:40
tcp_wrap.h
3.9
KB
-rw-r--r--
2024-02-13 21:40
threadpoolwork-inl.h
2.58
KB
-rw-r--r--
2024-02-13 21:40
timer_wrap-inl.h
755
B
-rw-r--r--
2024-02-13 21:40
timer_wrap.h
1.79
KB
-rw-r--r--
2024-02-13 21:40
tty_wrap.h
2.27
KB
-rw-r--r--
2024-02-13 21:40
udp_wrap.h
8.5
KB
-rw-r--r--
2024-02-13 21:40
undici_version.h
215
B
-rw-r--r--
2024-04-18 19:08
util-inl.h
19.56
KB
-rw-r--r--
2024-02-13 21:40
util.h
31.46
KB
-rw-r--r--
2024-02-13 21:40
v8abbr.h
5.05
KB
-rw-r--r--
2024-02-13 21:40
Save
Rename
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef SRC_BASE_OBJECT_H_ #define SRC_BASE_OBJECT_H_ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include <type_traits> // std::remove_reference #include "base_object_types.h" #include "memory_tracker.h" #include "v8.h" namespace node { class Environment; class IsolateData; class Realm; template <typename T, bool kIsWeak> class BaseObjectPtrImpl; namespace worker { class TransferData; } extern uint16_t kNodeEmbedderId; class BaseObject : public MemoryRetainer { public: enum InternalFields { kEmbedderType, kSlot, kInternalFieldCount }; // Associates this object with `object`. It uses the 1st internal field for // that, and in particular aborts if there is no such field. // This is the designated constructor. BaseObject(Realm* realm, v8::Local<v8::Object> object); // Convenient constructor for constructing BaseObject in the principal realm. inline BaseObject(Environment* env, v8::Local<v8::Object> object); ~BaseObject() override; BaseObject() = delete; // Returns the wrapped object. Returns an empty handle when // persistent.IsEmpty() is true. inline v8::Local<v8::Object> object() const; // Same as the above, except it additionally verifies that this object // is associated with the passed Isolate in debug mode. inline v8::Local<v8::Object> object(v8::Isolate* isolate) const; inline v8::Global<v8::Object>& persistent(); inline Environment* env() const; inline Realm* realm() const; // Get a BaseObject* pointer, or subclass pointer, for the JS object that // was also passed to the `BaseObject()` constructor initially. // This may return `nullptr` if the C++ object has not been constructed yet, // e.g. when the JS object used `MakeLazilyInitializedJSTemplate`. static inline void SetInternalFields(v8::Local<v8::Object> object, void* slot); static inline void TagNodeObject(v8::Local<v8::Object> object); static void LazilyInitializedJSTemplateConstructor( const v8::FunctionCallbackInfo<v8::Value>& args); static inline BaseObject* FromJSObject(v8::Local<v8::Value> object); template <typename T> static inline T* FromJSObject(v8::Local<v8::Value> object); // Make the `v8::Global` a weak reference and, `delete` this object once // the JS object has been garbage collected and there are no (strong) // BaseObjectPtr references to it. void MakeWeak(); // Undo `MakeWeak()`, i.e. turn this into a strong reference that is a GC // root and will not be touched by the garbage collector. inline void ClearWeak(); // Reports whether this BaseObject is using a weak reference or detached, // i.e. whether is can be deleted by GC once no strong BaseObjectPtrs refer // to it anymore. inline bool IsWeakOrDetached() const; inline v8::EmbedderGraph::Node::Detachedness GetDetachedness() const override; // Utility to create a FunctionTemplate with one internal field (used for // the `BaseObject*` pointer) and a constructor that initializes that field // to `nullptr`. static v8::Local<v8::FunctionTemplate> MakeLazilyInitializedJSTemplate( IsolateData* isolate); static v8::Local<v8::FunctionTemplate> MakeLazilyInitializedJSTemplate( Environment* env); // Setter/Getter pair for internal fields that can be passed to SetAccessor. template <int Field> static void InternalFieldGet(v8::Local<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info); template <int Field, bool (v8::Value::*typecheck)() const> static void InternalFieldSet(v8::Local<v8::String> property, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info); // This is a bit of a hack. See the override in async_wrap.cc for details. virtual bool IsDoneInitializing() const; // Can be used to avoid this object keeping itself alive as a GC root // indefinitely, for example when this object is owned and deleted by another // BaseObject once that is torn down. This can only be called when there is // a BaseObjectPtr to this object. inline void Detach(); static inline v8::Local<v8::FunctionTemplate> GetConstructorTemplate( Environment* env); static v8::Local<v8::FunctionTemplate> GetConstructorTemplate( IsolateData* isolate_data); // Interface for transferring BaseObject instances using the .postMessage() // method of MessagePorts (and, by extension, Workers). // GetTransferMode() returns a transfer mode that indicates how to deal with // the current object: // - kUntransferable: // No transfer is possible, either because this type of BaseObject does // not know how to be transferred, or because it is not in a state in // which it is possible to do so (e.g. because it has already been // transferred). // - kTransferable: // This object can be transferred in a destructive fashion, i.e. will be // rendered unusable on the sending side of the channel in the process // of being transferred. (In C++ this would be referred to as movable but // not copyable.) Objects of this type need to be listed in the // `transferList` argument of the relevant postMessage() call in order to // make sure that they are not accidentally destroyed on the sending side. // TransferForMessaging() will be called to get a representation of the // object that is used for subsequent deserialization. // The NestedTransferables() method can be used to transfer other objects // along with this one, if a situation requires it. // - kCloneable: // This object can be cloned without being modified. // CloneForMessaging() will be called to get a representation of the // object that is used for subsequent deserialization, unless the // object is listed in transferList, in which case TransferForMessaging() // is attempted first. // After a successful clone, FinalizeTransferRead() is called on the receiving // end, and can read deserialize JS data possibly serialized by a previous // FinalizeTransferWrite() call. enum class TransferMode { kUntransferable, kTransferable, kCloneable }; virtual TransferMode GetTransferMode() const; virtual std::unique_ptr<worker::TransferData> TransferForMessaging(); virtual std::unique_ptr<worker::TransferData> CloneForMessaging() const; virtual v8::Maybe<std::vector<BaseObjectPtrImpl<BaseObject, false>>> NestedTransferables() const; virtual v8::Maybe<bool> FinalizeTransferRead( v8::Local<v8::Context> context, v8::ValueDeserializer* deserializer); // Indicates whether this object is expected to use a strong reference during // a clean process exit (due to an empty event loop). virtual bool IsNotIndicativeOfMemoryLeakAtExit() const; virtual inline void OnGCCollect(); virtual inline bool is_snapshotable() const { return false; } private: v8::Local<v8::Object> WrappedObject() const override; bool IsRootNode() const override; static void DeleteMe(void* data); // persistent_handle_ needs to be at a fixed offset from the start of the // class because it is used by src/node_postmortem_metadata.cc to calculate // offsets and generate debug symbols for BaseObject, which assumes that the // position of members in memory are predictable. For more information please // refer to `doc/contributing/node-postmortem-support.md` friend int GenDebugSymbols(); friend class CleanupQueue; template <typename T, bool kIsWeak> friend class BaseObjectPtrImpl; v8::Global<v8::Object> persistent_handle_; // Metadata that is associated with this BaseObject if there are BaseObjectPtr // or BaseObjectWeakPtr references to it. // This object is deleted when the BaseObject itself is destroyed, and there // are no weak references to it. struct PointerData { // Number of BaseObjectPtr instances that refer to this object. If this // is non-zero, the BaseObject is always a GC root and will not be destroyed // during cleanup until the count drops to zero again. unsigned int strong_ptr_count = 0; // Number of BaseObjectWeakPtr instances that refer to this object. unsigned int weak_ptr_count = 0; // Indicates whether MakeWeak() has been called. bool wants_weak_jsobj = false; // Indicates whether Detach() has been called. If that is the case, this // object will be destroyed once the strong pointer count drops to zero. bool is_detached = false; // Reference to the original BaseObject. This is used by weak pointers. BaseObject* self = nullptr; }; inline bool has_pointer_data() const; // This creates a PointerData struct if none was associated with this // BaseObject before. PointerData* pointer_data(); // Functions that adjust the strong pointer count. void decrease_refcount(); void increase_refcount(); Realm* realm_; PointerData* pointer_data_ = nullptr; }; // Global alias for FromJSObject() to avoid churn. template <typename T> inline T* Unwrap(v8::Local<v8::Value> obj) { return BaseObject::FromJSObject<T>(obj); } #define ASSIGN_OR_RETURN_UNWRAP(ptr, obj, ...) \ do { \ *ptr = static_cast<typename std::remove_reference<decltype(*ptr)>::type>( \ BaseObject::FromJSObject(obj)); \ if (*ptr == nullptr) return __VA_ARGS__; \ } while (0) // Implementation of a generic strong or weak pointer to a BaseObject. // If strong, this will keep the target BaseObject alive regardless of other // circumstances such as the GC or Environment cleanup. // If weak, destruction behaviour is not affected, but the pointer will be // reset to nullptr once the BaseObject is destroyed. // The API matches std::shared_ptr closely. However, this class is not thread // safe, that is, we can't have different BaseObjectPtrImpl instances in // different threads referring to the same BaseObject instance. template <typename T, bool kIsWeak> class BaseObjectPtrImpl final { public: inline BaseObjectPtrImpl(); inline ~BaseObjectPtrImpl(); inline explicit BaseObjectPtrImpl(T* target); // Copy and move constructors. Note that the templated version is not a copy // or move constructor in the C++ sense of the word, so an identical // untemplated version is provided. template <typename U, bool kW> inline BaseObjectPtrImpl(const BaseObjectPtrImpl<U, kW>& other); inline BaseObjectPtrImpl(const BaseObjectPtrImpl& other); template <typename U, bool kW> inline BaseObjectPtrImpl& operator=(const BaseObjectPtrImpl<U, kW>& other); inline BaseObjectPtrImpl& operator=(const BaseObjectPtrImpl& other); inline BaseObjectPtrImpl(BaseObjectPtrImpl&& other); inline BaseObjectPtrImpl& operator=(BaseObjectPtrImpl&& other); inline void reset(T* ptr = nullptr); inline T* get() const; inline T& operator*() const; inline T* operator->() const; inline operator bool() const; template <typename U, bool kW> inline bool operator ==(const BaseObjectPtrImpl<U, kW>& other) const; template <typename U, bool kW> inline bool operator !=(const BaseObjectPtrImpl<U, kW>& other) const; private: union { BaseObject* target; // Used for strong pointers. BaseObject::PointerData* pointer_data; // Used for weak pointers. } data_; inline BaseObject* get_base_object() const; inline BaseObject::PointerData* pointer_data() const; }; template <typename T> using BaseObjectPtr = BaseObjectPtrImpl<T, false>; template <typename T> using BaseObjectWeakPtr = BaseObjectPtrImpl<T, true>; // Create a BaseObject instance and return a pointer to it. // This variant leaves the object as a GC root by default. template <typename T, typename... Args> inline BaseObjectPtr<T> MakeBaseObject(Args&&... args); // Create a BaseObject instance and return a pointer to it. // This variant detaches the object by default, meaning that the caller fully // owns it, and once the last BaseObjectPtr to it is destroyed, the object // itself is also destroyed. template <typename T, typename... Args> inline BaseObjectPtr<T> MakeDetachedBaseObject(Args&&... args); } // namespace node #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #endif // SRC_BASE_OBJECT_H_