mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* stdio-common/perror.c (perror): We don't need to set the offset to _IO_pos_bad, this is how streams are initialized.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2003-04-16 Ulrich Drepper <drepper@redhat.com>
|
2003-04-16 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* stdio-common/perror.c (perror): We don't need to set the offset
|
||||||
|
to _IO_pos_bad, this is how streams are initialized.
|
||||||
|
|
||||||
* locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
|
* locale/programs/ld-time.c (TESTARR_ELEM): Make i unsigned.
|
||||||
(time_output): If necessary, allocate new buffer for .name string if
|
(time_output): If necessary, allocate new buffer for .name string if
|
||||||
padding is required.
|
padding is required.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991-1993,1997,1998,2000-2002 Free Software Foundation, Inc.
|
/* Copyright (C) 1991-1993,1997,1998,2000-2003 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -55,7 +55,6 @@ void
|
|||||||
perror (const char *s)
|
perror (const char *s)
|
||||||
{
|
{
|
||||||
int errnum = errno;
|
int errnum = errno;
|
||||||
#ifdef USE_IN_LIBIO
|
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
|
|
||||||
@ -83,11 +82,6 @@ perror (const char *s)
|
|||||||
perror_internal (fp, s, errnum);
|
perror_internal (fp, s, errnum);
|
||||||
/* Close the stream. */
|
/* Close the stream. */
|
||||||
fclose (fp);
|
fclose (fp);
|
||||||
|
|
||||||
((_IO_FILE *) stderr)->_offset = _IO_pos_BAD;
|
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
perror_internal (stderr, s, errnum);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
libc_hidden_def (perror)
|
libc_hidden_def (perror)
|
||||||
|
Reference in New Issue
Block a user