Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142127490
D42981.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D42981.diff
View Options
Index: shells/44bsd-csh/Makefile
===================================================================
--- shells/44bsd-csh/Makefile
+++ shells/44bsd-csh/Makefile
@@ -1,15 +1,12 @@
PORTNAME= 44bsd-csh
PORTVERSION= 20001106
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= shells
MASTER_SITES= LOCAL/cy
MAINTAINER= cy@FreeBSD.org
COMMENT= The traditional 4.4BSD /bin/csh C-shell
-BROKEN_aarch64= Fails to link: missing sbrk
-BROKEN_riscv64= Fails to link: missing sbrk
-
EXTRACT_DEPENDS= rcs:devel/rcs57
USES= tar:bzip2
Index: shells/44bsd-csh/files/patch-alloc.c
===================================================================
--- /dev/null
+++ shells/44bsd-csh/files/patch-alloc.c
@@ -0,0 +1,48 @@
+--- alloc.c.orig
++++ alloc.c
+@@ -52,17 +52,12 @@
+ #include "csh.h"
+ #include "extern.h"
+
+-char *memtop = NULL; /* PWP: top of current memory */
+-char *membot = NULL; /* PWP: bottom of allocatable memory */
+-
+ ptr_t
+ Malloc(n)
+ size_t n;
+ {
+ ptr_t ptr;
+
+- if (membot == NULL)
+- memtop = membot = sbrk(0);
+ if ((ptr = malloc(n)) == (ptr_t) 0) {
+ child++;
+ stderror(ERR_NOMEM);
+@@ -77,8 +72,6 @@
+ {
+ ptr_t ptr;
+
+- if (membot == NULL)
+- memtop = membot = sbrk(0);
+ if ((ptr = realloc(p, n)) == (ptr_t) 0) {
+ child++;
+ stderror(ERR_NOMEM);
+@@ -92,8 +85,6 @@
+ {
+ ptr_t ptr;
+
+- if (membot == NULL)
+- memtop = membot = sbrk(0);
+ if ((ptr = calloc(s, n)) == (ptr_t) 0) {
+ child++;
+ stderror(ERR_NOMEM);
+@@ -123,8 +114,5 @@
+ Char **v;
+ struct command *t;
+ {
+- memtop = (char *) sbrk(0);
+- (void) fprintf(cshout, "Allocated memory from 0x%lx to 0x%lx (%ld).\n",
+- (unsigned long) membot, (unsigned long) memtop,
+- (unsigned long) (memtop - membot));
++ (void) fprintf(cshout, "memory stats not supported\n");
+ }
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 17, 7:06 AM (12 h, 21 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27684509
Default Alt Text
D42981.diff (1 KB)
Attached To
Mode
D42981: shells/44bsd-csh: remove sbrk use
Attached
Detach File
Event Timeline
Log In to Comment