Skip to content

Instantly share code, notes, and snippets.

View tesuji's full-sized avatar
🦀
...

tesuji

🦀
...
  • D28DBB1A0E26FEDA
View GitHub Profile
@tesuji
tesuji / request2size.c
Last active November 5, 2019 10:06
glibc 2.29
//! from glibc-2.29
#include <stdio.h>
#include <stdlib.h>
#define INTERNAL_SIZE_T size_t
#define SIZE_SZ sizeof(INTERNAL_SIZE_T)
struct malloc_chunk {
INTERNAL_SIZE_T mchunk_prev_size; /* Size of previous chunk (if free). */
INTERNAL_SIZE_T mchunk_size; /* Size in bytes, including overhead. */
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tesuji
tesuji / config.toml.diff
Created April 26, 2020 14:35
config.toml of rustc
--- config.toml.example 2020-04-25 15:21:35.799043057 +0000
+++ config.toml 2020-04-25 16:03:27.412416851 +0000
@@ -36,7 +36,7 @@
#assertions = false
# Indicates whether ccache is used when building LLVM
-#ccache = false
+ccache = true
# or alternatively ...
#ccache = "/path/to/ccache"
# Sample TOML configuration file for building Rust.
changelog-seen = 1
# =============================================================================
# Tweaking how LLVM is compiled
# =============================================================================
[llvm]
# Whether to use Rust CI built LLVM instead of locally building it.
#