From b5707b44d25d7af61b0338c2a2206c036eaf7337 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 22 Sep 2004 21:21:10 +0000 Subject: Changes and additions migrated from cvs.devel.redhat.com:/cvs/devel/glibc to fedora-branch --- glibc-compat/stubs.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 glibc-compat/stubs.c (limited to 'glibc-compat/stubs.c') diff --git a/glibc-compat/stubs.c b/glibc-compat/stubs.c new file mode 100644 index 0000000000..6c796d1c78 --- /dev/null +++ b/glibc-compat/stubs.c @@ -0,0 +1,57 @@ +/* + * STAT stuff that breaks Applix + */ + +#include + +/* 1 of 3: _xstat */ +int +_xstat (int vers, const char *name, struct stat *buf) +{ + return __xstat (vers, name, buf); +} + +/* 2 of 3: _fxstat */ +int +_fxstat (int vers, int fd, struct stat *buf) +{ + return __fxstat (vers, fd, buf); +} + +/* 3 of 3: _lxstat */ +int +_lxstat (int vers, const char *name, struct stat *buf) +{ + return __lxstat (vers, name, buf); +} + + +/* + * __setjmp stuff that breaks again Applix + */ +#include + +int __setjmp(jmp_buf env) +{ + return _setjmp(env); +} + + +/* + * __setfpucw break several math packages that ahve not heard of + * the standard _FPU_SETCW() way of setting the control word for the FPU + */ +#include +void __setfpucw(fpu_control_t cw) +{ + _FPU_SETCW(cw); +} + + +/* Register FUNC to be executed by `exit'. */ +int +atexit (void (*func) (void)) +{ + int __cxa_atexit (void (*func) (void *), void *arg, void *d); + return __cxa_atexit ((void (*) (void *)) func, 0, 0); +} -- cgit 1.4.1