Displaying 20 results from an estimated 26 matches for "stackblocks".
Did you mean:
stackblock
2020 Mar 28
0
[klibc:update-dash] dash: expand: Do not reprocess data when expanding words
Commit-ID: 527bee886ced0d22428417d60a638521e435bb96
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=527bee886ced0d22428417d60a638521e435bb96
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Wed, 30 May 2018 02:06:03 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: expand: Do not
2020 Mar 28
0
[klibc:update-dash] dash: exec: Do not allocate stack string in padvance
Commit-ID: 6e48f19172d90268f524bf1a3788f7c023b24391
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=6e48f19172d90268f524bf1a3788f7c023b24391
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Sat, 19 May 2018 02:39:48 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: exec: Do not
2020 Mar 28
0
[klibc:update-dash] dash: memalloc: Add growstackto helper
...c.c
+++ b/usr/dash/exec.c
@@ -195,9 +195,7 @@ padvance(const char **path, const char *name)
start = *path;
for (p = start ; *p && *p != ':' && *p != '%' ; p++);
len = p - start + strlen(name) + 2; /* "2" is for '/' and '\0' */
- while (stackblocksize() < len)
- growstackblock();
- q = stackblock();
+ q = growstackto(len);
if (p != start) {
memcpy(q, start, p - start);
q += p - start;
diff --git a/usr/dash/memalloc.c b/usr/dash/memalloc.c
index d8e4413d..9d1de74a 100644
--- a/usr/dash/memalloc.c
+++ b/usr/dash/memalloc.c
@@ -265,6...
2019 Jan 25
0
[klibc:update-dash] builtin: Fix echo performance regression
Commit-ID: 3414beec73bd0e9ab4af10e15fa703205b93f616
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=3414beec73bd0e9ab4af10e15fa703205b93f616
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Sun, 25 Mar 2018 11:50:36 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] builtin: Fix echo
2020 Mar 28
0
[klibc:update-dash] dash: builtin: Fix echo performance regression
Commit-ID: 2e20c3194ef01b36e2975764fa23aae89d802138
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=2e20c3194ef01b36e2975764fa23aae89d802138
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Sun, 25 Mar 2018 11:50:36 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: builtin: Fix
2019 Jan 25
0
[klibc:update-dash] [EXPAND] Optimise nulonly away and just use quoted as before
Commit-ID: 6e3f1aff00a97256e185897ac25d4d5b9ed5a4a5
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=6e3f1aff00a97256e185897ac25d4d5b9ed5a4a5
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Wed, 8 Oct 2014 20:09:56 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] [EXPAND] Optimise
2020 Mar 28
0
[klibc:update-dash] dash: [EXPAND] Optimise nulonly away and just use quoted as before
Commit-ID: f253b53e6b2b89b31085e7d1e50f0eb6edf891dd
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=f253b53e6b2b89b31085e7d1e50f0eb6edf891dd
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Wed, 8 Oct 2014 20:09:56 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: [EXPAND]
2019 Jan 25
0
[klibc:update-dash] [EXPAND] Split unquoted $@/$* correctly when IFS is set but empty
Commit-ID: af24ffa8f0b9d90e29d6daf77e5349dd3ffe4aec
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=af24ffa8f0b9d90e29d6daf77e5349dd3ffe4aec
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Wed, 8 Oct 2014 15:24:23 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] [EXPAND] Split
2020 Mar 28
0
[klibc:update-dash] dash: [EXPAND] Split unquoted $@/$* correctly when IFS is set but empty
Commit-ID: 4dc603d0fe5a997d8bbd5048b229d655e6549ced
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=4dc603d0fe5a997d8bbd5048b229d655e6549ced
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Wed, 8 Oct 2014 15:24:23 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: [EXPAND] Split
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Handle embedded NULs correctly in printf
...sprintf(char **sp, size_t size, const char *f, va_list ap)
+{
+ char *s;
+ int len;
+ va_list ap2;
+
+ va_copy(ap2, ap);
+ len = xvsnprintf(*sp, size, f, ap2);
+ va_end(ap2);
+ if (len < 0)
+ sh_error("xvsnprintf failed");
+ if (len < size)
+ return len;
+
+ s = stalloc((len >= stackblocksize() ? len : stackblocksize()) + 1);
+ *sp = s;
+ len = xvsnprintf(s, len + 1, f, ap);
+ return len;
+}
+
+
+int xasprintf(char **sp, const char *f, ...)
+{
+ va_list ap;
+ int ret;
+
+ va_start(ap, f);
+ ret = xvasprintf(sp, 0, f, ap);
+ va_end(ap);
+ return ret;
+}
+
+
#ifndef USE_GLIBC_STDIO
v...
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Handle embedded NULs correctly in printf
...sprintf(char **sp, size_t size, const char *f, va_list ap)
+{
+ char *s;
+ int len;
+ va_list ap2;
+
+ va_copy(ap2, ap);
+ len = xvsnprintf(*sp, size, f, ap2);
+ va_end(ap2);
+ if (len < 0)
+ sh_error("xvsnprintf failed");
+ if (len < size)
+ return len;
+
+ s = stalloc((len >= stackblocksize() ? len : stackblocksize()) + 1);
+ *sp = s;
+ len = xvsnprintf(s, len + 1, f, ap);
+ return len;
+}
+
+
+int xasprintf(char **sp, const char *f, ...)
+{
+ va_list ap;
+ int ret;
+
+ va_start(ap, f);
+ ret = xvasprintf(sp, 0, f, ap);
+ va_end(ap);
+ return ret;
+}
+
+
#ifndef USE_GLIBC_STDIO
v...
2020 Mar 28
0
[klibc:update-dash] dash: memalloc: Avoid looping in growstackto
...f space");
- if (newlen < 128)
- newlen += 128;
+ min = SHELL_ALIGN(min | 128);
+ if (newlen < min)
+ newlen += min;
if (stacknxt == stackp->space && stackp != &stackbase) {
struct stack_block *sp;
@@ -261,15 +261,15 @@ void *
growstackstr(void)
{
size_t len = stackblocksize();
- growstackblock();
+
+ growstackblock(0);
return stackblock() + len;
}
char *growstackto(size_t len)
{
- while (stackblocksize() < len)
- growstackblock();
-
+ if (stackblocksize() < len)
+ growstackblock(len);
return stackblock();
}
diff --git a/usr/dash/memalloc.h b/usr...
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fix double-decrement in argstr
Commit-ID: 4bfffb1572c9d1b77538b5a3e92c27f91bd2ee99
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=4bfffb1572c9d1b77538b5a3e92c27f91bd2ee99
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Mon, 25 Feb 2019 14:00:31 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: expand: Fix
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fix trailing newlines processing in backquote expanding
Commit-ID: 42c84c0c2ed8f5b9a81bd70582edfa9d7ead08be
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=42c84c0c2ed8f5b9a81bd70582edfa9d7ead08be
Author: Nikolai Merinov <n.merinov at inango-systems.com>
AuthorDate: Mon, 29 Apr 2019 19:13:37 +0500
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: expand:
2020 Mar 28
0
[klibc:update-dash] dash: exec: Stricter pathopt parsing
Commit-ID: 604d3a0a1570f3478360913c2935ea53d18857e6
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=604d3a0a1570f3478360913c2935ea53d18857e6
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Sat, 19 May 2018 02:39:50 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: exec: Stricter
2019 Jan 25
0
[klibc:update-dash] parser: Add syntax stack for recursive parsing
Commit-ID: 5dcca37d55b772e13d6d56eac9a7b733e69e99d2
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=5dcca37d55b772e13d6d56eac9a7b733e69e99d2
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Fri, 9 Mar 2018 00:14:02 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] parser: Add syntax
2020 Mar 28
0
[klibc:update-dash] dash: parser: Add syntax stack for recursive parsing
Commit-ID: ef6ed3c138aaf680ff3e4e0d7fbad6d2c61fb7d0
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=ef6ed3c138aaf680ff3e4e0d7fbad6d2c61fb7d0
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Fri, 9 Mar 2018 00:14:02 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: parser: Add
2019 Jan 25
0
[klibc:update-dash] expand: Fix ghost fields with unquoted $@/$*
Commit-ID: c36feecd03749ebe7eccb7556c5fc5d38bd88dfd
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=c36feecd03749ebe7eccb7556c5fc5d38bd88dfd
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Fri, 23 Mar 2018 18:58:47 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] expand: Fix ghost
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fix ghost fields with unquoted $@/$*
Commit-ID: 887c4118916c8ee1aff8cdefbb691bd835c6566e
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=887c4118916c8ee1aff8cdefbb691bd835c6566e
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Fri, 23 Mar 2018 18:58:47 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: expand: Fix
2019 Jan 25
0
[klibc:update-dash] builtin: Fix handling of trailing IFS white spaces
Commit-ID: 9c83a988fbbacc54bdf700ffc94c5420beb14909
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=9c83a988fbbacc54bdf700ffc94c5420beb14909
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Sun, 12 Jun 2016 20:17:48 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] builtin: Fix handling