mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2000-05-20 2000 H.J. Lu <hjl@gnu.org> * resolv/res_libc.c (_res): Initialize _sock to -1. 2000-05-18 Jakub Jelinek <jakub@redhat.com> * libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie. (fopencookie@@GLIBC_2.2): New. (_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New. (fopencookie@GLIBC_2.0): New. * libio/Versions: Add fopencookie to GLIBC_2.2. * sunrpc/rpc_main.c (parseargs): Don't accept -M and -N. Closes PR libc/1731.
This commit is contained in:
15
ChangeLog
15
ChangeLog
@ -1,5 +1,20 @@
|
|||||||
|
2000-05-20 2000 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* resolv/res_libc.c (_res): Initialize _sock to -1.
|
||||||
|
|
||||||
|
2000-05-18 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* libio/iofopncook.c (_IO_fopencookie): Renamed from fopencookie.
|
||||||
|
(fopencookie@@GLIBC_2.2): New.
|
||||||
|
(_IO_old_cookie_seek, _IO_old_fopencookie, _IO_old_cookie_jumps): New.
|
||||||
|
(fopencookie@GLIBC_2.0): New.
|
||||||
|
* libio/Versions: Add fopencookie to GLIBC_2.2.
|
||||||
|
|
||||||
2000-05-18 Andreas Jaeger <aj@suse.de>
|
2000-05-18 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* sunrpc/rpc_main.c (parseargs): Don't accept -M and -N.
|
||||||
|
Closes PR libc/1731.
|
||||||
|
|
||||||
* manual/arith.texi (Parsing of Integers): Fix typo.
|
* manual/arith.texi (Parsing of Integers): Fix typo.
|
||||||
Closes PR libc/1744, reported by blp@gnu.org.
|
Closes PR libc/1744, reported by blp@gnu.org.
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ libc {
|
|||||||
# f*
|
# f*
|
||||||
fgetpos; fgetpos64; fgetwc; fgetwc_unlocked; fgetws; fgetws_unlocked;
|
fgetpos; fgetpos64; fgetwc; fgetwc_unlocked; fgetws; fgetws_unlocked;
|
||||||
fputwc; fputwc_unlocked; fputws; fputws_unlocked; fsetpos; fsetpos64;
|
fputwc; fputwc_unlocked; fputws; fputws_unlocked; fsetpos; fsetpos64;
|
||||||
fwide; fwprintf; fwscanf;
|
fwide; fwprintf; fwscanf; fopencookie;
|
||||||
|
|
||||||
# g*
|
# g*
|
||||||
getwc; getwc_unlocked; getwchar; getwchar_unlocked;
|
getwc; getwc_unlocked; getwchar; getwchar_unlocked;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include <libioP.h>
|
#include <libioP.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
/* Prototyped for local functions. */
|
/* Prototyped for local functions. */
|
||||||
static _IO_ssize_t _IO_cookie_read (register _IO_FILE* fp, void* buf,
|
static _IO_ssize_t _IO_cookie_read (register _IO_FILE* fp, void* buf,
|
||||||
@ -35,7 +35,8 @@ static _IO_ssize_t _IO_cookie_write (register _IO_FILE* fp,
|
|||||||
const void* buf, _IO_ssize_t size);
|
const void* buf, _IO_ssize_t size);
|
||||||
static _IO_off64_t _IO_cookie_seek (_IO_FILE *fp, _IO_off64_t offset, int dir);
|
static _IO_off64_t _IO_cookie_seek (_IO_FILE *fp, _IO_off64_t offset, int dir);
|
||||||
static int _IO_cookie_close (_IO_FILE* fp);
|
static int _IO_cookie_close (_IO_FILE* fp);
|
||||||
|
_IO_FILE * _IO_fopencookie (void *cookie, const char *mode,
|
||||||
|
_IO_cookie_io_functions_t io_functions);
|
||||||
|
|
||||||
static _IO_ssize_t
|
static _IO_ssize_t
|
||||||
_IO_cookie_read (fp, buf, size)
|
_IO_cookie_read (fp, buf, size)
|
||||||
@ -140,7 +141,7 @@ _IO_cookie_init (struct _IO_cookie_file *cfile, int read_write,
|
|||||||
|
|
||||||
|
|
||||||
_IO_FILE *
|
_IO_FILE *
|
||||||
fopencookie (cookie, mode, io_functions)
|
_IO_fopencookie (cookie, mode, io_functions)
|
||||||
void *cookie;
|
void *cookie;
|
||||||
const char *mode;
|
const char *mode;
|
||||||
_IO_cookie_io_functions_t io_functions;
|
_IO_cookie_io_functions_t io_functions;
|
||||||
@ -182,3 +183,73 @@ fopencookie (cookie, mode, io_functions)
|
|||||||
|
|
||||||
return &new_f->cfile.__file;
|
return &new_f->cfile.__file;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
versioned_symbol (libc, _IO_fopencookie, fopencookie, GLIBC_2_2);
|
||||||
|
|
||||||
|
#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)
|
||||||
|
|
||||||
|
static _IO_off64_t _IO_old_cookie_seek (_IO_FILE *fp, _IO_off64_t offset,
|
||||||
|
int dir);
|
||||||
|
_IO_FILE * _IO_old_fopencookie (void *cookie, const char *mode,
|
||||||
|
_IO_cookie_io_functions_t io_functions);
|
||||||
|
|
||||||
|
static _IO_off64_t
|
||||||
|
_IO_old_cookie_seek (fp, offset, dir)
|
||||||
|
_IO_FILE *fp;
|
||||||
|
_IO_off64_t offset;
|
||||||
|
int dir;
|
||||||
|
{
|
||||||
|
struct _IO_cookie_file *cfile = (struct _IO_cookie_file *) fp;
|
||||||
|
int (*seek) (_IO_FILE *, _IO_off_t, int);
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
seek = (int (*)(_IO_FILE *, _IO_off_t, int)) cfile->__io_functions.seek;
|
||||||
|
if (seek == NULL)
|
||||||
|
return _IO_pos_BAD;
|
||||||
|
|
||||||
|
ret = seek (cfile->__cookie, offset, dir);
|
||||||
|
|
||||||
|
return (ret == -1) ? _IO_pos_BAD : ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct _IO_jump_t _IO_old_cookie_jumps = {
|
||||||
|
JUMP_INIT_DUMMY,
|
||||||
|
JUMP_INIT(finish, _IO_file_finish),
|
||||||
|
JUMP_INIT(overflow, _IO_file_overflow),
|
||||||
|
JUMP_INIT(underflow, _IO_file_underflow),
|
||||||
|
JUMP_INIT(uflow, _IO_default_uflow),
|
||||||
|
JUMP_INIT(pbackfail, _IO_default_pbackfail),
|
||||||
|
JUMP_INIT(xsputn, _IO_file_xsputn),
|
||||||
|
JUMP_INIT(xsgetn, _IO_default_xsgetn),
|
||||||
|
JUMP_INIT(seekoff, _IO_file_seekoff),
|
||||||
|
JUMP_INIT(seekpos, _IO_default_seekpos),
|
||||||
|
JUMP_INIT(setbuf, _IO_file_setbuf),
|
||||||
|
JUMP_INIT(sync, _IO_file_sync),
|
||||||
|
JUMP_INIT(doallocate, _IO_file_doallocate),
|
||||||
|
JUMP_INIT(read, _IO_cookie_read),
|
||||||
|
JUMP_INIT(write, _IO_cookie_write),
|
||||||
|
JUMP_INIT(seek, _IO_old_cookie_seek),
|
||||||
|
JUMP_INIT(close, _IO_cookie_close),
|
||||||
|
JUMP_INIT(stat, _IO_default_stat),
|
||||||
|
JUMP_INIT(showmanyc, _IO_default_showmanyc),
|
||||||
|
JUMP_INIT(imbue, _IO_default_imbue),
|
||||||
|
};
|
||||||
|
|
||||||
|
_IO_FILE *
|
||||||
|
_IO_old_fopencookie (cookie, mode, io_functions)
|
||||||
|
void *cookie;
|
||||||
|
const char *mode;
|
||||||
|
_IO_cookie_io_functions_t io_functions;
|
||||||
|
{
|
||||||
|
_IO_FILE *ret;
|
||||||
|
|
||||||
|
ret = _IO_fopencookie (cookie, mode, io_functions);
|
||||||
|
if (ret != NULL)
|
||||||
|
_IO_JUMPS (ret) = &_IO_old_cookie_jumps;
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
compat_symbol (libc, _IO_old_fopencookie, fopencookie, GLIBC_2_0);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2000-05-21 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* manager.c (pthread_handle_create): Initialize p_res._sock to -1.
|
||||||
|
|
||||||
2000-05-13 Jakub Jelinek <jakub@redhat.com>
|
2000-05-13 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* internals.h (__RES_PTHREAD_INTERNAL): Define.
|
* internals.h (__RES_PTHREAD_INTERNAL): Define.
|
||||||
|
@ -395,6 +395,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
|
|||||||
new_thread->p_canceltype = PTHREAD_CANCEL_DEFERRED;
|
new_thread->p_canceltype = PTHREAD_CANCEL_DEFERRED;
|
||||||
new_thread->p_errnop = &new_thread->p_errno;
|
new_thread->p_errnop = &new_thread->p_errno;
|
||||||
new_thread->p_h_errnop = &new_thread->p_h_errno;
|
new_thread->p_h_errnop = &new_thread->p_h_errno;
|
||||||
|
new_thread->p_res._sock = -1;
|
||||||
new_thread->p_resp = &new_thread->p_res;
|
new_thread->p_resp = &new_thread->p_res;
|
||||||
new_thread->p_guardaddr = guardaddr;
|
new_thread->p_guardaddr = guardaddr;
|
||||||
new_thread->p_guardsize = guardsize;
|
new_thread->p_guardsize = guardsize;
|
||||||
|
@ -89,7 +89,7 @@ res_init(void) {
|
|||||||
|
|
||||||
#undef _res
|
#undef _res
|
||||||
|
|
||||||
struct __res_state _res;
|
struct __res_state _res = { _sock : -1 };
|
||||||
|
|
||||||
|
|
||||||
struct __res_state *
|
struct __res_state *
|
||||||
|
Reference in New Issue
Block a user