Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8342 → Rev 8344

/programs/develop/ktcc/trunk/bin/lib/libck.a
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/programs/develop/ktcc/trunk/libc/include/net/socket.h
102,6 → 102,6
int recv(int socket, void *buffer, size_t buff_len, int flag);
int setsockopt(int socket,const optstruct* opt);
int getsockopt(int socket, optstruct* opt);
int socketpair();
int socketpair(int *sock1, int *sock2);
 
#endif
/programs/develop/ktcc/trunk/libc/net/socket.c
91,11 → 91,13
);
}
 
int socketpair()
int socketpair(int *sock1, int *sock2)
{
asm volatile(
"int $0x40"
:"=b"(err_code)
:"=b"(*sock2), "=a"(*sock1)
:"a"(75), "b"(10)
);
err_code = *sock2;
return *sock1;
}