Integrate with Sarathy.
[p5sagit/p5-mst-13.2.git] / epoc / epoc.c
CommitLineData
4d2c4e07 1/* Epoc helper Routines */
2
3#include <stdlib.h>
4
5int getgid() {return 0;}
6int getegid() {return 0;}
7int geteuid() {return 0;}
8int getuid() {return 0;}
9int setgid() {return -1;}
10int setuid() {return -1;}
11
12
13char *environ;
14
15int Perl_my_popen( int a, int b) {
16 return 0;
17}
18int Perl_my_pclose( int a) {
19 return 0;
20}
21
22kill() {}
23signal() {}
24
25void execv() {}
26void execvp() {}
27
28
29void do_spawn() {}
30void do_aspawn() {}
31void Perl_do_exec() {}
32
33#ifdef __MARM__
34/* Symbian forgot to include __fixunsdfi into the MARM euser.lib */
35/* This is from libgcc2.c , gcc-2.7.2.3 */
36
37typedef unsigned int UQItype __attribute__ ((mode (QI)));
38typedef int SItype __attribute__ ((mode (SI)));
39typedef unsigned int USItype __attribute__ ((mode (SI)));
40typedef int DItype __attribute__ ((mode (DI)));
41typedef unsigned int UDItype __attribute__ ((mode (DI)));
42
43typedef float SFtype __attribute__ ((mode (SF)));
44typedef float DFtype __attribute__ ((mode (DF)));
45
46
47
48extern DItype __fixunssfdi (SFtype a);
49extern DItype __fixunsdfdi (DFtype a);
50
51
52USItype
53__fixunsdfsi (a)
54 DFtype a;
55{
56 if (a >= - (DFtype) (- 2147483647L -1) )
57 return (SItype) (a + (- 2147483647L -1) ) - (- 2147483647L -1) ;
58 return (SItype) a;
59}
60
61#endif