home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / perl560.zip / plan9 / plan9.c < prev    next >
C/C++ Source or Header  |  1999-07-20  |  3KB  |  135 lines

  1. #include "EXTERN.h"
  2. #include "perl.h"
  3.  
  4. /* Functions mentioned in <sys/socket.h> but not implemented */
  5.  
  6. int getsockopt(int a, int b, int c, void *d, int *e)
  7. {
  8.     croak("Function \"getsockopt\" not implemented in this version of perl.");
  9.     return (int)NULL; 
  10. }
  11.  
  12. int setsockopt(int a, int b, int c, void *d, int *e)
  13. {
  14.     croak("Function \"setsockopt\" not implemented in this version of perl.");
  15.     return (int)NULL;
  16. }
  17.  
  18.  
  19. int recvmsg(int a, struct msghdr *b, int c)
  20. {
  21.     croak("Function \"recvmsg\" not implemented in this version of perl.");
  22.     return (int)NULL;
  23.  
  24. int sendmsg(int a, struct msghdr *b, int c)
  25. {
  26.     croak("Function \"sendmsg\" not implemented in this version of perl.");
  27.     return (int)NULL;
  28.  
  29.  
  30. /* Functions mentioned in <netdb.h> but not implemented */
  31. struct netent *getnetbyname(const char *a)
  32. {
  33.     croak("Function \"getnetbyname\" not implemented in this version of perl.");
  34.     return (struct netent *)NULL;
  35. }
  36.  
  37. struct netent *getnetbyaddr(long a, int b)
  38. {
  39.     croak("Function \"getnetbyaddr\" not implemented in this version of perl.");
  40.     return (struct netent *)NULL;
  41. }
  42.  
  43. struct netent *getnetent()
  44. {
  45.     croak("Function \"getnetent\" not implemented in this version of perl.");
  46.     return (struct netent *)NULL;
  47. }
  48.  
  49. struct protoent *getprotobyname(const char *a)
  50. {
  51.     croak("Function \"getprotobyname\" not implemented in this version of perl.");
  52.     return (struct protoent *)NULL;
  53. }
  54.  
  55. struct protoent *getprotobynumber(int a)
  56. {
  57.     croak("Function \"getprotobynumber\" not implemented in this version of perl.");
  58.     return (struct protoent *)NULL;
  59. }
  60.  
  61. struct protoent *getprotoent()
  62. {
  63.     croak("Function \"getprotoent\" not implemented in this version of perl.");
  64.     return (struct protoent *)NULL;
  65. }
  66.  
  67. struct servent *getservbyport(int a, const char *b)
  68. {
  69.     croak("Function \"getservbyport\" not implemented in this version of perl.");
  70.     return (struct servent *)NULL;
  71. }
  72.  
  73. struct servent *getservent()
  74. {
  75.     croak("Function \"getservent\" not implemented in this version of perl.");
  76.     return (struct servent *)NULL;
  77. }
  78.  
  79. void sethostent(int a)
  80. {
  81.     croak("Function \"sethostent\" not implemented in this version of perl.");
  82. }
  83.  
  84. void setnetent(int a)
  85. {
  86.     croak("Function \"setnetent\" not implemented in this version of perl.");
  87. }
  88.  
  89. void setprotoent(int a)
  90. {
  91.     croak("Function \"setprotoent\" not implemented in this version of perl.");
  92. }
  93.  
  94. void setservent(int a)
  95. {
  96.     croak("Function \"setservent\"  not implemented in this version of perl.");
  97. }
  98.  
  99. void endnetent()
  100. {
  101.     croak("Function \"endnetent\" not implemented in this version of perl.");
  102. }
  103.  
  104. void endprotoent()
  105. {
  106.     croak("Function \"endprotoent\" not implemented in this version of perl.");
  107. }
  108.  
  109. void endservent()
  110. {
  111.     croak("Function \"endservent\" not implemented in this version of perl.");
  112. }
  113.  
  114. int tcdrain(int)
  115. {
  116. croak("Function \"tcdrain\" not implemented in this version of perl.");
  117. }
  118.  
  119. int tcflow(int, int)
  120. {
  121. croak("Function \"tcflow\" not implemented in this version of perl.");
  122. }
  123.  
  124. int tcflush(int, int)
  125. {
  126. croak("Function \"tcflush\" not implemented in this version of perl.");
  127. }
  128.  
  129. int tcsendbreak(int, int)
  130. {
  131. croak("Function \"tcsendbreak\" not implemented in this version of perl.");
  132. }
  133.