aboutsummaryrefslogtreecommitdiff
path: root/libio/libio.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-10 08:46:33 +0000
committerRoland McGrath <roland@gnu.org>2000-03-10 08:46:33 +0000
commitb4e54243c42ac249943bb6904cd74c82d0350e02 (patch)
treed7e3139873ccad36c0116d70b61f39fa364de870 /libio/libio.h
parent418f095a3ef195e3188a969050a831f0ec96d793 (diff)
downloadglibc-b4e54243c42ac249943bb6904cd74c82d0350e02.tar
glibc-b4e54243c42ac249943bb6904cd74c82d0350e02.tar.gz
glibc-b4e54243c42ac249943bb6904cd74c82d0350e02.tar.bz2
glibc-b4e54243c42ac249943bb6904cd74c82d0350e02.zip
* mach/devstream.c (devstream_write, devstream_read): New functions.
(input, output): Functions removed. (mach_open_devstream): Use devstream_{read,write} as cookie functions, using only the vanilla fopencookie interface. * hurd/fopenport.c [! USE_IN_LIBIO] (cookie_io_functions_t): Define as macro for __io_functions. (funcsio): Use cookie_io_functions_t type name. (fopenport): Renamed from __fopenport. Rewrite to call fopencookie. * libio/iofopncook.c (_IO_cookie_init): New function, broken out of fopencookie. (fopencookie): Use it. * libio/libio.h: Declare _IO_cookie_init. * hurd/vpprintf.c (vpprintf) [USE_IN_LIBIO]: Implement using _IO_cookie_init. * libio/libio.h (__io_seek_fn): Fix second argument type to be a pointer, in line with the manual and the old stdio. * libio/iofopncook.c (_IO_cookie_seek): Fix (sole) caller. * sysdeps/generic/bits/stdio-lock.h: New file. This is a stub with #error, but that's better than no file at all. * sysdeps/unix/sysv/linux/alpha/syscall.S: * manual/message.texi (Using gettextized software): * manual/filesys.texi (File Size): * manual/charset.texi (glibc iconv Implementation): * locale/programs/ld-collate.c (collate_output): * manual/stdio.texi (Output Conversion Syntax):
Diffstat (limited to 'libio/libio.h')
-rw-r--r--libio/libio.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libio/libio.h b/libio/libio.h
index c8f93ac0f3..8fdc55a890 100644
--- a/libio/libio.h
+++ b/libio/libio.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,94,95,97,98,99 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,93,94,95,97,98,99,2000 Free Software Foundation, Inc.
This file is part of the GNU IO Library.
Written by Per Bothner <bothner@cygnus.com>.
@@ -346,7 +346,7 @@ typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
or the end of the file (if W is SEEK_END).
Set *POS to the new file position.
Returns zero if successful, nonzero if not. */
-typedef int __io_seek_fn (void *__cookie, _IO_off_t __pos, int __w);
+typedef int __io_seek_fn (void *__cookie, _IO_off64_t *__pos, int __w);
/* Close COOKIE. */
typedef int __io_close_fn (void *__cookie);
@@ -377,6 +377,10 @@ struct _IO_cookie_file
void *__cookie;
_IO_cookie_io_functions_t __io_functions;
};
+
+/* Initialize one of those. */
+extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write,
+ void *__cookie, _IO_cookie_io_functions_t __fns);
#endif