diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-08-30 09:10:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-08-30 09:10:12 +0000 |
commit | cdbfa9f89fa7ccba5f573facbd0a2322e1a6fcb8 (patch) | |
tree | 2b5f5f3cd66ae759cbecac788f3571c6a5dd3599 /posix | |
parent | 048466f6148f6d72994eeb234f435fd351e24559 (diff) | |
download | glibc-cdbfa9f89fa7ccba5f573facbd0a2322e1a6fcb8.zip glibc-cdbfa9f89fa7ccba5f573facbd0a2322e1a6fcb8.tar.gz glibc-cdbfa9f89fa7ccba5f573facbd0a2322e1a6fcb8.tar.bz2 |
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.
Diffstat (limited to 'posix')
-rw-r--r-- | posix/Makefile | 1 | ||||
-rw-r--r-- | posix/unistd.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/posix/Makefile b/posix/Makefile index d8516c2..c617612 100644 --- a/posix/Makefile +++ b/posix/Makefile @@ -127,6 +127,7 @@ CFLAGS-sleep.c = -fexceptions CFLAGS-wait.c = -fexceptions -fasynchronous-unwind-tables CFLAGS-waitid.c = -fexceptions CFLAGS-waitpid.c = -fexceptions -fasynchronous-unwind-tables +CFLAGS-getopt.c = -fexceptions tstgetopt-ARGS = -a -b -cfoobar --required foobar --optional=bazbug \ --none random --col --color --colour diff --git a/posix/unistd.h b/posix/unistd.h index 1e28ba2..4a7be1c 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. */ |