Add minor improvements and cleanup

This commit is contained in:
Justine Tunney 2020-10-27 03:39:46 -07:00
parent 9e3e985ae5
commit feed0d2b0e
163 changed files with 2286 additions and 2245 deletions

View file

@ -25,18 +25,18 @@
.source __FILE__
.init.start 400,_init_g_stderr
lea g_stderr(%rip),%rax
ezlea g_stderr,ax
push $_IOLBF
pop (%rax) # f.fd
push STDERR_FILENO
pop 12(%rax)
mov O_WRONLY,%edx
mov %edx,4(%rax) # f.iomode
lea g_stderr_buf(%rip),%rcx
ezlea g_stderr_buf,cx
mov %rcx,24(%rax) # f.buf
movl $BUFSIZ,32(%rax) # f.size
lea fwritebuf(%rip),%rcx
lea fswritebuf(%rip),%rdx
ezlea fwritebuf,cx
ezlea fswritebuf,dx
testb IsMetal()
cmove %rcx,%rdx
mov %rdx,48(%rax) # f.writer

View file

@ -25,14 +25,14 @@
.source __FILE__
.init.start 400,_init_g_stdin
lea g_stdin(%rip),%rax
ezlea g_stdin,ax
mov O_RDONLY,%edx
mov %edx,4(%rax) # f.iomode
lea g_stdin_buf(%rip),%rcx
ezlea g_stdin_buf,cx
mov %rcx,24(%rax) # f.buf
movl $BUFSIZ,32(%rax) # f.size
lea freadbuf(%rip),%rcx
lea fsreadbuf(%rip),%rdx
ezlea freadbuf,cx
ezlea fsreadbuf,dx
testb IsMetal()
cmove %rcx,%rdx
mov %rdx,40(%rax) # f.reader

View file

@ -25,16 +25,16 @@
.source __FILE__
.init.start 400,_init_g_stdout
lea g_stdout(%rip),%rax
ezlea g_stdout,ax
push STDOUT_FILENO
pop 12(%rax) # f.fd
mov O_WRONLY,%edx
mov %edx,4(%rax) # f.iomode
lea g_stdout_buf(%rip),%rcx
ezlea g_stdout_buf,cx
mov %rcx,24(%rax) # f.buf
movl $BUFSIZ,32(%rax) # f.size
lea fwritebuf(%rip),%rcx
lea fswritebuf(%rip),%rdx
ezlea fwritebuf,cx
ezlea fswritebuf,dx
testb IsMetal()
cmovz %rcx,%rdx
mov %rdx,48(%rax) # f.writer

View file

@ -29,7 +29,6 @@ LIBC_STDIO_A_DIRECTDEPS = \
LIBC_BITS \
LIBC_CALLS \
LIBC_CONV \
LIBC_ESCAPE \
LIBC_FMT \
LIBC_MEM \
LIBC_NEXGEN32E \

View file

@ -22,7 +22,6 @@
#include "libc/calls/hefty/ntspawn.h"
#include "libc/calls/internal.h"
#include "libc/dce.h"
#include "libc/escape/escape.h"
#include "libc/mem/mem.h"
#include "libc/nt/accounting.h"
#include "libc/nt/enum/startf.h"