comparison src/unexec.c @ 2:ac2d302a0011 r19-15b2

Import from CVS: tag r19-15b2
author cvs
date Mon, 13 Aug 2007 08:46:35 +0200
parents 376386a54a3c
children 57709be46d1b
comparison
equal deleted inserted replaced
1:c0c6a60d29db 2:ac2d302a0011
1099 && errno == EFAULT 1099 && errno == EFAULT
1100 #endif 1100 #endif
1101 ) 1101 )
1102 { 1102 {
1103 /* Write only a page of zeros at once, 1103 /* Write only a page of zeros at once,
1104 so that we we don't overshoot the start 1104 so that we don't overshoot the start
1105 of the valid memory in the old data segment. */ 1105 of the valid memory in the old data segment. */
1106 if (nwrite > pagesize) 1106 if (nwrite > pagesize)
1107 nwrite = pagesize; 1107 nwrite = pagesize;
1108 write (new, zeros, nwrite); 1108 write (new, zeros, nwrite);
1109 } 1109 }