diff options
author | Zack Weinberg <zackw@panix.com> | 2017-12-25 12:34:14 -0800 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2017-12-25 12:41:42 -0800 |
commit | d663336f8e3aae73b0beb7e42cd37d2dd4b04b9d (patch) | |
tree | 9e9f3f63bef6627fd5dab80097b0b182cbbc47e0 /misc/err.c | |
parent | 4900e9832e0e1977d4db125b36588b9e8c85b0f2 (diff) | |
download | glibc-d663336f8e3aae73b0beb7e42cd37d2dd4b04b9d.tar.gz |
Minimize use of _IO_ and _G_ symbols in public headers.
This is groundwork for removing the inclusion of (bits/)libio.h from
stdio.h. It doesn't make a whole lot of sense by itself, but it is
also much more mechanical than the next piece, which involves moving
the definition of struct _IO_FILE.
* libio/bits/types/__fpos64_t.h, libio/bits/types/__fpos_t.h
* libio/bits/types/cookie_io_functions_t.h: New single-type headers.
* include/bits/types/__fpos64_t.h, include/bits/types/__fpos_t.h
* include/bits/types/cookie_io_functions_t.h: New wrappers.
* libio/Makefile: Install the new headers.
* libio/stdio.h: Get __gnuc_va_list directly from stdarg.h.
Get __fpos_t, __fpos64_t, and cookie_io_functions_t from the new
headers. Don't use _G_ names when defining va_list, fpos_t, or
fpos64_t. Define BUFSIZ unconditionally as 8192, and EOF
unconditionally as (-1). Declare stdin, stdout, and stderr with
type FILE. Use cookie_io_functions_t instead of
_IO_cookie_io_functions_t, __gnuc_va_list instead of _G_va_list,
and __ssize_t instead of _IO_ssize_t. Move getc and putc macros
and inclusion of bits/libio.h to bottom of file.
* libio/bits/stdio.h, libio/bits/stdio2.h: Use __ssize_t instead
of _IO_ssize_t, and __gnuc_va_list instead of _G_va_list.
* bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h: Get
definitions of __fpos_t and __fpos64_t from the new headers.
Define _G_fpos_t as __fpos_t and _G_fpos64_t as __fpos64_t.
* libio/bits/libio.h: Include stdio.h and don't repeat anything
that it does. Define _IO_BUFSIZ as BUFSIZ, _IO_fpos_t as
__fpos_t, _IO_fpos64_t as __fpos64_t, _IO_va_list as __gnuc_va_list,
__io_read_fn as cookie_read_fn_t, __io_write_fn as cookie_write_fn_t,
__io_seek_fn as cookie_seek_fn_t, __io_close_fn as cookie_close_fn_t,
and _IO_cookie_io_functions_t as cookie_io_functions_t.
Diffstat (limited to 'misc/err.c')
0 files changed, 0 insertions, 0 deletions