Mercurial > hg > xemacs-beta
comparison src/malloc.c @ 404:2f8bb876ab1d r21-2-32
Import from CVS: tag r21-2-32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:16:07 +0200 |
parents | a86b2b5e0111 |
children | 697ef44129c6 |
comparison
equal
deleted
inserted
replaced
403:9f011ab08d48 | 404:2f8bb876ab1d |
---|---|
736 v.nfree++; | 736 v.nfree++; |
737 | 737 |
738 return v; | 738 return v; |
739 } | 739 } |
740 int | 740 int |
741 malloc_mem_used () | 741 malloc_mem_used (void) |
742 { | 742 { |
743 int i; | 743 int i; |
744 int size_used; | 744 int size_used; |
745 | 745 |
746 size_used = 0; | 746 size_used = 0; |
755 | 755 |
756 return size_used; | 756 return size_used; |
757 } | 757 } |
758 | 758 |
759 int | 759 int |
760 malloc_mem_free () | 760 malloc_mem_free (void) |
761 { | 761 { |
762 int i; | 762 int i; |
763 int size_unused; | 763 int size_unused; |
764 | 764 |
765 size_unused = 0; | 765 size_unused = 0; |
785 */ | 785 */ |
786 | 786 |
787 #ifdef USG | 787 #ifdef USG |
788 | 788 |
789 static void | 789 static void |
790 get_lim_data () | 790 get_lim_data (void) |
791 { | 791 { |
792 #ifdef ULIMIT_BREAK_VALUE | 792 #ifdef ULIMIT_BREAK_VALUE |
793 lim_data = ULIMIT_BREAK_VALUE; | 793 lim_data = ULIMIT_BREAK_VALUE; |
794 #else | 794 #else |
795 lim_data = ulimit (3, 0); | 795 lim_data = ulimit (3, 0); |
800 | 800 |
801 #else /* not USG */ | 801 #else /* not USG */ |
802 #ifndef BSD4_2 | 802 #ifndef BSD4_2 |
803 | 803 |
804 static void | 804 static void |
805 get_lim_data () | 805 get_lim_data (void) |
806 { | 806 { |
807 lim_data = vlimit (LIM_DATA, -1); | 807 lim_data = vlimit (LIM_DATA, -1); |
808 } | 808 } |
809 | 809 |
810 #else /* BSD4_2 */ | 810 #else /* BSD4_2 */ |
811 | 811 |
812 static void | 812 static void |
813 get_lim_data () | 813 get_lim_data (void) |
814 { | 814 { |
815 struct rlimit XXrlimit; | 815 struct rlimit XXrlimit; |
816 | 816 |
817 getrlimit (RLIMIT_DATA, &XXrlimit); | 817 getrlimit (RLIMIT_DATA, &XXrlimit); |
818 #ifdef RLIM_INFINITY | 818 #ifdef RLIM_INFINITY |