mailing list of musl libc
 help / color / mirror / code / Atom feed
7c5145ced93d946e59bd2b5f1f668c829f97dffa blob 440 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
#include <stdio_impl.h>

int __toread(FILE *f)
{
	f->mode |= f->mode-1;
	if (f->wpos > f->buf) f->write(f, 0, 0);
	f->wpos = f->wbase = f->wend = 0;
	if (f->flags & (F_EOF|F_NORD)) {
		if (f->flags & F_NORD) f->flags |= F_ERR;
		return EOF;
	}
	f->rpos = f->rend = f->buf;
	return 0;
}

WEAK_PROVIDE_DUMMY;
_Readonly_alias int const __towrite_used;

void __stdio_exit(void);

void __seek_on_exit()
{
	if (!__towrite_used) __stdio_exit();
}
debug log:

solving 7c5145c ...
found 7c5145c in https://inbox.vuxu.org/musl/cec5070e43b6a06a77908c926d8822ed58baa458.1360968989.git.Jens.Gustedt@inria.fr/
found 2e804f6 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 2e804f641dbd8a2363f88c4c08696e1f89627d08	src/stdio/__toread.c

applying [1/1] https://inbox.vuxu.org/musl/cec5070e43b6a06a77908c926d8822ed58baa458.1360968989.git.Jens.Gustedt@inria.fr/
diff --git a/src/stdio/__toread.c b/src/stdio/__toread.c
index 2e804f6..7c5145c 100644

Checking patch src/stdio/__toread.c...
Applied patch src/stdio/__toread.c cleanly.

index at:
100644 7c5145ced93d946e59bd2b5f1f668c829f97dffa	src/stdio/__toread.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).