X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=epoc%2Fepoc_stubs.c;h=2d1b09daf69e17ebbfb88dc6d4fa9565d54c37af;hb=2d736872f25b3e41d616d46e8286fe3f13ef058d;hp=c1c6bcf9e09e559f63741fd0ccef4f27bbb02f57;hpb=ed79a026b5aec9cc3f786c2971aa15a4b21f396c;p=p5sagit%2Fp5-mst-13.2.git diff --git a/epoc/epoc_stubs.c b/epoc/epoc_stubs.c index c1c6bcf..2d1b09d 100644 --- a/epoc/epoc_stubs.c +++ b/epoc/epoc_stubs.c @@ -6,62 +6,13 @@ * */ -#include - -int getgid() {return 0;} -int getegid() {return 0;} -int geteuid() {return 0;} -int getuid() {return 0;} int setgid() {return -1;} int setuid() {return -1;} - -int Perl_my_popen( int a, int b) { - return NULL; -} -int Perl_my_pclose( int a) { - return NULL; -} - -int kill() {return -1;} -signal() { } - int execv() { return -1;} int execvp() { return -1;} void Perl_do_exec() {} -/*------------------------------------------------------------------*/ -/* Two dummy functions implement getproto* */ -/*------------------------------------------------------------------*/ -#include -#include -#include - - -static struct protoent protos[2] = { - {"tcp", NULL, IPPROTO_TCP} , - {"udp", NULL, IPPROTO_UDP}}; - -struct protoent *getprotobyname (const char *st) { - - if (!strcmp( st, "tcp")) { - return &protos[0]; - } - if (!strcmp( st, "udp")) { - return &protos[1]; - } - return NULL; -} - -struct protoent *getprotobynumber ( int i) { - if (i == IPPROTO_TCP) { - return &protos[0]; - } - if (i == IPPROTO_UDP) { - return &protos[1]; - } - return NULL; -}