summaryrefslogtreecommitdiff
path: root/exec
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-01-28 22:07:58 +0000
committerRoland McGrath <roland@gnu.org>1995-01-28 22:07:58 +0000
commitcc1c413e5fc56546d700e9d5156f76f1ffafe216 (patch)
tree0fb50ebad868c0f8652584a05630b16113330e2a /exec
parent8ff69ce0b0dca330c596bb5276aaa653d049763e (diff)
(prepare): Give the stream a seek function.
Diffstat (limited to 'exec')
-rw-r--r--exec/exec.c2
1 files changed, 2 insertions, 0 deletions
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;