mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Clean up more code
The *NSYNC linked list API is good enough that it deserves to be part of the C libray, so this change writes an improved version of it which uses that offsetof() trick from the Linux Kernel. We vendor all of the *NSYNC tests in third_party which helped confirm the needed refactoring is safe This change also deletes more old code that didn't pan out. My goal here is to work towards a vision where the Cosmopolitan core libraries become less experimental and more focused on curation. This better reflects the current level of quality we've managed to achieve.
This commit is contained in:
parent
88612a2cd7
commit
0a24b4fc3c
268 changed files with 632 additions and 8688 deletions
|
@ -3,7 +3,6 @@
|
|||
#ifndef __STRICT_ANSI__
|
||||
#include "libc/dce.h"
|
||||
#include "libc/elf/struct/ehdr.h"
|
||||
#include "libc/runtime/ezmap.internal.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
||||
#define STACK_CEIL 0x700000000000ul
|
||||
|
@ -40,7 +39,6 @@ void __asan_init(int, char **, char **, intptr_t *) _Hide;
|
|||
void _jmpstack(void *, void *, ...) _Hide wontreturn;
|
||||
long _setstack(void *, void *, ...) _Hide;
|
||||
int GetDosArgv(const char16_t *, char *, size_t, char **, size_t);
|
||||
Elf64_Ehdr *MapElfRead(const char *, struct MappedFile *) _Hide;
|
||||
int GetDosEnviron(const char16_t *, char *, size_t, char **, size_t);
|
||||
bool __intercept_flag(int *, char *[], const char *);
|
||||
int sys_mprotect_nt(void *, size_t, int) _Hide;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue