Date: Fri, 16 Jun 2006 18:44:41 +0300 From: Tofik Suleymanov <secnews@oxygen.az> To: questions@freebsd.org Subject: socketpair(2) strange behavior Message-ID: <4492D1E9.8080904@oxygen.az>
next in thread | raw e-mail | index | archive | help
Hello list,
when using socketpair(2) on my FreeBSD 6.1-RELEASE-p1 box i get this error:
"socketpair: Operation not supported"
And here is the source of my pretty simple socketpair(2) program:
---- START ----
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <errno.h>
int main(void) {
int sv[2], err;
err = socketpair(AF_INET, SOCK_STREAM, 0, (int*)&sv);
if(err == -1) {
perror("socketpair");
return -1;
}
return 0x0;
}
---- END ----
Any comments ?
Sincerely,
Tofik Suleymanov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4492D1E9.8080904>
