From cc1c413e5fc56546d700e9d5156f76f1ffafe216 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 28 Jan 1995 22:07:58 +0000 Subject: (prepare): Give the stream a seek function. --- exec/exec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'exec/exec.c') diff --git a/exec/exec.c b/exec/exec.c index 02942b3f..fa04c771 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -679,6 +679,8 @@ prepare (file_t file, struct execdata *e) e->stream.__mode.__read = 1; e->stream.__userbuf = 1; e->stream.__room_funcs.__input = input_room; + /* This never gets called, but fseek returns ESPIPE if it's null. */ + e->stream.__io_funcs.seek = __stdio_seek; e->stream.__io_funcs.close = close_exec_stream; e->stream.__cookie = e; e->stream.__seen = 1; -- cgit v1.2.3