From cdbfa9f89fa7ccba5f573facbd0a2322e1a6fcb8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 30 Aug 2003 09:10:12 +0000 Subject: 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. --- posix/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'posix/unistd.h') diff --git a/posix/unistd.h b/posix/unistd.h index 1e28ba26a0..4a7be1c7fc 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -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. */ -- cgit 1.4.1