Mercurial > emacs
comparison src/buffer.c @ 33598:d2ed1317ec06
(mmap_enlarge): Don't print a message on stderr
if mapping new memory at the end of the existing region fails.
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Sat, 18 Nov 2000 15:50:08 +0000 |
| parents | 5fe3b3dc5dd9 |
| children | e822f94eb7d9 |
comparison
equal
deleted
inserted
replaced
| 33597:9841e2ca8c76 | 33598:d2ed1317ec06 |
|---|---|
| 4273 POINTER_TYPE *p; | 4273 POINTER_TYPE *p; |
| 4274 | 4274 |
| 4275 p = mmap (region_end, nbytes, PROT_READ | PROT_WRITE, | 4275 p = mmap (region_end, nbytes, PROT_READ | PROT_WRITE, |
| 4276 MAP_ANON | MAP_PRIVATE | MAP_FIXED, mmap_fd, 0); | 4276 MAP_ANON | MAP_PRIVATE | MAP_FIXED, mmap_fd, 0); |
| 4277 if (p == MAP_FAILED) | 4277 if (p == MAP_FAILED) |
| 4278 fprintf (stderr, "mmap: %s\n", emacs_strerror (errno)); | 4278 ; /* fprintf (stderr, "mmap: %s\n", emacs_strerror (errno)); */ |
| 4279 else if (p != (POINTER_TYPE *) region_end) | 4279 else if (p != (POINTER_TYPE *) region_end) |
| 4280 { | 4280 { |
| 4281 /* Kernels are free to choose a different address. In | 4281 /* Kernels are free to choose a different address. In |
| 4282 that case, unmap what we've mapped above; we have | 4282 that case, unmap what we've mapped above; we have |
| 4283 no use for it. */ | 4283 no use for it. */ |
