path
stringlengths
14
112
content
stringlengths
0
6.32M
size
int64
0
6.32M
max_lines
int64
1
100k
repo_name
stringclasses
2 values
autogenerated
bool
1 class
cosmopolitan/libc/testlib/viewables.txt
VIEWABLE UNICODE CHARACTERS According To PragmataPro Basic Latin ═══════════════════════════════════════════════════════ 0000 │ 0 1 2 3 4 5 6 7 8 9 a b c d e f ──────────â”...
76,529
925
jart/cosmopolitan
false
cosmopolitan/libc/testlib/hyperion.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,104
34
jart/cosmopolitan
false
cosmopolitan/libc/testlib/thrashcodecache.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,450
50
jart/cosmopolitan
false
cosmopolitan/libc/testlib/globals.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,978
25
jart/cosmopolitan
false
cosmopolitan/libc/testlib/thunks.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,939
25
jart/cosmopolitan
false
cosmopolitan/libc/testlib/hyperion.h
#ifndef COSMOPOLITAN_LIBC_TESTLIB_HYPERION_H_ #define COSMOPOLITAN_LIBC_TESTLIB_HYPERION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ extern size_t kHyperionSize; extern char kHyperion[]; extern uint8_t kHyperionZip[]; extern size_t kMobySize; extern char kMoby[]; extern uint8_t kMobyZip[]; COSMOPO...
431
17
jart/cosmopolitan
false
cosmopolitan/libc/testlib/moby.h
#ifndef COSMOPOLITAN_LIBC_TESTLIB_MOBY_H_ #define COSMOPOLITAN_LIBC_TESTLIB_MOBY_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ extern size_t kMobySize; extern char kMoby[]; extern uint8_t kMobyZip[]; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_TESTLI...
333
13
jart/cosmopolitan
false
cosmopolitan/libc/testlib/testrunner.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
8,582
249
jart/cosmopolitan
false
cosmopolitan/libc/testlib/clearxmmregisters.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,175
33
jart/cosmopolitan
false
cosmopolitan/libc/testlib/viewables.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,109
34
jart/cosmopolitan
false
cosmopolitan/libc/testlib/benchrunner.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,366
71
jart/cosmopolitan
false
cosmopolitan/libc/testlib/geterrno.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,942
25
jart/cosmopolitan
false
cosmopolitan/libc/testlib/quota.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
4,225
106
jart/cosmopolitan
false
cosmopolitan/libc/testlib/ezbenchcontrol.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,690
47
jart/cosmopolitan
false
cosmopolitan/libc/testlib/contains.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,163
28
jart/cosmopolitan
false
cosmopolitan/libc/testlib/blocktronics.h
#ifndef COSMOPOLITAN_LIBC_TESTLIB_BLOCKTRONICS_H_ #define COSMOPOLITAN_LIBC_TESTLIB_BLOCKTRONICS_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ extern size_t kBlocktronicsSize; extern char kBlocktronics[]; extern uint8_t kBlocktronicsZip[]; COSMOPOLITAN_C_END_ #endif /* !(__ASSEMBLER__ + __LINKER__ + ...
381
13
jart/cosmopolitan
false
cosmopolitan/libc/testlib/polluteregisters.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
4,011
127
jart/cosmopolitan
false
cosmopolitan/libc/testlib/formatbinaryashex.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,448
40
jart/cosmopolitan
false
cosmopolitan/libc/testlib/memoryexists.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,429
70
jart/cosmopolitan
false
cosmopolitan/libc/testlib/fastrandomstring.h
#ifndef COSMOPOLITAN_LIBC_TESTLIB_FASTRANDOMSTRING_H_ #define COSMOPOLITAN_LIBC_TESTLIB_FASTRANDOMSTRING_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) static inline const char *FastRandomString(void) { static unsigned long t; static union { unsigned long x; char b[sizeof(unsigned long)]; } u; u.x = (t = (t ...
491
17
jart/cosmopolitan
false
cosmopolitan/libc/testlib/hyperion.txt
The fall of Hyperion - a Dream John Keats CANTO I Fanatics have their dreams, wherewith they weave A paradise for a sect; the savage too From forth the loftiest fashion of his sleep Guesses at Heaven; pity these have not Trac'd upon vellum or wild Indian leaf The shadows of melodious utterance. But bare of laurel th...
22,851
548
jart/cosmopolitan
false
cosmopolitan/libc/testlib/blocktronics.txt
░▄██▒▄█ ▐██ ░░░ ▀▀████▒▀█▄ ▐███▓██░ ██▌ ▀████▄■█▄ ▐█▓███▀█░██▀ ░ ░▀█████▓▄ ▐█▓██▀▄█▒██▀ ▄▄░...
3,193
33
jart/cosmopolitan
false
cosmopolitan/libc/testlib/ezbenchreport.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
4,288
89
jart/cosmopolitan
false
cosmopolitan/libc/testlib/getcore.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,044
31
jart/cosmopolitan
false
cosmopolitan/libc/testlib/endswith.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,213
29
jart/cosmopolitan
false
cosmopolitan/libc/testlib/runner.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,644
44
jart/cosmopolitan
false
cosmopolitan/libc/testlib/combo.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,321
42
jart/cosmopolitan
false
cosmopolitan/libc/testlib/strerror.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,986
26
jart/cosmopolitan
false
cosmopolitan/libc/testlib/binequals.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,412
41
jart/cosmopolitan
false
cosmopolitan/libc/testlib/bench.h
#ifndef COSMOPOLITAN_LIBC_BENCH_H_ #define COSMOPOLITAN_LIBC_BENCH_H_ #include "libc/nexgen32e/bench.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /** * @fileoverview Microbenchmarking Toolz. */ #define BENCHLOOPER(START, STOP, N, EXPR) \ ({ \ long Iter = ...
2,082
50
jart/cosmopolitan
false
cosmopolitan/libc/testlib/almostequalf.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,332
29
jart/cosmopolitan
false
cosmopolitan/libc/testlib/testlib.mk
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐ #───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘ # Description: # Cosmopolitan Testing Library. PKGS += LIBC_TESTLIB #───────────────â”...
8,515
241
jart/cosmopolitan
false
cosmopolitan/libc/testlib/yield.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,949
25
jart/cosmopolitan
false
cosmopolitan/libc/testlib/hexequals.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,467
43
jart/cosmopolitan
false
cosmopolitan/libc/testlib/shoulddebugbreak.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,904
22
jart/cosmopolitan
false
cosmopolitan/libc/testlib/fixturerunner.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,832
46
jart/cosmopolitan
false
cosmopolitan/libc/testlib/bench.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,352
43
jart/cosmopolitan
false
cosmopolitan/libc/testlib/almostequallongdouble.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,121
29
jart/cosmopolitan
false
cosmopolitan/libc/testlib/waitforexit.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,200
66
jart/cosmopolitan
false
cosmopolitan/libc/testlib/ezbenchwarn.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,054
27
jart/cosmopolitan
false
cosmopolitan/libc/testlib/formatstr.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,508
47
jart/cosmopolitan
false
cosmopolitan/libc/stubs/gcov.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,459
62
jart/cosmopolitan
false
cosmopolitan/libc/stubs/instrumentation.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,180
33
jart/cosmopolitan
false
cosmopolitan/libc/stubs/pututxline.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,019
28
jart/cosmopolitan
false
cosmopolitan/libc/stubs/debugbreak.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,091
32
jart/cosmopolitan
false
cosmopolitan/libc/stubs/stackguard.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,258
45
jart/cosmopolitan
false
cosmopolitan/libc/stubs/xnu.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,899
23
jart/cosmopolitan
false
cosmopolitan/libc/stubs/abort.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,087
34
jart/cosmopolitan
false
cosmopolitan/libc/stubs/retpoline.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
1,959
25
jart/cosmopolitan
false
cosmopolitan/libc/stubs/stubs.mk
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐ #───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘ # # SYNOPSIS # # Universally Linkable Weak Functions # # DESCRIPTION # # This package contains no-op implementations...
1,776
57
jart/cosmopolitan
false
cosmopolitan/libc/stubs/stackchkguard.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,339
40
jart/cosmopolitan
false
cosmopolitan/libc/stubs/typeinfo.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,084
27
jart/cosmopolitan
false
cosmopolitan/libc/stubs/panic.S
/*-*- mode:unix-assembly; indent-tabs-mode:t; tab-width:8; coding:utf-8 -*-│ │vi: set et ft=asm ts=8 tw=8 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,068
33
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfdynstringtable.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,477
41
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfsectionname.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,136
27
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfdynsymboltable.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,447
38
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfstringtable.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,474
41
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfsegmentheaderaddress.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,181
28
jart/cosmopolitan
false
cosmopolitan/libc/elf/checkelfaddress.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,359
33
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfsymboltable.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,441
38
jart/cosmopolitan
false
cosmopolitan/libc/elf/elf.h
#ifndef COSMOPOLITAN_LIBC_ELF_H_ #define COSMOPOLITAN_LIBC_ELF_H_ #include "libc/elf/struct/ehdr.h" #include "libc/elf/struct/phdr.h" #include "libc/elf/struct/shdr.h" #include "libc/elf/struct/sym.h" #include "libc/runtime/ezmap.internal.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ /*─────...
2,012
35
jart/cosmopolitan
false
cosmopolitan/libc/elf/scalar.h
#ifndef COSMOPOLITAN_LIBC_ELF_SCALAR_H_ #define COSMOPOLITAN_LIBC_ELF_SCALAR_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) #define Elf64_Addr uint64_t #define Elf64_Half uint16_t #define Elf64_Off uint64_t #define Elf64_Section uint16_t #define Elf64_Sword int32_t #define Elf64_Sxword int64_t #define Elf64_Ver...
522
18
jart/cosmopolitan
false
cosmopolitan/libc/elf/pf2prot.internal.h
#ifndef COSMOPOLITAN_LIBC_ELF_PF2PROT_INTERNAL_H_ #define COSMOPOLITAN_LIBC_ELF_PF2PROT_INTERNAL_H_ #include "libc/elf/def.h" #define _PF2PROT(x) ((PF_R & (x)) >> 2 | (PF_W & (x)) | (PF_X & (x)) << 2) #endif /* COSMOPOLITAN_LIBC_ELF_PF2PROT_INTERNAL_H_ */
258
8
jart/cosmopolitan
false
cosmopolitan/libc/elf/def.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_DEF_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_DEF_H_ /** * @fileoverview Executable and Linkable Format Definitions. */ #define EI_NIDENT 16 #define EI_MAG0 0 #define EI_MAG1 1 #define EI_MAG2 2 #define EI_MAG3 3 #define ELFMAG "\177ELF" #define ELFMAG0 0x7f #define ELFMAG1 'E'...
16,583
552
jart/cosmopolitan
false
cosmopolitan/libc/elf/iself64binary.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,155
28
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfvirtualaddressrange.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,489
40
jart/cosmopolitan
false
cosmopolitan/libc/elf/iselfsymbolcontent.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,060
25
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfstrs.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,481
40
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfsectionheaderaddress.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,183
28
jart/cosmopolitan
false
cosmopolitan/libc/elf/elf.mk
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐ #───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘ PKGS += LIBC_ELF LIBC_ELF_ARTIFACTS += LIBC_ELF_A LIBC_ELF = $(LIBC_ELF_A_DEPS) $(LIBC_ELF_A) LIBC_ELF_A = o/$(MODE)/l...
1,625
52
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfsectionaddress.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,161
29
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfstring.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,277
32
jart/cosmopolitan
false
cosmopolitan/libc/elf/getelfsectionnamestringtable.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,107
26
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/verneed.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_VERNEED_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_VERNEED_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Verneed { Elf64_Half vn_version; Elf64_Half vn_cnt; Elf64_Word vn_file; Elf64_Word vn_aux; Elf64_Word vn_next; } Elf64_Vernee...
424
16
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/verdaux.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_VERDAUX_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_VERDAUX_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Verdaux { Elf64_Word vda_name; Elf64_Word vda_next; } Elf64_Verdaux; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSM...
359
13
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/nhdr.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_NHDR_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_NHDR_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Nhdr { Elf64_Word n_namesz; Elf64_Word n_descsz; Elf64_Word n_type; } Elf64_Nhdr; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endi...
365
14
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/move.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_MOVE_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_MOVE_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Move { Elf64_Xword m_value; Elf64_Xword m_info; Elf64_Xword m_poffset; Elf64_Half m_repeat; Elf64_Half m_stride; } Elf64_Move; #en...
414
16
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/dyn.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_DYN_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_DYN_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Dyn { Elf64_Sxword d_tag; union { Elf64_Xword d_val; Elf64_Addr d_ptr; } d_un; } Elf64_Dyn; #endif /* !(__ASSEMBLER__ + __LINKER...
380
16
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/ehdr.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_EHDR_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_EHDR_H_ #include "libc/elf/def.h" #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) #define EI_NIDENT 16 typedef struct Elf64_Ehdr { unsigned char e_ident[EI_NIDENT]; Elf64_Half e_type; Elf64_Half e_machine; Elf...
681
28
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/rela.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_RELA_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_RELA_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Rela { /*u64*/ Elf64_Addr r_offset; /* * ELF64_R_SYM(r_info) → sym * ELF64_R_TYPE(r_info) → R_X86_64_{64,PC32,GOTPCRELX,...} ...
569
19
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/verdef.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_VERDEF_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_VERDEF_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Verdef { Elf64_Half vd_version; Elf64_Half vd_flags; Elf64_Half vd_ndx; Elf64_Half vd_cnt; Elf64_Word vd_hash; Elf64_Word vd_...
463
18
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/auxv.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_AUXV_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_AUXV_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_auxv_t { uint64_t a_type; union { uint64_t a_val; } a_un; } Elf64_auxv_t; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* COSMOPOLITAN_LIBC_ELF_STRUCT...
332
14
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/lib.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_LIB_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_LIB_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Lib { Elf64_Word l_name; Elf64_Word l_time_stamp; Elf64_Word l_checksum; Elf64_Word l_version; Elf64_Word l_flags; } Elf64_Lib; #end...
412
16
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/vernaux.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_VERNAUX_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_VERNAUX_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Vernaux { Elf64_Word vna_hash; Elf64_Half vna_flags; Elf64_Half vna_other; Elf64_Word vna_name; Elf64_Word vna_next; } Elf64_...
430
16
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/sym.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_SYM_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_SYM_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Sym { Elf64_Word st_name; /* ELF64_ST_TYPE(st_info) → STT_{NOTYPE,OBJECT,FUNC,SECTION,FILE,COMMON,...} * ELF64_ST_BIND(st_info) → ST...
680
21
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/syminfo.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_SYMINFO_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_SYMINFO_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Syminfo { Elf64_Half si_boundto; Elf64_Half si_flags; } Elf64_Syminfo; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */ #endif /* CO...
361
13
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/phdr.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_PHDR_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_PHDR_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Phdr { Elf64_Word p_type; Elf64_Word p_flags; Elf64_Off p_offset; Elf64_Addr p_vaddr; Elf64_Addr p_paddr; Elf64_Xword p_filesz; ...
477
19
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/shdr.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_SHDR_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_SHDR_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) /** * Section header. * @see https://docs.oracle.com/cd/E19683-01/816-1386/chapter6-94076/index.html */ typedef struct Elf64_Shdr { Elf64_Word sh_name; Elf...
1,035
33
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/rel.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_REL_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_REL_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Rel { Elf64_Addr r_offset; Elf64_Xword r_info; /** @see ELF64_R_{SYM,SIZE,INFO} */ } Elf64_Rel; #endif /* !(__ASSEMBLER__ + __LINKER__ + 0...
374
13
jart/cosmopolitan
false
cosmopolitan/libc/elf/struct/chdr.h
#ifndef COSMOPOLITAN_LIBC_ELF_STRUCT_CHDR_H_ #define COSMOPOLITAN_LIBC_ELF_STRUCT_CHDR_H_ #include "libc/elf/scalar.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) typedef struct Elf64_Chdr { Elf64_Word ch_type; Elf64_Word ch_reserved; Elf64_Xword ch_size; Elf64_Xword ch_addralign; } Elf64_Chdr; #endif /* !(__ASSEMB...
397
15
jart/cosmopolitan
false
cosmopolitan/libc/dns/rfc0226.txt
NETWORK WORKING GROUP PEGGY KARP REQUEST FOR COMMENTS #226 MITRE NIC #7625 20 SEPT 71 CATEGORIES: D.3 UPDATES: NONE OBSOLETES: NONE STANDARDIZATION OF HOST MNEUMONICS IN EACH TELNET I...
2,012
60
jart/cosmopolitan
false
cosmopolitan/libc/dns/parseresolvconf.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,383
69
jart/cosmopolitan
false
cosmopolitan/libc/dns/gethostbyaddr.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
3,527
59
jart/cosmopolitan
false
cosmopolitan/libc/dns/dnsquestion.h
#ifndef COSMOPOLITAN_LIBC_DNS_DNSQUESTION_H_ #define COSMOPOLITAN_LIBC_DNS_DNSQUESTION_H_ #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ struct DnsQuestion { const char *qname; uint16_t qtype; uint16_t qclass; }; int SerializeDnsQuestion(uint8_t *, size_t, const struct DnsQuestion *); COSMOPOLITAN...
425
17
jart/cosmopolitan
false
cosmopolitan/libc/dns/resolvednsreverse.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
5,914
129
jart/cosmopolitan
false
cosmopolitan/libc/dns/pascalifydnsname.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,875
59
jart/cosmopolitan
false
cosmopolitan/libc/dns/gethoststxt.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
4,345
107
jart/cosmopolitan
false
cosmopolitan/libc/dns/servicestxt.h
#ifndef COSMOPOLITAN_LIBC_DNS_SERVICESTXT_H_ #define COSMOPOLITAN_LIBC_DNS_SERVICESTXT_H_ #include "libc/sock/sock.h" #include "libc/stdio/stdio.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ int LookupServicesByPort(const int, char *, size_t, char *, size_t, const char *) para...
681
19
jart/cosmopolitan
false
cosmopolitan/libc/dns/resolvehostsreverse.c
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞═════════════════════════════════════════════════â•...
2,889
54
jart/cosmopolitan
false
cosmopolitan/libc/dns/dns.h
#ifndef COSMOPOLITAN_LIBC_DNS_DNS_H_ #define COSMOPOLITAN_LIBC_DNS_DNS_H_ #include "libc/calls/weirdtypes.h" #include "libc/dns/resolvconf.h" #include "libc/sock/sock.h" #include "libc/sock/struct/sockaddr.h" #define DNS_PORT 53 #define DNS_NAME_MAX 253 #define DNS_LABEL_MAX 63 #define EAI_SUCCESS 0 #define...
2,497
84
jart/cosmopolitan
false