Mercurial > hg > xemacs-beta
comparison src/unexfreebsd.c @ 255:084402c475ba r20-5b26
Import from CVS: tag r20-5b26
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:21:18 +0200 |
parents | 850242ba4a81 |
children | ca9a9ec9c1c1 |
comparison
equal
deleted
inserted
replaced
254:e92abcaa252b | 255:084402c475ba |
---|---|
681 unsigned long current_sbrk = (unsigned long) sbrk (0); | 681 unsigned long current_sbrk = (unsigned long) sbrk (0); |
682 | 682 |
683 if (sbrk_of_0_at_unexec < current_sbrk) | 683 if (sbrk_of_0_at_unexec < current_sbrk) |
684 { | 684 { |
685 if (sbrk_of_0_at_unexec != 0) | 685 if (sbrk_of_0_at_unexec != 0) |
686 fprintf (stderr, "Absurd new brk addr = 0x%x (current = 0x%x)\n", | 686 fprintf (stderr, "Absurd new brk addr = %lx (current = %lx)\n", |
687 sbrk_of_0_at_unexec, current_sbrk); | 687 sbrk_of_0_at_unexec, current_sbrk); |
688 } | 688 } |
689 else | 689 else |
690 { | 690 { |
691 errno = 0; | 691 errno = 0; |
692 if (brk ((caddr_t) sbrk_of_0_at_unexec)) | 692 if (brk ((caddr_t) sbrk_of_0_at_unexec)) |
693 fprintf (stderr, "failed to change brk addr to 0x%x: %s\n", | 693 fprintf (stderr, "failed to change brk addr to %lx: %s\n", |
694 sbrk_of_0_at_unexec, SYS_ERR); | 694 sbrk_of_0_at_unexec, SYS_ERR); |
695 } | 695 } |
696 | 696 |
697 #if 0 | 697 #if 0 |
698 /* with proper COW, i don't think we really need to do this... */ | 698 /* with proper COW, i don't think we really need to do this... */ |