Current Path: > > opt > alt > > ruby34 > include > ruby
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
backward | Directory | - | - | |
fiber | Directory | - | - | |
internal | Directory | - | - | |
io | Directory | - | - | |
assert.h | File | 10493 bytes | May 29 2025 13:39:39. | |
atomic.h | File | 28286 bytes | May 29 2025 13:39:39. | |
backward.h | File | 1142 bytes | May 29 2025 13:39:39. | |
config.h | File | 14617 bytes | May 29 2025 13:39:39. | |
debug.h | File | 29987 bytes | May 29 2025 13:39:39. | |
defines.h | File | 2822 bytes | May 29 2025 13:39:39. | |
digest.h | File | 3175 bytes | May 29 2025 13:39:39. | |
encoding.h | File | 1312 bytes | May 29 2025 13:39:39. | |
intern.h | File | 2357 bytes | May 29 2025 13:39:39. | |
io.h | File | 37713 bytes | May 29 2025 13:39:38. | |
memory_view.h | File | 11038 bytes | May 29 2025 13:39:39. | |
missing.h | File | 6833 bytes | May 29 2025 13:39:39. | |
onigmo.h | File | 44951 bytes | May 29 2025 13:39:39. | |
oniguruma.h | File | 262 bytes | May 29 2025 13:39:39. | |
ractor.h | File | 8922 bytes | May 29 2025 13:39:39. | |
random.h | File | 11782 bytes | May 29 2025 13:39:39. | |
re.h | File | 6802 bytes | May 29 2025 13:39:38. | |
regex.h | File | 1011 bytes | May 29 2025 13:39:39. | |
ruby.h | File | 15096 bytes | May 29 2025 13:39:39. | |
st.h | File | 7657 bytes | May 29 2025 13:39:39. | |
subst.h | File | 806 bytes | May 29 2025 13:39:39. | |
thread.h | File | 12581 bytes | May 29 2025 13:39:39. | |
thread_native.h | File | 6834 bytes | May 29 2025 13:39:39. | |
util.h | File | 8777 bytes | May 29 2025 13:39:39. | |
version.h | File | 4875 bytes | May 29 2025 13:39:39. | |
vm.h | File | 2304 bytes | May 29 2025 13:39:39. |
/************************************************ digest.h - header file for ruby digest modules $Author$ created at: Fri May 25 08:54:56 JST 2001 Copyright (C) 2001-2006 Akinori MUSHA $RoughId: digest.h,v 1.3 2001/07/13 15:38:27 knu Exp $ $Id$ ************************************************/ #include "ruby.h" #define RUBY_DIGEST_API_VERSION 3 typedef int (*rb_digest_hash_init_func_t)(void *); typedef void (*rb_digest_hash_update_func_t)(void *, unsigned char *, size_t); typedef int (*rb_digest_hash_finish_func_t)(void *, unsigned char *); typedef struct { int api_version; size_t digest_len; size_t block_len; size_t ctx_size; rb_digest_hash_init_func_t init_func; rb_digest_hash_update_func_t update_func; rb_digest_hash_finish_func_t finish_func; } rb_digest_metadata_t; #define DEFINE_UPDATE_FUNC_FOR_UINT(name) \ void \ rb_digest_##name##_update(void *ctx, unsigned char *ptr, size_t size) \ { \ const unsigned int stride = 16384; \ \ for (; size > stride; size -= stride, ptr += stride) { \ name##_Update(ctx, ptr, stride); \ } \ /* Since size <= stride, size should fit into an unsigned int */ \ if (size > 0) name##_Update(ctx, ptr, (unsigned int)size); \ } #define DEFINE_FINISH_FUNC_FROM_FINAL(name) \ int \ rb_digest_##name##_finish(void *ctx, unsigned char *ptr) \ { \ return name##_Final(ptr, ctx); \ } static inline VALUE rb_digest_namespace(void) { rb_require("digest"); return rb_path2class("Digest"); } static inline ID rb_id_metadata(void) { return rb_intern_const("metadata"); } #if !defined(HAVE_RB_EXT_RESOLVE_SYMBOL) #elif !defined(RUBY_UNTYPED_DATA_WARNING) # error RUBY_UNTYPED_DATA_WARNING is not defined #elif RUBY_UNTYPED_DATA_WARNING /* rb_ext_resolve_symbol() has been defined since Ruby 3.3, but digest * bundled with 3.3 didn't use it. */ # define DIGEST_USE_RB_EXT_RESOLVE_SYMBOL 1 #endif static inline VALUE rb_digest_make_metadata(const rb_digest_metadata_t *meta) { #if defined(EXTSTATIC) && EXTSTATIC /* The extension is built as a static library, so safe to refer to * rb_digest_wrap_metadata directly. */ extern VALUE rb_digest_wrap_metadata(const rb_digest_metadata_t *meta); return rb_digest_wrap_metadata(meta); #else /* The extension is built as a shared library, so we can't refer * to rb_digest_wrap_metadata directly. */ # ifdef DIGEST_USE_RB_EXT_RESOLVE_SYMBOL /* If rb_ext_resolve_symbol() is available, use it to get the address of * rb_digest_wrap_metadata. */ typedef VALUE (*wrapper_func_type)(const rb_digest_metadata_t *meta); static wrapper_func_type wrapper; if (!wrapper) { wrapper = (wrapper_func_type)(uintptr_t) rb_ext_resolve_symbol("digest.so", "rb_digest_wrap_metadata"); if (!wrapper) rb_raise(rb_eLoadError, "rb_digest_wrap_metadata not found"); } return wrapper(meta); # else /* If rb_ext_resolve_symbol() is not available, keep using untyped * data. */ # undef RUBY_UNTYPED_DATA_WARNING # define RUBY_UNTYPED_DATA_WARNING 0 return rb_obj_freeze(Data_Wrap_Struct(0, 0, 0, (void *)meta)); # endif #endif }
SILENT KILLER Tool