3 #include "./plan9/math.h"
8 /** Function fpclassify(double) is required by sv.c, which was refactored in perl-5.24 era and uses other libraries to classify floating points. **/
10 /* See /sys/src/lib/port/frexp.c */
13 int fpclassify(double d) {
16 /* order matters: only isNaN can operate on NaN */
19 else if ( isInf(d, 0) )
25 return (x.hi >> SHIFT) ? FP_NORMAL : FP_SUBNORMAL;
28 /* Functions mentioned in /sys/include/ape/sys/socket.h but not implemented */
30 int recvmsg(int a, struct msghdr *b, int c)
32 croak("Function \"recvmsg\" not implemented in this version of perl.");
36 int sendmsg(int a, struct msghdr *b, int c)
38 croak("Function \"sendmsg\" not implemented in this version of perl.");
43 /* Functions mentioned in /sys/include/ape/sys/netdb.h but not implemented */
44 struct netent *getnetbyname(const char *a)
46 croak("Function \"getnetbyname\" not implemented in this version of perl.");
47 return (struct netent *)NULL;
50 struct netent *getnetbyaddr(long a, int b)
52 croak("Function \"getnetbyaddr\" not implemented in this version of perl.");
53 return (struct netent *)NULL;
56 struct netent *getnetent()
58 croak("Function \"getnetent\" not implemented in this version of perl.");
59 return (struct netent *)NULL;
62 struct protoent *getprotobyname(const char *a)
64 croak("Function \"getprotobyname\" not implemented in this version of perl.");
65 return (struct protoent *)NULL;
68 struct protoent *getprotobynumber(int a)
70 croak("Function \"getprotobynumber\" not implemented in this version of perl.");
71 return (struct protoent *)NULL;
74 struct protoent *getprotoent()
76 croak("Function \"getprotoent\" not implemented in this version of perl.");
77 return (struct protoent *)NULL;
80 struct servent *getservbyport(int a, const char *b)
82 croak("Function \"getservbyport\" not implemented in this version of perl.");
83 return (struct servent *)NULL;
86 struct servent *getservent()
88 croak("Function \"getservent\" not implemented in this version of perl.");
89 return (struct servent *)NULL;
92 void sethostent(int a)
94 croak("Function \"sethostent\" not implemented in this version of perl.");
99 croak("Function \"setnetent\" not implemented in this version of perl.");
102 void setprotoent(int a)
104 croak("Function \"setprotoent\" not implemented in this version of perl.");
107 void setservent(int a)
109 croak("Function \"setservent\" not implemented in this version of perl.");
114 croak("Function \"endnetent\" not implemented in this version of perl.");
119 croak("Function \"endprotoent\" not implemented in this version of perl.");
124 croak("Function \"endservent\" not implemented in this version of perl.");