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

bugzilla-daemon at riscos.info bugzilla-daemon at riscos.info
Sat Apr 21 08:25:59 PDT 2012


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 at chocky.org
        ReportedBy: chrisg at 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.




More information about the gcc mailing list