From bed1d7841ceca45628d871059193c75d2f84b0fd Mon Sep 17 00:00:00 2001 From: superturbocat2001 Date: Tue, 8 Dec 2020 18:36:23 +0000 Subject: [PATCH] Changed parameters of "socketpair" function in libck (ktcc) git-svn-id: svn://kolibrios.org@8344 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/ktcc/trunk/bin/lib/libck.a | Bin 133212 -> 133256 bytes .../ktcc/trunk/libc/include/net/socket.h | 2 +- programs/develop/ktcc/trunk/libc/net/socket.c | 8 +++++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/programs/develop/ktcc/trunk/bin/lib/libck.a b/programs/develop/ktcc/trunk/bin/lib/libck.a index bd72aeb30e3a3b70773f0e19be8be68da1a542dc..15bd4554f857cc866a7c9b81efcfc7f2f0ab0061 100644 GIT binary patch delta 760 zcmb`?Pe@cz6bA6`yW_KmOz{K}%|SwkQb9{h+9(WxAl9_Wg^<;zMXPXS%Mskn<84MS z^dKbNh$xbO%9%llrj!lCGm>C@~ryu$v zH^GU&CWGKC;2DNu3`4($HZD}&! zhh^|AtRz7t!qrE}^XUN8)`s$}$3Sf(bT-m)FddJ8pF2I9eo)(b4}NX=KigSQ`*z8* zvjl#>ZzaI;J&*5s~!CP5zN$IQ%lLJ^5HD_rxZLIfSWrOKfjd7YC?%Eg^3s(qG$kfGN zu|*lWUM0$e8){~$th`}~fRKHImyLh`HszPA)y%n5Aid%%x1yi_x~@411Heuj`g}DZ!NzU z4F5Bh0PkYr9eCSh0GzsUOdo*8OtWM5C1`y3;rO@=8goq!|H5O?SUgI#d<`0(+fuCz zgZJS}H>ml!_5vxst%An)##CGNps}5GKVn^AtjiDX6gqbIKx2Op{OS2WhwGqmbm2H2 z0#EWCr#s+T9T?Z6ewBjfy8ki<{5=XLiqrJb{^;;k2Y7u9-st7Y1O)3L#5zP;DTF-$ z;Yzdz>}bH|`w^?GqD-|duuy!plxKuF(V8Ipsd|F6)qIeyjC25NzRq0z@LDbnKad+m znR5K8Th)dbVV+8c_{lXvfI==lY!Ne*zGwO3gv$4vUiqlpBjQw%bUv};I<+TvOA72w h0W>HsF;lh{d+bUJcqNnB1!BOGo8{hURhZRp{sK11=a~Qi diff --git a/programs/develop/ktcc/trunk/libc/include/net/socket.h b/programs/develop/ktcc/trunk/libc/include/net/socket.h index b250171449..114a5fae7a 100644 --- a/programs/develop/ktcc/trunk/libc/include/net/socket.h +++ b/programs/develop/ktcc/trunk/libc/include/net/socket.h @@ -102,6 +102,6 @@ int send(int socket, const void *message, size_t msg_len, int flag); 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 diff --git a/programs/develop/ktcc/trunk/libc/net/socket.c b/programs/develop/ktcc/trunk/libc/net/socket.c index f2c177da27..ce5720a77c 100644 --- a/programs/develop/ktcc/trunk/libc/net/socket.c +++ b/programs/develop/ktcc/trunk/libc/net/socket.c @@ -91,11 +91,13 @@ int getsockopt(int socket, optstruct* opt) ); } -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; }