mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-10 08:42:02 +03:00
remove wrap_write helper from vdprintf
this reverts commit4ee039f354
, which added the helper as a hack to make vdprintf usable before relocation, contingent on strong assumptions about the arch and tooling, back when the dynamic linker did not have a real staged model for self-relocation. since commitf3ddd17380
this has been unnecessary and the function was just wasting size and execution time.
This commit is contained in:
parent
d20558148d
commit
a01f1fe66f
@ -1,14 +1,9 @@
|
||||
#include "stdio_impl.h"
|
||||
|
||||
static size_t wrap_write(FILE *f, const unsigned char *buf, size_t len)
|
||||
{
|
||||
return __stdio_write(f, buf, len);
|
||||
}
|
||||
|
||||
int vdprintf(int fd, const char *restrict fmt, va_list ap)
|
||||
{
|
||||
FILE f = {
|
||||
.fd = fd, .lbf = EOF, .write = wrap_write,
|
||||
.fd = fd, .lbf = EOF, .write = __stdio_write,
|
||||
.buf = (void *)fmt, .buf_size = 0,
|
||||
.lock = -1
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user