svn commit: r298626 - head/bin/csh

Andrew Turner andrew at FreeBSD.org
Tue Apr 26 11:39:34 UTC 2016


Author: andrew
Date: Tue Apr 26 11:39:32 2016
New Revision: 298626
URL: https://svnweb.freebsd.org/changeset/base/298626

Log:
  Stop using sbrk in csh. This is a legacy interface and its use within csh
  is invalid. It is used to find the size of allocated memory. As malloc may
  allocate memory with mmap it will fail to take this memory into account.
  
  Obtained from:	brooks

Modified:
  head/bin/csh/config.h

Modified: head/bin/csh/config.h
==============================================================================
--- head/bin/csh/config.h	Tue Apr 26 11:15:48 2016	(r298625)
+++ head/bin/csh/config.h	Tue Apr 26 11:39:32 2016	(r298626)
@@ -99,7 +99,7 @@
 #define HAVE_PATHS_H 1
 
 /* Define to 1 if you have the `sbrk' function. */
-#define HAVE_SBRK 1
+/* #undef HAVE_SBRK 1 */
 
 /* Define to 1 if you have the `setpgid' function. */
 #define HAVE_SETPGID 1


More information about the svn-src-all mailing list