Saturday, 21 April 2012

[gccsdk] [Bug 225] New: problem with socketpair() function

http://www.riscos.info/bugzilla3/show_bug.cgi?id=225

Summary: problem with socketpair() function
Product: GCC/GCCSDK
Version: other
Platform: Other
OS/Version: RISC OS
Status: NEW
Severity: normal
Priority: P1
Component: Unixlib and SharedCLibrary
AssignedTo: peter@chocky.org
ReportedBy: chrisg@care4free.net
Estimated Hours: 0.0


The socketpair() function always returns a 'Protocol not supported error'. See
the below test case.

#include <sys/socket.h>
#include <stdio.h>

int main()
{
int sockets[2];

if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0) {
perror("opening stream socket pair");
return 1;
}

return 0;

}

--
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment