zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: pws-19: another configure tweak
@ 1999-05-25 10:01 Peter Stephenson
  1999-05-25 11:49 ` PATCH: pws-19: mapfile bit that just sort of disappeared Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Stephenson @ 1999-05-25 10:01 UTC (permalink / raw)
  To: Zsh hackers list

This is necessary when the source and build trees don't coincide.

By the way, it looks like mapfile using mmap() doesn't write the file
properly on HPUX, probably the file doesn't get extended properly first.
I'll have to look at that.

Also, I'll be away for a few days from tomorrow until Monday.

--- configure.in.df	Tue May 25 11:58:25 1999
+++ configure.in	Tue May 25 11:49:09 1999
@@ -1281,7 +1281,8 @@
 
 CLEAN_MK="${srcdir}/Config/clean.mk"
 CONFIG_MK="${srcdir}/Config/config.mk"
-DEFS_MK="${srcdir}/Config/defs.mk"
+dnl defs.mk is in the build tree, not the source tree
+DEFS_MK="Config/defs.mk"
 VERSION_MK="${srcdir}/Config/version.mk"
 
 AC_SUBST_FILE(CLEAN_MK)dnl

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


^ permalink raw reply	[flat|nested] 2+ messages in thread

* PATCH: pws-19: mapfile bit that just sort of disappeared
  1999-05-25 10:01 PATCH: pws-19: another configure tweak Peter Stephenson
@ 1999-05-25 11:49 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 1999-05-25 11:49 UTC (permalink / raw)
  To: Zsh hackers list

Peter Stephenson wrote:
> By the way, it looks like mapfile using mmap() doesn't write the file
> properly on HPUX, probably the file doesn't get extended properly first.
> I'll have to look at that.

No real wonder.  This was there at some stage, though.

--- Src/Modules/mapfile.c.ms	Sat May 22 17:05:15 1999
+++ Src/Modules/mapfile.c	Tue May 25 13:40:47 1999
@@ -143,6 +143,7 @@
 	 */
 	ftruncate(fd, len);
 	memcpy(mmptr, value, len);
+	msync(mmptr, len, MS_SYNC);
 	/*
 	 * Then we need to truncate again, since mmap() always maps complete
 	 * pages.  Honestly, I tried it without, and you need both.

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-05-25 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-25 10:01 PATCH: pws-19: another configure tweak Peter Stephenson
1999-05-25 11:49 ` PATCH: pws-19: mapfile bit that just sort of disappeared Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).