mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-01 05:02:03 +03:00
Update.
* misc/Makefile (CFLAGS-getpass.c): Add -fexceptions. * misc/getpass.c (getpass): Add cleanup handler to ensure the stream is closed even if the thread is canceled. (call_fclose): New function. * posix/unistd.h: Remove __THROW from getpass prorotype. * posix/Makefile (CFLAGS-getopt.c): Add -fexceptions. * signal/signal.h (psignal): Remove __THROW. * stdio-common/Makefile (CFLAGS-psignal.c): Add -fexceptions.
This commit is contained in:
@@ -845,7 +845,7 @@ extern int chroot (__const char *__path) __THROW;
|
||||
|
||||
/* Prompt with PROMPT and read a string from the terminal without echoing.
|
||||
Uses /dev/tty if possible; otherwise stderr and stdin. */
|
||||
extern char *getpass (__const char *__prompt) __THROW;
|
||||
extern char *getpass (__const char *__prompt);
|
||||
#endif /* Use BSD || X/Open. */
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user