diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-01-29 22:40:50 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-01-29 22:40:50 +0000 |
commit | 3aaa66f813d099dbb04e637459e168800d231aa3 (patch) | |
tree | e414ca81677237109cb042c9a3c907496893f59d /newlib/libc/reent/signgam.c | |
parent | 2f3ea37bc8710a775cc1174c496c7fa559f95cdd (diff) | |
download | cygnal-3aaa66f813d099dbb04e637459e168800d231aa3.tar.gz cygnal-3aaa66f813d099dbb04e637459e168800d231aa3.tar.bz2 cygnal-3aaa66f813d099dbb04e637459e168800d231aa3.zip |
2001-01-29 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h (signgam): Change to errno-like solution
using a function to return the address of the real signgam.
* libc/reent/signgam.c: New file containing __signgam().
* libc/reent/Makefile.am: Added signgam.c to list of files.
* libc/reent/Makefile.in: Regenerated.
Diffstat (limited to 'newlib/libc/reent/signgam.c')
-rw-r--r-- | newlib/libc/reent/signgam.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/newlib/libc/reent/signgam.c b/newlib/libc/reent/signgam.c new file mode 100644 index 000000000..905386686 --- /dev/null +++ b/newlib/libc/reent/signgam.c @@ -0,0 +1,16 @@ +/* The signgam variable is stored in the reentrancy structure. This + function returns its address for use by the macro signgam defined in + math.h. */ + +#include <math.h> +#include <reent.h> + +#ifndef _REENT_ONLY + +int * +__signgam () +{ + return &_REENT->_new._reent._gamma_signgam; +} + +#endif |