mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 13:51:47 +00:00
* feat: implement os module * revert(bun-error): package-lock.json * feat: implement EOL * feat: implement EOL * feat: implement arch function * feat: implement homedir function * add comptime to homedir if * feat: add platform function * feat: implement type function * feat: add hostname (not sure iff works on all platforms) * chore: make requested changes * fix: change toValueGC into toValue in arch function * add EOL, devNull constant variables * fix: store only string * feat: add tests * feat: add endianness * ususe toValue for devNull & EOL * feat: implement endianness & fix release * revert javascript.zig fix * feat: implement tmpdir * feat: implement totalmem, freemem, uptime * feat: loadavg * feat: implement version * feat: add userInfo * feat: implement totalmem for macos * feat: add getPriority (not finished, waiting for dc response) * feat: finish userInfo implementation * feat: implement cpus, not done * feat: finish getPriority implementation & stats cpus() * feat: implement setPriority * reemove test.c * feat: implement constants.dlope.xn, constants.priority.x, constants.UV_UDP_REUSEADDR * feat: implement signals, errno * updated cpus function, stilldoesnt work * increase object length * feat: add t more ests * feat: add cpus() * remov some files * fix: handle empty array * started working on interface addresses (in C) ill use C++ after it work * fix interface_addresses * Improved getCpuInfo code, decreased ram usage, increased speed * getCpuTime optimizations * started working on networkInterfaces * feat: networkInterfaces implementation * delete unnecessary files * add benchs & fix code * add tests * add missing benchs * Increased buffer of getCpuInfo to 2048, it should skip few iterations * remove hardcoded constants * feat: implement errno constants * fix getWindowsErrorConstant * feat: add signal constants * feat: implement priority constants * remove duplications * fix: change value to ?i16 * fix(__defineConstant): make some parameters comptime, change value to ?i32 * fix: add E to ERRNO constants, add SIG to SIG constants * feat: add dlopen constants * change functions to private * feat: add UV_UDP_REUSEADDR * fix typo * simplify functions * rename functions in bindings * feat: implement loadavg for darwin * feat: implement system uptime * feat: implement get free memory for darwin * fix system memory bindings * feat: implement network interfaces for darwin * code cleanup * feat: support for macos version & release * some fixes * MacOS support for CpuInfo * Fixed minor mistake in getCpuInfo_B * Delete test.zig * Update c_cpp_properties.json * Update tasks.json * feat: implement scopeid * feat: implement cidr 🚀 * remove unnecesarry changes * remove unnecesarry changes * chore: requested changes Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * chore: requested changes Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * chore: requested changes Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * chore: requested changes Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * chore: requested changes Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * chore: requested changes Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * chore: requested changes Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * fix: import string * fix: change IPV6 to IPv6 * fix some things * chore: make requested changes * revert: launch.json * fix test * Fixed few memory leaks * testing * again * added len * another test * improved parsing * added small check * Bonk * FINISH 🚀🚀🚀🚀🚀🚀 * Update tasks.json * NetworkInterface test * FINISH 🚀🚀🚀 Co-authored-by: Fire-The-Fox <gajdos.jan77@gmail.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
248 lines
11 KiB
C
248 lines
11 KiB
C
//-- AUTOGENERATED FILE -- 1661187638
|
|
// clang-format off
|
|
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "root.h"
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_JSObject_h
|
|
#define INCLUDED_JavaScriptCore_JSObject_h
|
|
#include "JavaScriptCore/JSObject.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSObject_object_size_ = sizeof(JSC::JSObject);
|
|
extern "C" const size_t JSC__JSObject_object_align_ = alignof(JSC::JSObject);
|
|
|
|
#ifndef INCLUDED_FetchHeaders_h
|
|
#define INCLUDED_FetchHeaders_h
|
|
#include "FetchHeaders.h"
|
|
#endif
|
|
|
|
extern "C" const size_t WebCore__FetchHeaders_object_size_ = sizeof(WebCore::FetchHeaders);
|
|
extern "C" const size_t WebCore__FetchHeaders_object_align_ = alignof(WebCore::FetchHeaders);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_JSCell_h
|
|
#define INCLUDED_JavaScriptCore_JSCell_h
|
|
#include "JavaScriptCore/JSCell.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSCell_object_size_ = sizeof(JSC::JSCell);
|
|
extern "C" const size_t JSC__JSCell_object_align_ = alignof(JSC::JSCell);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_JSString_h
|
|
#define INCLUDED_JavaScriptCore_JSString_h
|
|
#include "JavaScriptCore/JSString.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSString_object_size_ = sizeof(JSC::JSString);
|
|
extern "C" const size_t JSC__JSString_object_align_ = alignof(JSC::JSString);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_ScriptArguments_h
|
|
#define INCLUDED_JavaScriptCore_ScriptArguments_h
|
|
#include "JavaScriptCore/ScriptArguments.h"
|
|
#endif
|
|
|
|
extern "C" const size_t Inspector__ScriptArguments_object_size_ = sizeof(Inspector::ScriptArguments);
|
|
extern "C" const size_t Inspector__ScriptArguments_object_align_ = alignof(Inspector::ScriptArguments);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_JSModuleLoader_h
|
|
#define INCLUDED_JavaScriptCore_JSModuleLoader_h
|
|
#include "JavaScriptCore/JSModuleLoader.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSModuleLoader_object_size_ = sizeof(JSC::JSModuleLoader);
|
|
extern "C" const size_t JSC__JSModuleLoader_object_align_ = alignof(JSC::JSModuleLoader);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_JSModuleRecord_h
|
|
#define INCLUDED_JavaScriptCore_JSModuleRecord_h
|
|
#include "JavaScriptCore/JSModuleRecord.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSModuleRecord_object_size_ = sizeof(JSC::JSModuleRecord);
|
|
extern "C" const size_t JSC__JSModuleRecord_object_align_ = alignof(JSC::JSModuleRecord);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_JSPromise_h
|
|
#define INCLUDED_JavaScriptCore_JSPromise_h
|
|
#include "JavaScriptCore/JSPromise.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSPromise_object_size_ = sizeof(JSC::JSPromise);
|
|
extern "C" const size_t JSC__JSPromise_object_align_ = alignof(JSC::JSPromise);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_JSInternalPromise_h
|
|
#define INCLUDED_JavaScriptCore_JSInternalPromise_h
|
|
#include "JavaScriptCore/JSInternalPromise.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSInternalPromise_object_size_ = sizeof(JSC::JSInternalPromise);
|
|
extern "C" const size_t JSC__JSInternalPromise_object_align_ = alignof(JSC::JSInternalPromise);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_SourceOrigin_h
|
|
#define INCLUDED_JavaScriptCore_SourceOrigin_h
|
|
#include "JavaScriptCore/SourceOrigin.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__SourceOrigin_object_size_ = sizeof(JSC::SourceOrigin);
|
|
extern "C" const size_t JSC__SourceOrigin_object_align_ = alignof(JSC::SourceOrigin);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_SourceProvider_h
|
|
#define INCLUDED_JavaScriptCore_SourceProvider_h
|
|
#include "JavaScriptCore/SourceProvider.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__SourceCode_object_size_ = sizeof(JSC::SourceCode);
|
|
extern "C" const size_t JSC__SourceCode_object_align_ = alignof(JSC::SourceCode);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_JSFunction_h
|
|
#define INCLUDED_JavaScriptCore_JSFunction_h
|
|
#include "JavaScriptCore/JSFunction.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSFunction_object_size_ = sizeof(JSC::JSFunction);
|
|
extern "C" const size_t JSC__JSFunction_object_align_ = alignof(JSC::JSFunction);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_JSGlobalObject_h
|
|
#define INCLUDED_JavaScriptCore_JSGlobalObject_h
|
|
#include "JavaScriptCore/JSGlobalObject.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSGlobalObject_object_size_ = sizeof(JSC::JSGlobalObject);
|
|
extern "C" const size_t JSC__JSGlobalObject_object_align_ = alignof(JSC::JSGlobalObject);
|
|
|
|
#ifndef INCLUDED_wtf_URL_h
|
|
#define INCLUDED_wtf_URL_h
|
|
#include "wtf/URL.h"
|
|
#endif
|
|
|
|
extern "C" const size_t WTF__URL_object_size_ = sizeof(WTF::URL);
|
|
extern "C" const size_t WTF__URL_object_align_ = alignof(WTF::URL);
|
|
|
|
#ifndef INCLUDED_wtf_text_WTFString_h
|
|
#define INCLUDED_wtf_text_WTFString_h
|
|
#include "wtf/text/WTFString.h"
|
|
#endif
|
|
|
|
extern "C" const size_t WTF__String_object_size_ = sizeof(WTF::String);
|
|
extern "C" const size_t WTF__String_object_align_ = alignof(WTF::String);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_JSValue_h
|
|
#define INCLUDED_JavaScriptCore_JSValue_h
|
|
#include "JavaScriptCore/JSValue.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__JSValue_object_size_ = sizeof(JSC::JSValue);
|
|
extern "C" const size_t JSC__JSValue_object_align_ = alignof(JSC::JSValue);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_PropertyName_h
|
|
#define INCLUDED_JavaScriptCore_PropertyName_h
|
|
#include "JavaScriptCore/PropertyName.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__PropertyName_object_size_ = sizeof(JSC::PropertyName);
|
|
extern "C" const size_t JSC__PropertyName_object_align_ = alignof(JSC::PropertyName);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_Exception_h
|
|
#define INCLUDED_JavaScriptCore_Exception_h
|
|
#include "JavaScriptCore/Exception.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__Exception_object_size_ = sizeof(JSC::Exception);
|
|
extern "C" const size_t JSC__Exception_object_align_ = alignof(JSC::Exception);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_VM_h
|
|
#define INCLUDED_JavaScriptCore_VM_h
|
|
#include "JavaScriptCore/VM.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__VM_object_size_ = sizeof(JSC::VM);
|
|
extern "C" const size_t JSC__VM_object_align_ = alignof(JSC::VM);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_ThrowScope_h
|
|
#define INCLUDED_JavaScriptCore_ThrowScope_h
|
|
#include "JavaScriptCore/ThrowScope.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__ThrowScope_object_size_ = sizeof(JSC::ThrowScope);
|
|
extern "C" const size_t JSC__ThrowScope_object_align_ = alignof(JSC::ThrowScope);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_CatchScope_h
|
|
#define INCLUDED_JavaScriptCore_CatchScope_h
|
|
#include "JavaScriptCore/CatchScope.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__CatchScope_object_size_ = sizeof(JSC::CatchScope);
|
|
extern "C" const size_t JSC__CatchScope_object_align_ = alignof(JSC::CatchScope);
|
|
|
|
#ifndef INCLUDED_JavaScriptCore_Identifier_h
|
|
#define INCLUDED_JavaScriptCore_Identifier_h
|
|
#include "JavaScriptCore/Identifier.h"
|
|
#endif
|
|
|
|
extern "C" const size_t JSC__Identifier_object_size_ = sizeof(JSC::Identifier);
|
|
extern "C" const size_t JSC__Identifier_object_align_ = alignof(JSC::Identifier);
|
|
|
|
#ifndef INCLUDED_wtf_text_StringImpl_h
|
|
#define INCLUDED_wtf_text_StringImpl_h
|
|
#include "wtf/text/StringImpl.h"
|
|
#endif
|
|
|
|
extern "C" const size_t WTF__StringImpl_object_size_ = sizeof(WTF::StringImpl);
|
|
extern "C" const size_t WTF__StringImpl_object_align_ = alignof(WTF::StringImpl);
|
|
|
|
#ifndef INCLUDED_wtf_text_ExternalStringImpl_h
|
|
#define INCLUDED_wtf_text_ExternalStringImpl_h
|
|
#include "wtf/text/ExternalStringImpl.h"
|
|
#endif
|
|
|
|
extern "C" const size_t WTF__ExternalStringImpl_object_size_ = sizeof(WTF::ExternalStringImpl);
|
|
extern "C" const size_t WTF__ExternalStringImpl_object_align_ = alignof(WTF::ExternalStringImpl);
|
|
|
|
#ifndef INCLUDED_wtf_text_StringView_h
|
|
#define INCLUDED_wtf_text_StringView_h
|
|
#include "wtf/text/StringView.h"
|
|
#endif
|
|
|
|
extern "C" const size_t WTF__StringView_object_size_ = sizeof(WTF::StringView);
|
|
extern "C" const size_t WTF__StringView_object_align_ = alignof(WTF::StringView);
|
|
|
|
#ifndef INCLUDED__ZigGlobalObject_h_
|
|
#define INCLUDED__ZigGlobalObject_h_
|
|
#include ""ZigGlobalObject.h""
|
|
#endif
|
|
|
|
extern "C" const size_t Zig__GlobalObject_object_size_ = sizeof(Zig::GlobalObject);
|
|
extern "C" const size_t Zig__GlobalObject_object_align_ = alignof(Zig::GlobalObject);
|
|
|
|
#ifndef INCLUDED_Path_h
|
|
#define INCLUDED_Path_h
|
|
#include "Path.h"
|
|
#endif
|
|
|
|
extern "C" const size_t Bun__Path_object_size_ = sizeof(Bun__Path);
|
|
extern "C" const size_t Bun__Path_object_align_ = alignof(Bun__Path);
|
|
|
|
#ifndef INCLUDED__ZigConsoleClient_h_
|
|
#define INCLUDED__ZigConsoleClient_h_
|
|
#include ""ZigConsoleClient.h""
|
|
#endif
|
|
|
|
extern "C" const size_t Zig__ConsoleClient_object_size_ = sizeof(Zig::ConsoleClient);
|
|
extern "C" const size_t Zig__ConsoleClient_object_align_ = alignof(Zig::ConsoleClient);
|
|
|
|
#ifndef INCLUDED_
|
|
#define INCLUDED_
|
|
#include ""
|
|
#endif
|
|
|
|
extern "C" const size_t Bun__Timer_object_size_ = sizeof(Bun__Timer);
|
|
extern "C" const size_t Bun__Timer_object_align_ = alignof(Bun__Timer);
|
|
|
|
const size_t sizes[33] = {sizeof(JSC::JSObject), sizeof(WebCore::DOMURL), sizeof(WebCore::FetchHeaders), sizeof(SystemError), sizeof(JSC::JSCell), sizeof(JSC::JSString), sizeof(Inspector::ScriptArguments), sizeof(JSC::JSModuleLoader), sizeof(JSC::JSModuleRecord), sizeof(JSC::JSPromise), sizeof(JSC::JSInternalPromise), sizeof(JSC::SourceOrigin), sizeof(JSC::SourceCode), sizeof(JSC::JSFunction), sizeof(JSC::JSGlobalObject), sizeof(WTF::URL), sizeof(WTF::String), sizeof(JSC::JSValue), sizeof(JSC::PropertyName), sizeof(JSC::Exception), sizeof(JSC::VM), sizeof(JSC::ThrowScope), sizeof(JSC::CatchScope), sizeof(JSC::Identifier), sizeof(WTF::StringImpl), sizeof(WTF::ExternalStringImpl), sizeof(WTF::StringView), sizeof(FFI__ptr), sizeof(Zig::GlobalObject), sizeof(Bun__Path), sizeof(ArrayBufferSink), sizeof(HTTPSResponseSink), sizeof(HTTPResponseSink)};
|
|
|
|
const char* names[33] = {"JSC__JSObject", "WebCore__DOMURL", "WebCore__FetchHeaders", "SystemError", "JSC__JSCell", "JSC__JSString", "Inspector__ScriptArguments", "JSC__JSModuleLoader", "JSC__JSModuleRecord", "JSC__JSPromise", "JSC__JSInternalPromise", "JSC__SourceOrigin", "JSC__SourceCode", "JSC__JSFunction", "JSC__JSGlobalObject", "WTF__URL", "WTF__String", "JSC__JSValue", "JSC__PropertyName", "JSC__Exception", "JSC__VM", "JSC__ThrowScope", "JSC__CatchScope", "JSC__Identifier", "WTF__StringImpl", "WTF__ExternalStringImpl", "WTF__StringView", "FFI__ptr", "Zig__GlobalObject", "Bun__Path", "ArrayBufferSink", "HTTPSResponseSink", "HTTPResponseSink"};
|
|
|
|
const size_t aligns[33] = {alignof(JSC::JSObject), alignof(WebCore::DOMURL), alignof(WebCore::FetchHeaders), alignof(SystemError), alignof(JSC::JSCell), alignof(JSC::JSString), alignof(Inspector::ScriptArguments), alignof(JSC::JSModuleLoader), alignof(JSC::JSModuleRecord), alignof(JSC::JSPromise), alignof(JSC::JSInternalPromise), alignof(JSC::SourceOrigin), alignof(JSC::SourceCode), alignof(JSC::JSFunction), alignof(JSC::JSGlobalObject), alignof(WTF::URL), alignof(WTF::String), alignof(JSC::JSValue), alignof(JSC::PropertyName), alignof(JSC::Exception), alignof(JSC::VM), alignof(JSC::ThrowScope), alignof(JSC::CatchScope), alignof(JSC::Identifier), alignof(WTF::StringImpl), alignof(WTF::ExternalStringImpl), alignof(WTF::StringView), alignof(FFI__ptr), alignof(Zig::GlobalObject), alignof(Bun__Path), alignof(ArrayBufferSink), alignof(HTTPSResponseSink), alignof(HTTPResponseSink)};
|