From: sos AT buggy DOT prospect DOT com DOT ru (Sergey Okhapkin) Subject: One more malloc fix. 16 Feb 1998 13:19:43 -0800 Message-ID: <01BD3B2F.7C07F580.cygnus.cygwin32.developers@sos> Reply-To: cygwin32-developers AT cygnus DOT com To: "'cygwin32-developers AT cygnus DOT com'" Hi! This patch adds wrapping for calloc() calls like for malloc/realloc/free. The patch invalidates existing binaries (they must be relinked with new libcygwin.a). X-window version of Xemacs now works! cygwin.din (calloc, _calloc): points to cygwin's export_calloc. getopt.c debug variable moved to disabled plase - not used, but conflicts with debug variable in some applications. libccrt0.cc (cygwin_crt0_common): initialize cygwin_statu.calloc. malloc.cc (calloc, export_calloc): new. syscalls.h prototype for export_calloc added. winsup.h (class per_process): calloc - new member. public_reserved space decreased by 1. -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia Looking for a job begin 600 calloc.diff M9&EF9B M=7 @+W=I;G-U<"]C>6=W:6XN9&EN('=I;G-U<"]C>6=W:6XN9&EN M"BTM+2 O=VEN'1EPI 0" M M,CDV+#8@*S(Y-"PX($! (&-H87(@*F%R9W8X6UT@/2![(")497-T('-I;7!L M92!T97)M:6YA=&D*(&-H87(@*F%R9W8Y6UT@/2![(")497-T("TM('1EB(L("(M+2(L("(M+7HB+"!.54Q,('T["B *("-I9B P M"BMI;G0 AT 9&5B=6<@/2 P.PHK"B!I;G0@;6%I;BAA6=W:6Y?8W)T,%]C;VUM;VX@ M*$UA:6Y&=6YC"B @(&-Y9W=I;E]S=&%T=2YM86QL;V,@/2 F;6%L;&]C.R * M(" @8WEG=VEN7W-T871U+F9R964@/2 F9G)E93L*(" @8WEG=VEN7W-T871U M+G)E86QL;V,@/2 FF4I"B @(')E M='5R;B!R97,["B!]"B **W9O:60@*@HK8V%L;&]C("AS:7IE7W0@;FUE;6(L M('-I>F5?="!S:7IE*0HK>PHK("!V;VED("IR97,["BL@(&EN("@B8V%L;&]C M(BD["BL@(')EF4I.PHK("!O=70@ M*")C86QL;V,B*3L**R @F4I.PHK("!E;'-E M"BL@(" @7-C86QL'!OF5?="!S:7IE*3L*( H@+RH AT 4V5C=7)E M(&5X96,H*2!F=6YC=&EO;G,@9F%M:6QY("HO"B!P:61?="!S97AE8VPH2$%. M1$Q%+"!C;VYS="!C:&%R("IP871H+"!C;VYS="!C:&%R("IA