|
|
c6d234 |
commit 24b9788285effddba3d52f174d483583cf820d19
|
|
|
c6d234 |
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
|
|
|
c6d234 |
Date: Thu Dec 4 08:45:55 2014 +0530
|
|
|
c6d234 |
|
|
|
c6d234 |
Fix up function definition style
|
|
|
c6d234 |
|
|
|
c6d234 |
Don't use K&R style for function definitions.
|
|
|
c6d234 |
|
|
|
c6d234 |
Conflicts:
|
|
|
c6d234 |
libio/fileops.c
|
|
|
c6d234 |
|
|
|
c6d234 |
Due to vtable hardening in glibc-rh1398413.patch.
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/libio/fileops.c b/libio/fileops.c
|
|
|
c6d234 |
index ae56437168efc524..29aec8265a0317f6 100644
|
|
|
c6d234 |
--- a/libio/fileops.c
|
|
|
c6d234 |
+++ b/libio/fileops.c
|
|
|
c6d234 |
@@ -139,8 +139,7 @@ extern struct __gconv_trans_data __libio_translit attribute_hidden;
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-_IO_new_file_init_internal (fp)
|
|
|
c6d234 |
- struct _IO_FILE_plus *fp;
|
|
|
c6d234 |
+_IO_new_file_init_internal (struct _IO_FILE_plus *fp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* POSIX.1 allows another file handle to be used to change the position
|
|
|
c6d234 |
of our file descriptor. Hence we actually don't know the actual
|
|
|
c6d234 |
@@ -162,8 +161,7 @@ _IO_new_file_init (struct _IO_FILE_plus *fp)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-_IO_new_file_close_it (fp)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
+_IO_new_file_close_it (_IO_FILE *fp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int write_status;
|
|
|
c6d234 |
if (!_IO_file_is_open (fp))
|
|
|
c6d234 |
@@ -205,9 +203,7 @@ _IO_new_file_close_it (fp)
|
|
|
c6d234 |
libc_hidden_ver (_IO_new_file_close_it, _IO_file_close_it)
|
|
|
c6d234 |
|
|
|
c6d234 |
void
|
|
|
c6d234 |
-_IO_new_file_finish (fp, dummy)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- int dummy;
|
|
|
c6d234 |
+_IO_new_file_finish (_IO_FILE *fp, int dummy)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (_IO_file_is_open (fp))
|
|
|
c6d234 |
{
|
|
|
c6d234 |
@@ -220,13 +216,8 @@ _IO_new_file_finish (fp, dummy)
|
|
|
c6d234 |
libc_hidden_ver (_IO_new_file_finish, _IO_file_finish)
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_FILE *
|
|
|
c6d234 |
-_IO_file_open (fp, filename, posix_mode, prot, read_write, is32not64)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- const char *filename;
|
|
|
c6d234 |
- int posix_mode;
|
|
|
c6d234 |
- int prot;
|
|
|
c6d234 |
- int read_write;
|
|
|
c6d234 |
- int is32not64;
|
|
|
c6d234 |
+_IO_file_open (_IO_FILE *fp, const char *filename, int posix_mode, int prot,
|
|
|
c6d234 |
+ int read_write, int is32not64)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int fdesc;
|
|
|
c6d234 |
#ifdef _LIBC
|
|
|
c6d234 |
@@ -260,11 +251,8 @@ _IO_file_open (fp, filename, posix_mode, prot, read_write, is32not64)
|
|
|
c6d234 |
libc_hidden_def (_IO_file_open)
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_FILE *
|
|
|
c6d234 |
-_IO_new_file_fopen (fp, filename, mode, is32not64)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- const char *filename;
|
|
|
c6d234 |
- const char *mode;
|
|
|
c6d234 |
- int is32not64;
|
|
|
c6d234 |
+_IO_new_file_fopen (_IO_FILE *fp, const char *filename, const char *mode,
|
|
|
c6d234 |
+ int is32not64)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int oflags = 0, omode;
|
|
|
c6d234 |
int read_write;
|
|
|
c6d234 |
@@ -439,9 +427,7 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
|
|
|
c6d234 |
libc_hidden_ver (_IO_new_file_fopen, _IO_file_fopen)
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_FILE *
|
|
|
c6d234 |
-_IO_new_file_attach (fp, fd)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- int fd;
|
|
|
c6d234 |
+_IO_new_file_attach (_IO_FILE *fp, int fd)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (_IO_file_is_open (fp))
|
|
|
c6d234 |
return NULL;
|
|
|
c6d234 |
@@ -461,10 +447,7 @@ _IO_new_file_attach (fp, fd)
|
|
|
c6d234 |
libc_hidden_ver (_IO_new_file_attach, _IO_file_attach)
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_FILE *
|
|
|
c6d234 |
-_IO_new_file_setbuf (fp, p, len)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- char *p;
|
|
|
c6d234 |
- _IO_ssize_t len;
|
|
|
c6d234 |
+_IO_new_file_setbuf (_IO_FILE *fp, char *p, _IO_ssize_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (_IO_default_setbuf (fp, p, len) == NULL)
|
|
|
c6d234 |
return NULL;
|
|
|
c6d234 |
@@ -479,10 +462,7 @@ libc_hidden_ver (_IO_new_file_setbuf, _IO_file_setbuf)
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_FILE *
|
|
|
c6d234 |
-_IO_file_setbuf_mmap (fp, p, len)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- char *p;
|
|
|
c6d234 |
- _IO_ssize_t len;
|
|
|
c6d234 |
+_IO_file_setbuf_mmap (_IO_FILE *fp, char *p, _IO_ssize_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_FILE *result;
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -509,10 +489,7 @@ static _IO_size_t new_do_write (_IO_FILE *, const char *, _IO_size_t);
|
|
|
c6d234 |
Then mark FP as having empty buffers. */
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-_IO_new_do_write (fp, data, to_do)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- const char *data;
|
|
|
c6d234 |
- _IO_size_t to_do;
|
|
|
c6d234 |
+_IO_new_do_write (_IO_FILE *fp, const char *data, _IO_size_t to_do)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return (to_do == 0
|
|
|
c6d234 |
|| (_IO_size_t) new_do_write (fp, data, to_do) == to_do) ? 0 : EOF;
|
|
|
c6d234 |
@@ -521,10 +498,7 @@ libc_hidden_ver (_IO_new_do_write, _IO_do_write)
|
|
|
c6d234 |
|
|
|
c6d234 |
static
|
|
|
c6d234 |
_IO_size_t
|
|
|
c6d234 |
-new_do_write (fp, data, to_do)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- const char *data;
|
|
|
c6d234 |
- _IO_size_t to_do;
|
|
|
c6d234 |
+new_do_write (_IO_FILE *fp, const char *data, _IO_size_t to_do)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_size_t count;
|
|
|
c6d234 |
if (fp->_flags & _IO_IS_APPENDING)
|
|
|
c6d234 |
@@ -554,8 +528,7 @@ new_do_write (fp, data, to_do)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-_IO_new_file_underflow (fp)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
+_IO_new_file_underflow (_IO_FILE *fp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_ssize_t count;
|
|
|
c6d234 |
#if 0
|
|
|
c6d234 |
@@ -825,9 +798,7 @@ _IO_file_underflow_maybe_mmap (_IO_FILE *fp)
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-_IO_new_file_overflow (f, ch)
|
|
|
c6d234 |
- _IO_FILE *f;
|
|
|
c6d234 |
- int ch;
|
|
|
c6d234 |
+_IO_new_file_overflow (_IO_FILE *f, int ch)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (f->_flags & _IO_NO_WRITES) /* SET ERROR */
|
|
|
c6d234 |
{
|
|
|
c6d234 |
@@ -888,8 +859,7 @@ _IO_new_file_overflow (f, ch)
|
|
|
c6d234 |
libc_hidden_ver (_IO_new_file_overflow, _IO_file_overflow)
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-_IO_new_file_sync (fp)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
+_IO_new_file_sync (_IO_FILE *fp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_ssize_t delta;
|
|
|
c6d234 |
int retval = 0;
|
|
|
c6d234 |
@@ -1007,11 +977,7 @@ do_ftell (_IO_FILE *fp)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_off64_t
|
|
|
c6d234 |
-_IO_new_file_seekoff (fp, offset, dir, mode)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- _IO_off64_t offset;
|
|
|
c6d234 |
- int dir;
|
|
|
c6d234 |
- int mode;
|
|
|
c6d234 |
+_IO_new_file_seekoff (_IO_FILE *fp, _IO_off64_t offset, int dir, int mode)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_off64_t result;
|
|
|
c6d234 |
_IO_off64_t delta, new_offset;
|
|
|
c6d234 |
@@ -1167,11 +1133,7 @@ resync:
|
|
|
c6d234 |
libc_hidden_ver (_IO_new_file_seekoff, _IO_file_seekoff)
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_off64_t
|
|
|
c6d234 |
-_IO_file_seekoff_mmap (fp, offset, dir, mode)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- _IO_off64_t offset;
|
|
|
c6d234 |
- int dir;
|
|
|
c6d234 |
- int mode;
|
|
|
c6d234 |
+_IO_file_seekoff_mmap (_IO_FILE *fp, _IO_off64_t offset, int dir, int mode)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_off64_t result;
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -1242,10 +1204,7 @@ _IO_file_seekoff_maybe_mmap (_IO_FILE *fp, _IO_off64_t offset, int dir,
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_ssize_t
|
|
|
c6d234 |
-_IO_file_read (fp, buf, size)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- void *buf;
|
|
|
c6d234 |
- _IO_ssize_t size;
|
|
|
c6d234 |
+_IO_file_read (_IO_FILE *fp, void *buf, _IO_ssize_t size)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return (__builtin_expect (fp->_flags2 & _IO_FLAGS2_NOTCANCEL, 0)
|
|
|
c6d234 |
? read_not_cancel (fp->_fileno, buf, size)
|
|
|
c6d234 |
@@ -1254,27 +1213,21 @@ _IO_file_read (fp, buf, size)
|
|
|
c6d234 |
libc_hidden_def (_IO_file_read)
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_off64_t
|
|
|
c6d234 |
-_IO_file_seek (fp, offset, dir)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- _IO_off64_t offset;
|
|
|
c6d234 |
- int dir;
|
|
|
c6d234 |
+_IO_file_seek (_IO_FILE *fp, _IO_off64_t offset, int dir)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __lseek64 (fp->_fileno, offset, dir);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
libc_hidden_def (_IO_file_seek)
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-_IO_file_stat (fp, st)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- void *st;
|
|
|
c6d234 |
+_IO_file_stat (_IO_FILE *fp, void *st)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __fxstat64 (_STAT_VER, fp->_fileno, (struct stat64 *) st);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
libc_hidden_def (_IO_file_stat)
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-_IO_file_close_mmap (fp)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
+_IO_file_close_mmap (_IO_FILE *fp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* In addition to closing the file descriptor we have to unmap the file. */
|
|
|
c6d234 |
(void) __munmap (fp->_IO_buf_base, fp->_IO_buf_end - fp->_IO_buf_base);
|
|
|
c6d234 |
@@ -1285,8 +1238,7 @@ _IO_file_close_mmap (fp)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-_IO_file_close (fp)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
+_IO_file_close (_IO_FILE *fp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* Cancelling close should be avoided if possible since it leaves an
|
|
|
c6d234 |
unrecoverable state behind. */
|
|
|
c6d234 |
@@ -1295,10 +1247,7 @@ _IO_file_close (fp)
|
|
|
c6d234 |
libc_hidden_def (_IO_file_close)
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_ssize_t
|
|
|
c6d234 |
-_IO_new_file_write (f, data, n)
|
|
|
c6d234 |
- _IO_FILE *f;
|
|
|
c6d234 |
- const void *data;
|
|
|
c6d234 |
- _IO_ssize_t n;
|
|
|
c6d234 |
+_IO_new_file_write (_IO_FILE *f, const void *data, _IO_ssize_t n)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_ssize_t to_do = n;
|
|
|
c6d234 |
while (to_do > 0)
|
|
|
c6d234 |
@@ -1322,10 +1271,7 @@ _IO_new_file_write (f, data, n)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_size_t
|
|
|
c6d234 |
-_IO_new_file_xsputn (f, data, n)
|
|
|
c6d234 |
- _IO_FILE *f;
|
|
|
c6d234 |
- const void *data;
|
|
|
c6d234 |
- _IO_size_t n;
|
|
|
c6d234 |
+_IO_new_file_xsputn (_IO_FILE *f, const void *data, _IO_size_t n)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
const char *s = (const char *) data;
|
|
|
c6d234 |
_IO_size_t to_do = n;
|
|
|
c6d234 |
@@ -1405,10 +1351,7 @@ _IO_new_file_xsputn (f, data, n)
|
|
|
c6d234 |
libc_hidden_ver (_IO_new_file_xsputn, _IO_file_xsputn)
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_size_t
|
|
|
c6d234 |
-_IO_file_xsgetn (fp, data, n)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- void *data;
|
|
|
c6d234 |
- _IO_size_t n;
|
|
|
c6d234 |
+_IO_file_xsgetn (_IO_FILE *fp, void *data, _IO_size_t n)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_size_t want, have;
|
|
|
c6d234 |
_IO_ssize_t count;
|
|
|
c6d234 |
@@ -1505,12 +1448,8 @@ _IO_file_xsgetn (fp, data, n)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
libc_hidden_def (_IO_file_xsgetn)
|
|
|
c6d234 |
|
|
|
c6d234 |
-static _IO_size_t _IO_file_xsgetn_mmap (_IO_FILE *, void *, _IO_size_t);
|
|
|
c6d234 |
static _IO_size_t
|
|
|
c6d234 |
-_IO_file_xsgetn_mmap (fp, data, n)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- void *data;
|
|
|
c6d234 |
- _IO_size_t n;
|
|
|
c6d234 |
+_IO_file_xsgetn_mmap (_IO_FILE *fp, void *data, _IO_size_t n)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_size_t have;
|
|
|
c6d234 |
char *read_ptr = fp->_IO_read_ptr;
|
|
|
c6d234 |
@@ -1564,12 +1503,8 @@ _IO_file_xsgetn_mmap (fp, data, n)
|
|
|
c6d234 |
return s - (char *) data;
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
-static _IO_size_t _IO_file_xsgetn_maybe_mmap (_IO_FILE *, void *, _IO_size_t);
|
|
|
c6d234 |
static _IO_size_t
|
|
|
c6d234 |
-_IO_file_xsgetn_maybe_mmap (fp, data, n)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- void *data;
|
|
|
c6d234 |
- _IO_size_t n;
|
|
|
c6d234 |
+_IO_file_xsgetn_maybe_mmap (_IO_FILE *fp, void *data, _IO_size_t n)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* We only get here if this is the first attempt to read something.
|
|
|
c6d234 |
Decide which operations to use and then punt to the chosen one. */
|
|
|
c6d234 |
diff --git a/libio/iofopen.c b/libio/iofopen.c
|
|
|
c6d234 |
index 44ba253e072ef18d..9262038a57b96215 100644
|
|
|
c6d234 |
--- a/libio/iofopen.c
|
|
|
c6d234 |
+++ b/libio/iofopen.c
|
|
|
c6d234 |
@@ -35,8 +35,7 @@
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_FILE *
|
|
|
c6d234 |
-__fopen_maybe_mmap (fp)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
+__fopen_maybe_mmap (_IO_FILE *fp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
#ifdef _G_HAVE_MMAP
|
|
|
c6d234 |
if ((fp->_flags2 & _IO_FLAGS2_MMAP) && (fp->_flags & _IO_NO_WRITES))
|
|
|
c6d234 |
@@ -58,10 +57,7 @@ __fopen_maybe_mmap (fp)
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_FILE *
|
|
|
c6d234 |
-__fopen_internal (filename, mode, is32)
|
|
|
c6d234 |
- const char *filename;
|
|
|
c6d234 |
- const char *mode;
|
|
|
c6d234 |
- int is32;
|
|
|
c6d234 |
+__fopen_internal (const char *filename, const char *mode, int is32)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct locked_FILE
|
|
|
c6d234 |
{
|
|
|
c6d234 |
@@ -96,9 +92,7 @@ __fopen_internal (filename, mode, is32)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_FILE *
|
|
|
c6d234 |
-_IO_new_fopen (filename, mode)
|
|
|
c6d234 |
- const char *filename;
|
|
|
c6d234 |
- const char *mode;
|
|
|
c6d234 |
+_IO_new_fopen (const char *filename, const char *mode)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
return __fopen_internal (filename, mode, 1);
|
|
|
c6d234 |
}
|
|
|
c6d234 |
diff --git a/libio/wfileops.c b/libio/wfileops.c
|
|
|
c6d234 |
index 5ed1a922ae6ccbd0..d26b6e9f0a769d0b 100644
|
|
|
c6d234 |
--- a/libio/wfileops.c
|
|
|
c6d234 |
+++ b/libio/wfileops.c
|
|
|
c6d234 |
@@ -54,10 +54,7 @@
|
|
|
c6d234 |
/* Convert TO_DO wide character from DATA to FP.
|
|
|
c6d234 |
Then mark FP as having empty buffers. */
|
|
|
c6d234 |
int
|
|
|
c6d234 |
-_IO_wdo_write (fp, data, to_do)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- const wchar_t *data;
|
|
|
c6d234 |
- _IO_size_t to_do;
|
|
|
c6d234 |
+_IO_wdo_write (_IO_FILE *fp, const wchar_t *data, _IO_size_t to_do)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct _IO_codecvt *cc = fp->_codecvt;
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -116,8 +113,7 @@ libc_hidden_def (_IO_wdo_write)
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
wint_t
|
|
|
c6d234 |
-_IO_wfile_underflow (fp)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
+_IO_wfile_underflow (_IO_FILE *fp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
struct _IO_codecvt *cd;
|
|
|
c6d234 |
enum __codecvt_result status;
|
|
|
c6d234 |
@@ -410,9 +406,7 @@ _IO_wfile_underflow_maybe_mmap (_IO_FILE *fp)
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
wint_t
|
|
|
c6d234 |
-_IO_wfile_overflow (f, wch)
|
|
|
c6d234 |
- _IO_FILE *f;
|
|
|
c6d234 |
- wint_t wch;
|
|
|
c6d234 |
+_IO_wfile_overflow (_IO_FILE *f, wint_t wch)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (f->_flags & _IO_NO_WRITES) /* SET ERROR */
|
|
|
c6d234 |
{
|
|
|
c6d234 |
@@ -484,8 +478,7 @@ _IO_wfile_overflow (f, wch)
|
|
|
c6d234 |
libc_hidden_def (_IO_wfile_overflow)
|
|
|
c6d234 |
|
|
|
c6d234 |
wint_t
|
|
|
c6d234 |
-_IO_wfile_sync (fp)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
+_IO_wfile_sync (_IO_FILE *fp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_ssize_t delta;
|
|
|
c6d234 |
wint_t retval = 0;
|
|
|
c6d234 |
@@ -746,11 +739,7 @@ do_ftell_wide (_IO_FILE *fp)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_off64_t
|
|
|
c6d234 |
-_IO_wfile_seekoff (fp, offset, dir, mode)
|
|
|
c6d234 |
- _IO_FILE *fp;
|
|
|
c6d234 |
- _IO_off64_t offset;
|
|
|
c6d234 |
- int dir;
|
|
|
c6d234 |
- int mode;
|
|
|
c6d234 |
+_IO_wfile_seekoff (_IO_FILE *fp, _IO_off64_t offset, int dir, int mode)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
_IO_off64_t result;
|
|
|
c6d234 |
_IO_off64_t delta, new_offset;
|
|
|
c6d234 |
@@ -961,10 +950,7 @@ libc_hidden_def (_IO_wfile_seekoff)
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
_IO_size_t
|
|
|
c6d234 |
-_IO_wfile_xsputn (f, data, n)
|
|
|
c6d234 |
- _IO_FILE *f;
|
|
|
c6d234 |
- const void *data;
|
|
|
c6d234 |
- _IO_size_t n;
|
|
|
c6d234 |
+_IO_wfile_xsputn (_IO_FILE *f, const void *data, _IO_size_t n)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
const wchar_t *s = (const wchar_t *) data;
|
|
|
c6d234 |
_IO_size_t to_do = n;
|