Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com List-Unsubscribe: List-Archive: List-Help: , Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com Message-ID: <002801beddbb$188f4d20$02af6080@sokhapki-2.cc.bellcore.com> From: "Sergey Okhapkin" To: Subject: AF_UNIX implementation for cygwin Date: Tue, 3 Aug 1999 10:18:44 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 fhandler.cc (fhandler_disk_file::fstat) check if the file is unix domain socket. (fhandler_disk_file::open) call set_socket_p(). fhandler.h (FH_LOCAL, FH_FIFO) new fhandler type flags. (fhandler_base) get/set_socket_p - new member functions. (fhandler_socket::addr_family) new member, not used now. (fhandler_socket::get/set_addr_family) new functions to access addr_family. include/sys/un.h new file. net.cc include (cygwin_socket) alway create socket of AF_INET family, store argument's family. (get_inet_addr) new static function, does nothing for AF_INET, converts AF_UNIX requests into corresponding AF_INET requests. (cygwin_sendto) use get_inet_addr(). (cygwin_connect) likewise. (cygwin_accept) check for sockaddr length. (cygwin_bind) if bind address is of AF_UNIX family, bind to any available port of loopback interface, store port number in the "socket file", set file attribute to S_IFSOCK. path.cc (symlink_check_one) if the file begins with SOCKET_COOKIE, mark the file as PATH_SOCKET. path.h (PATH_SOCKET) new enum value. (path_conv::issocket) new member function. (SOCKET_COOKIE) new define. syscalls.cc (chmod) mark socket files with system file attribute. Sergey Okhapkin, http://www.lexa.ru/sos Piscataway, NJ begin 666 AF_UNIX.diff M9&EF9B M=7!R3B O=VEN&5C86)L95]P("AR96%L7W!A=&@N:7-E>&5C("@I*3L**R @# T,# P,# P+ DO*B!&:6QE M(&ES('5N:7@@9&]M86EN('-O8VME=" J+PHK("!&2%]&249/(" @(#T@,'@P M.# P,# P,"P)+RH AT 1FEL92!I#0P,# P,# P+ DO*B!46UL:6YK7W @*&EN="!V86PI('L AT 1DA# M3TY$4T541B H=F%L+"!364U,24Y+*3L@?0H@("!V;VED('-E=%]S>6UL:6YK M7W @*"D@>R!&2%-%5$8@*%-934Q)3DLI.R!]"B **R @:6YT(&=E=%]S;V-K M971?<" H*2![(')E='5R;B!&2$E34T541B H3$]#04PI.R!]"BL@('9O:60@ MR!R971U&5C86)L95]P("@I('L AT 1DA3151&("A%6$5#04),*3L@?0I 0" M M,CDP+#8@*S(Y-BPX($! ('!U8FQI8SH*( H AT 8VQAPHK<')I=F%T93H**R @:6YT M(&%D9')?9F%M:6QY.PH@<'5B;&EC DOT AT H@("!F:&%N9&QE&-E<'0@*'-E;&5C=%]R96-O2 H*2![V%D9')?9F%M:6QY M(#T AT 868[?0H@?3L*( H AT 8VQA7,O=6XN: E4:'4 AT 2F%N(# Q(# T.C P.C P(#$Y-S **RLK('=I;G-U M<"]I;F-L=61E+W-YPHK("!U;G-I9VYE9"!S M:&]R= ES=6Y?9F%M:6QY.PDO*B!A9&1R97-S(&9A;6EL>2P AT 049?>'AX"2HO M"BL@(&-H87()"0ES=6Y?<&%T:%LQ,#A=.PDO*B Q,#@@8GET97,@;V8@7!E+" P*3L*( HM("!S;V,@/2!S;V-K970@*&%F+"!T>7!E+"!P7!E(#T](%-/0TM?4U1214%-(#\@(B]D M978O7!E(#T](%-/0TM?4U1214%-(#\@(B]D978O=&-P(B Z("(O9&5V M+W5D<"(I.PHM("!E;'-E"BT@(" @;F%M92 ]("AT>7!E(#T](%-/0TM?4U12 M14%-(#\@(B]D978O6=W:6X@:6YT97)N86PZ(&UA<"!S;V-K861DPHK("!I M9B H:6XM/G-A7V9A;6EL>2 ]/2!!1E])3D54*0HK(" @('L**R @(" @("IO M=70@/2 J("AS;V-K861DPHK(" @(" @F5O9B!B M=68I(#T]("TQ*0HK"7)E='5R;B P.PHK(" @(" @PHK(" @(" @ M'!O6=W M:6Y?PH@(" @(" @6=W:6Y?8V]N;F5C=" H:6YT(&9D+ H@("!I;B H M(F-O;FYE8W0B*3L*(" @:6YT(')E2D@*R!S=')L96XH;F%M M92YS=6Y?<&%T:"D AT 9F]R(%5.25@@9&]M86EN"BL@(" @(" @*B\**R @(" @ M(&EF("AL96X@)B8@*"AU;G-I9VYE9"D@*FQE;B \('-I>F5O9B HF5O9B H5]A9&1R+3YS85]F86UI;'D@/3T AT 049?54Y)6"D**PE["BL)("!S M=')U8W0@F5O9B!S M:6X["BL)("!I;G0 AT 9F0["BL**PD@('-I;BYS:6Y?9F%M:6QY(#T AT 049?24Y% M5#L**PD@('-I;BYS:6Y?<&]R=" ](# ["BL)("!S:6XN7-C86QL7W!R:6YT9B H(D%&7U5 DOT 25 AT Z(&)I M;F0 AT 9F%I;&5D("5D(BP AT 9V5T7V5R7-C86QL7W!R:6YT9B H(D%&7U5 DOT 25 AT Z(&=E='-O8VMN86UE(&9A M:6QE9" E9"(L(&=E=%]E5]A9&1R+"!A9&1R;&5N*3L**PD@(&EF("AR M97,I"BL)(" @('-E=%]W:6YS;V-K7V5R"P@)60I(BP@6UL:6YK M7V-H96-K7V]N92 H8V]NF5O M9B H8V]O:VEE7V)U9BD**PD)(" @)B8@;65M8VUP("AC;V]K:65?8G5F+"!3 M3T-+151?0T]/2TE%+ HK"0D)(" @(" @PHK"2 @(" @(')EW)E='5R;B!P871H7V9L86=S("8 AT 4$%42%]" M24Y!4ED[?0H@("!I;G0@:7-S>6UL:6YK("@I('MR971UW)E='5R;B!P871H7V9L86=S("8 AT 4$%42%]%6$5#.WT*( H@("!V;VED('-E M=%]B:6YAW!A=&A?9FQA9W,@?#T AT 4$%42%]"24Y!4ED[?0I 0" M M-S$L-B K-S,L.2! 0"!C;&%S&EM=6T AT 9&5P=&@@;V8@