2.3.3-80
[glibc.git] / glibc-compat / stubs.c
blob6c796d1c78419457f83ca7c79b41173d6d7afd53
1 /*
2 * STAT stuff that breaks Applix
3 */
5 #include <sys/stat.h>
7 /* 1 of 3: _xstat */
8 int
9 _xstat (int vers, const char *name, struct stat *buf)
11 return __xstat (vers, name, buf);
14 /* 2 of 3: _fxstat */
15 int
16 _fxstat (int vers, int fd, struct stat *buf)
18 return __fxstat (vers, fd, buf);
21 /* 3 of 3: _lxstat */
22 int
23 _lxstat (int vers, const char *name, struct stat *buf)
25 return __lxstat (vers, name, buf);
30 * __setjmp stuff that breaks again Applix
32 #include <setjmp.h>
34 int __setjmp(jmp_buf env)
36 return _setjmp(env);
41 * __setfpucw break several math packages that ahve not heard of
42 * the standard _FPU_SETCW() way of setting the control word for the FPU
44 #include <fpu_control.h>
45 void __setfpucw(fpu_control_t cw)
47 _FPU_SETCW(cw);
51 /* Register FUNC to be executed by `exit'. */
52 int
53 atexit (void (*func) (void))
55 int __cxa_atexit (void (*func) (void *), void *arg, void *d);
56 return __cxa_atexit ((void (*) (void *)) func, 0, 0);