2 * Copyright (c) 1999 Olaf Flebbe o.flebbe@gmx.de
4 * You may distribute under the terms of either the GNU General Public
5 * License or the Artistic License, as specified in the README file.
13 int getgid() {return 0;}
14 int getegid() {return 0;}
15 int geteuid() {return 0;}
16 int getuid() {return 0;}
17 int setgid() {return -1;}
18 int setuid() {return -1;}
21 int Perl_my_popen( int a, int b) {
24 int Perl_my_pclose( int a) {
28 int kill() {return -1;}
31 int execv() { return -1;}
32 int execvp() { return -1;}
34 void Perl_do_exec() {}
36 /*------------------------------------------------------------------*/
37 /* Two dummy functions implement getproto* */
38 /*------------------------------------------------------------------*/
39 #include <sys/types.h>
41 #include <netinet/in.h>
44 static struct protoent protos[2] = {
45 {"tcp", NULL, IPPROTO_TCP} ,
46 {"udp", NULL, IPPROTO_UDP}};
48 struct protoent *getprotobyname (const char *st) {
50 if (!strcmp( st, "tcp")) {
53 if (!strcmp( st, "udp")) {
59 struct protoent *getprotobynumber ( int i) {
60 if (i == IPPROTO_TCP) {
63 if (i == IPPROTO_UDP) {