diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-01-19 17:51:34 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-01-19 17:51:34 +0000 |
commit | 284749da8bfa7720960381f6681157f6ab44547d (patch) | |
tree | 04d7d91eb0790ff56bcda167adcd1f3e09ffeed5 /libio/libioP.h | |
parent | 53e9699b6d8562d1f64bb16b558811b766da4e8b (diff) | |
download | glibc-284749da8bfa7720960381f6681157f6ab44547d.tar glibc-284749da8bfa7720960381f6681157f6ab44547d.tar.gz glibc-284749da8bfa7720960381f6681157f6ab44547d.tar.bz2 glibc-284749da8bfa7720960381f6681157f6ab44547d.zip |
Update.
2002-01-19 Ulrich Drepper <drepper@redhat.com>
* libio/fileops.c (_IO_file_underflow_mmap): Don't define as static.
Set offset if read end wasn't the buffer end.
(_IO_file_seekoff_mmap): New function.
(_IO_file_xsgetn_mmap): New function.
(_IO_file_jumps_mmap): Use the two new functions.
* libio/wfileops.c (_IO_wfile_underflow_mmap): Handle end read buffer
!= end buffer.
* libio/libioP.h: Declare _IO_file_seekoff_mmap and
_IO_file_underflow_mmap.
* libio/iofopen.c: Don't position file descriptor at end of file.
* libio/tst-widetext.c: Improve error messages.
* stdio-common/tst-rndseek.c: Likewise.
Diffstat (limited to 'libio/libioP.h')
-rw-r--r-- | libio/libioP.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libio/libioP.h b/libio/libioP.h index f9f44cc0d3..e25a6e7ef1 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,1997,1998,1999,2000,2001 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1997-2001, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -486,12 +486,15 @@ extern int _IO_old_fsetpos64 __P ((_IO_FILE *, const _IO_fpos64_t *)); extern int _IO_file_doallocate __P ((_IO_FILE *)); extern _IO_FILE* _IO_file_setbuf __P ((_IO_FILE *, char *, _IO_ssize_t)); extern _IO_off64_t _IO_file_seekoff __P ((_IO_FILE *, _IO_off64_t, int, int)); +extern _IO_off64_t _IO_file_seekoff_mmap __P ((_IO_FILE *, _IO_off64_t, int, + int)); extern _IO_size_t _IO_file_xsputn __P ((_IO_FILE *, const void *, _IO_size_t)); extern _IO_size_t _IO_file_xsgetn __P ((_IO_FILE *, void *, _IO_size_t)); extern int _IO_file_stat __P ((_IO_FILE *, void *)); extern int _IO_file_close __P ((_IO_FILE *)); extern int _IO_file_close_mmap __P ((_IO_FILE *)); extern int _IO_file_underflow __P ((_IO_FILE *)); +extern int _IO_file_underflow_mmap __P ((_IO_FILE *)); extern int _IO_file_overflow __P ((_IO_FILE *, int)); #define _IO_file_is_open(__fp) ((__fp)->_fileno != -1) extern void _IO_file_init __P ((struct _IO_FILE_plus *)); |