summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cbf2884)
If there's demand, I might try to hack in IPv6 later. But not now.
int socket(int pf, int ty, int proto)
{
int socket(int pf, int ty, int proto)
{
- if (pf == PF_INET) {
- pf = PF_UNIX;
- proto = 0;
+ switch (pf) {
+ case PF_INET:
+ pf = PF_UNIX;
+ proto = 0;
+ case PF_UNIX:
+ return real_socket(pf, ty, proto);
+ default:
+ errno = EAFNOSUPPORT;
+ return -1;
- return real_socket(pf, ty, proto);
}
int socketpair(int pf, int ty, int proto, int *sk)
}
int socketpair(int pf, int ty, int proto, int *sk)