delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/02/16/13:19:43

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'" <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<W5P+V-Y9W=I;BYD:6X)5V5D($9E8B Q,2 P-CHQ-#HT." Q
M.3DX"BLK*R!W:6YS=7 O8WEG=VEN+F1I;@E-;VX AT 1F5B(#$V(#$U.C(Y.C(R
M(#$Y.3@*0$ @+3<Q+#@@*S<Q+#@@0$ @8V%B<PH AT 7V-A8G,@/2!C86)S"B!C
M86)S9 AT H@7V-A8G-F(#T AT 8V%B<V8*+6-A;&QO8PHM7V-A;&QO8R ](&-A;&QO
M8PHK8V%L;&]C(#T AT 97AP;W)T7V-A;&QO8PHK7V-A;&QO8R ](&5X<&]R=%]C
M86QL;V,*(&-B<G0*(%]C8G)T(#T AT 8V)R= H AT 8V)R=&8*9&EF9B M=7 @+W=I
M;G-U<"]G971O<'0N8R!W:6YS=7 O9V5T;W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86QL;V,@/2 F<F5A;&QO8SL**R @8WEG=VEN7W-T871U+F-A;&QO8R ]
M("9C86QL;V,["B *(" @+RH AT 4V5T=7 @=&AE(&UO9'5L92!H86YD;&4@<V\@
M9F]R:R!C86X AT 9V5T('1H92!P871H(&YA;64N("HO"B @(&-Y9W=I;E]S=&%T
M=2YH;6]D=6QE(#T AT 1V5T36]D=6QE2&%N9&QE("@P*3L*9&EF9B M=7 @+W=I
M;G-U<"]M86QL;V,N8V,@=VEN<W5P+VUA;&QO8RYC8PHM+2T@+W=I;G-U<"]M
M86QL;V,N8V,)5&AU($9E8B Q,B P,#HU-3HP-B Q.3DX"BLK*R!W:6YS=7 O
M;6%L;&]C+F-C"4UO;B!&96(@,38@,34Z,S4Z-#D@,3DY. I 0" M-C(L-B K
M-C(L,38 AT 0$ @<F5A;&QO8R H=F]I9" J<"P@<VEZ95]T('-I>F4I"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@(')E<R ]('4M/F-A;&QO8R H;FUE;6(L('-I>F4I.PHK("!O=70@
M*")C86QL;V,B*3L**R @<F5T=7)N(')E<SL**WT**PH@+RH AT 5&AE<V4@<F]U
M=&EN97,@87)E('5S960 AT 8GD@=&AE(&%P<&QI8V%T:6]N(&EF(&ET"B @("!D
M;V5S;B=T('!R;W9I9&4@:71S(&]W;B!M86QL;V,N("HO"B @(" *0$ @+3$P
M,"PV("LQ,3 L,3D AT 0$ @97AP;W)T7W)E86QL;V,@*'9O:60@*G L(&EN="!S
M:7IE*0H@("!E;'-E"B @(" @<F5S(#T@=2T^<F5A;&QO8R H<"P@<VEZ92D[
M"B @(&]U=" H(F5X<&]R=%]R96%L;&]C(BD["BL@(')E='5R;B!R97,["BM]
M"BL**W9O:60@*@HK97AP;W)T7V-A;&QO8R H<VEZ95]T(&YM96UB+"!S:7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B Q-CHR,CHU.2 Q.3DX
M"D! ("TX-2PX("LX-2PY($! (&-L87-S('!E<E]P<F]C97-S"B @('9O:60@
M*F)S<U]S=&%R=#L*(" @=F]I9" J8G-S7V5N9#L*( HK("!V;VED("HH*F-A
M;&QO8RDH<VEZ95]T+"!S:7IE7W0I.PH@(" O*B!&;W(@9G5T=7)E(&5X<&%N
M<VEO;B!O9B!V86QU97,@<V5T(&)Y('1H92!A<' N("HO"BT@('9O:60@*G!U
M8FQI8U]R97-E<G9E9%LU73L**R @=F]I9" J<'5B;&EC7W)E<V5R=F5D6S1=
M.PH@"B @("\J(%1H92!R97-T(&%R92 J:6YT97)N86PJ('1O(&-Y9W=I;BYD
M;&PN"B @(" @(%1H;W-E('1H870 AT 87)E(&AE<F4 AT 8F5C875S92!W92!W86YT
E('1H92!C:&EL9"!T;R!I;FAE<FET('1H92!V86QU92!F<F]M"B!W
`
end

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019