Compare commits
No commits in common. 'c9' and 'i10c-beta' have entirely different histories.
@ -1 +1 @@
|
|||||||
SOURCES/tcsh-6.22.03.tar.gz
|
SOURCES/tcsh-6.24.10.tar.gz
|
||||||
|
@ -1 +1 @@
|
|||||||
3d1e4a0087a41350ce81fb1a9a04403c5ffb7e5f SOURCES/tcsh-6.22.03.tar.gz
|
41f38045b74b59e43ac57bad730679c7d0360d08 SOURCES/tcsh-6.24.10.tar.gz
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
From 0d6172b290175b667dc2d83528f42b435827fd40 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "David Kaspar [Dee'Kej]" <dkaspar@redhat.com>
|
|
||||||
Date: Fri, 29 Apr 2016 16:52:59 +0200
|
|
||||||
Subject: [PATCH] Inform about no support for 'limit memoryuse' in manpage
|
|
||||||
|
|
||||||
This patch has been introduced after request in BZ: #247637
|
|
||||||
---
|
|
||||||
tcsh.man | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/tcsh.man b/tcsh.man
|
|
||||||
index 584de6f..f5dc582 100644
|
|
||||||
--- a/tcsh.man
|
|
||||||
+++ b/tcsh.man
|
|
||||||
@@ -3014,6 +3014,8 @@ the size of the largest core dump that will be created
|
|
||||||
\fImemoryuse\fR
|
|
||||||
the maximum amount of physical memory a process
|
|
||||||
may have allocated to it at a given time
|
|
||||||
+
|
|
||||||
+NOTE: Changing this value has no effect. Support has been removed from Linux kernel v2.6 and newer.
|
|
||||||
.TP
|
|
||||||
\fIvmemoryuse\fR
|
|
||||||
the maximum amount of virtual memory a process
|
|
||||||
--
|
|
||||||
2.7.4
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
|||||||
From 04a68ad191cfcb87cdff70a6b913721e423cd28b Mon Sep 17 00:00:00 2001
|
|
||||||
From: Christos Zoulas <christos@zoulas.com>
|
|
||||||
Date: Mon, 23 Aug 2021 08:31:59 -0400
|
|
||||||
Subject: [PATCH] Fix bug reported by Jan Macku: alias postcmd '/bin/echo
|
|
||||||
-n "COMMAND:"'"'"'\!#:-$:gx'"'"'' echo 1 2 3 4 5 ^P prints echo 1
|
|
||||||
2 3 4 Reason: domod() enters junk history entries with event number
|
|
||||||
HIST_PURGE aliasrun which is used to run postcmd modifies the history
|
|
||||||
appending those entries. Fix by explicitly cleaning up those entries in
|
|
||||||
aliasrun
|
|
||||||
|
|
||||||
---
|
|
||||||
sh.decls.h | 1 +
|
|
||||||
sh.hist.c | 11 +++++++++++
|
|
||||||
tc.func.c | 2 ++
|
|
||||||
3 files changed, 14 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/sh.decls.h b/sh.decls.h
|
|
||||||
index e230becd..1ac9716e 100644
|
|
||||||
--- a/sh.decls.h
|
|
||||||
+++ b/sh.decls.h
|
|
||||||
@@ -217,6 +217,7 @@ extern int t_pmatch (const Char *, const Char *,
|
|
||||||
*/
|
|
||||||
extern void dohist (Char **, struct command *);
|
|
||||||
extern struct Hist *enthist (int, struct wordent *, int, int, int);
|
|
||||||
+extern void cleanhist (void);
|
|
||||||
extern void savehist (struct wordent *, int);
|
|
||||||
extern char *fmthist (int, ptr_t);
|
|
||||||
extern void rechist (Char *, int);
|
|
||||||
diff --git a/sh.hist.c b/sh.hist.c
|
|
||||||
index 14d862a3..40660bdc 100644
|
|
||||||
--- a/sh.hist.c
|
|
||||||
+++ b/sh.hist.c
|
|
||||||
@@ -1184,6 +1184,17 @@ dohist(Char **vp, struct command *c)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
+void
|
|
||||||
+cleanhist(void)
|
|
||||||
+{
|
|
||||||
+ struct Hist *hp, *np;
|
|
||||||
+
|
|
||||||
+ for (hp = &Histlist; (np = hp->Hnext) != NULL;) {
|
|
||||||
+ if (np->Hnum != HIST_PURGE)
|
|
||||||
+ return;
|
|
||||||
+ hremove(np), hfree(np);
|
|
||||||
+ }
|
|
||||||
+}
|
|
||||||
|
|
||||||
char *
|
|
||||||
fmthist(int fmt, ptr_t ptr)
|
|
||||||
diff --git a/tc.func.c b/tc.func.c
|
|
||||||
index 9f2b1a29..df4aa7a3 100644
|
|
||||||
--- a/tc.func.c
|
|
||||||
+++ b/tc.func.c
|
|
||||||
@@ -999,6 +999,7 @@ aliasrun(int cnt, Char *s1, Char *s2)
|
|
||||||
|
|
||||||
getexit(osetexit);
|
|
||||||
if (seterr) {
|
|
||||||
+ cleanhist();
|
|
||||||
xfree(seterr);
|
|
||||||
seterr = NULL; /* don't repeatedly print err msg. */
|
|
||||||
}
|
|
||||||
@@ -1075,6 +1076,7 @@ aliasrun(int cnt, Char *s1, Char *s2)
|
|
||||||
}
|
|
||||||
cleanup_until(&w);
|
|
||||||
pendjob();
|
|
||||||
+ cleanhist();
|
|
||||||
/* Restore status */
|
|
||||||
setv(STRstatus, putn((tcsh_number_t)status), VAR_READWRITE);
|
|
||||||
}
|
|
@ -1,62 +0,0 @@
|
|||||||
From c14852867786c798f98a23d075e76a2e2acce204 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Christos Zoulas <christos@zoulas.com>
|
|
||||||
Date: Mon, 23 Aug 2021 08:30:57 -0400
|
|
||||||
Subject: [PATCH] - Expose HIST_PURGE - Compare pointer against null - Use
|
|
||||||
initlex()
|
|
||||||
|
|
||||||
---
|
|
||||||
sh.h | 2 ++
|
|
||||||
sh.lex.c | 6 ++----
|
|
||||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/sh.h b/sh.h
|
|
||||||
index 3c285a9e..77e801c6 100644
|
|
||||||
--- a/sh.h
|
|
||||||
+++ b/sh.h
|
|
||||||
@@ -78,6 +78,7 @@ typedef unsigned long intptr_t;
|
|
||||||
#if defined(KANJI) && defined(WIDE_STRINGS) && defined(HAVE_NL_LANGINFO) && defined(CODESET)
|
|
||||||
#define AUTOSET_KANJI
|
|
||||||
#endif
|
|
||||||
+
|
|
||||||
/*
|
|
||||||
* Sanity
|
|
||||||
*/
|
|
||||||
@@ -1027,6 +1028,7 @@ EXTERN struct varent {
|
|
||||||
* The following are for interfacing redo substitution in
|
|
||||||
* aliases to the lexical routines.
|
|
||||||
*/
|
|
||||||
+#define HIST_PURGE -500000
|
|
||||||
EXTERN struct wordent *alhistp IZERO_STRUCT;/* Argument list (first) */
|
|
||||||
EXTERN struct wordent *alhistt IZERO_STRUCT;/* Node after last in arg list */
|
|
||||||
EXTERN Char **alvec IZERO_STRUCT,
|
|
||||||
diff --git a/sh.lex.c b/sh.lex.c
|
|
||||||
index 5b0c6d8d..afe053e5 100644
|
|
||||||
--- a/sh.lex.c
|
|
||||||
+++ b/sh.lex.c
|
|
||||||
@@ -153,8 +153,7 @@ lex(struct wordent *hp)
|
|
||||||
|
|
||||||
if (!postcmd_active)
|
|
||||||
btell(&lineloc);
|
|
||||||
- hp->next = hp->prev = hp;
|
|
||||||
- hp->word = STRNULL;
|
|
||||||
+ initlex(hp);
|
|
||||||
hadhist = 0;
|
|
||||||
do
|
|
||||||
c = readc(0);
|
|
||||||
@@ -711,7 +710,7 @@ getexcl(Char sc)
|
|
||||||
|
|
||||||
lastev = eventno;
|
|
||||||
hp = gethent(sc);
|
|
||||||
- if (hp == 0)
|
|
||||||
+ if (hp == NULL)
|
|
||||||
return;
|
|
||||||
hadhist = 1;
|
|
||||||
dol = 0;
|
|
||||||
@@ -901,7 +900,6 @@ getsub(struct wordent *en)
|
|
||||||
* We raise the limit to 50000000
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#define HIST_PURGE -50000000
|
|
||||||
static struct wordent *
|
|
||||||
dosub(Char sc, struct wordent *en, int global)
|
|
||||||
{
|
|
@ -0,0 +1,25 @@
|
|||||||
|
From 2a431ea9318111535d37112daeeeccdc4df249ee Mon Sep 17 00:00:00 2001
|
||||||
|
From: rpm-build <rpm-build>
|
||||||
|
Date: Fri, 13 Jan 2023 09:02:11 +0100
|
||||||
|
Subject: [PATCH] Inform about no support for 'limit memoryuse' in manpage
|
||||||
|
|
||||||
|
Related: #247637
|
||||||
|
---
|
||||||
|
tcsh.man.in | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/tcsh.man.in b/tcsh.man.in
|
||||||
|
index 24a9629..d405a70 100644
|
||||||
|
--- a/tcsh.man.in
|
||||||
|
+++ b/tcsh.man.in
|
||||||
|
@@ -5960,6 +5960,7 @@ Maximum amount of swap space reserved or used for this user.
|
||||||
|
Maximum number of threads for this process.
|
||||||
|
.
|
||||||
|
.It Ic vmemoryuse
|
||||||
|
+NOTE: Changing this value has no effect. Support has been removed from Linux kernel v2.6 and newer.
|
||||||
|
Maximum amount of virtual memory a process
|
||||||
|
may have allocated to it at a given time (address space).
|
||||||
|
.
|
||||||
|
--
|
||||||
|
2.39.0
|
||||||
|
|
Loading…
Reference in new issue