search for: setvarint

Displaying 9 results from an estimated 9 matches for "setvarint".

2019 Jan 25
0
[klibc:update-dash] [VAR] Use setvareq to set OPTIND initially
...386e0220e4e0944c439d Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Tue, 7 Oct 2014 22:24:42 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] [VAR] Use setvareq to set OPTIND initially There is no need to setvarint to set the initial value of OPTIND of one. This patch switchs to setvareq which also lets us avoid an unnecessary memory allocation. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/var.c | 5 +++-- 1 file...
2020 Mar 28
0
[klibc:update-dash] dash: [VAR] Use setvareq to set OPTIND initially
...r.apana.org.au> AuthorDate: Tue, 7 Oct 2014 22:24:42 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: [VAR] Use setvareq to set OPTIND initially [ dash commit f20dcdd0948d7ebb7d462a0288ea218468ad4f6c ] There is no need to setvarint to set the initial value of OPTIND of one. This patch switchs to setvareq which also lets us avoid an unnecessary memory allocation. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/var.c | 5 +++-- 1 file...
2019 Jan 25
0
[klibc:update-dash] [VAR] Initialise OPTIND after importing environment
...r.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/var.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/dash/var.c b/usr/dash/var.c index c35e925e..fa248544 100644 --- a/usr/dash/var.c +++ b/usr/dash/var.c @@ -142,6 +142,8 @@ INIT { } } + setvarint("OPTIND", 1, 0); + fmtstr(ppid + 5, sizeof(ppid) - 5, "%ld", (long) getppid()); setvareq(ppid, VTEXTFIXED);
2020 Mar 28
0
[klibc:update-dash] dash: [VAR] Initialise OPTIND after importing environment
...r.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/var.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/dash/var.c b/usr/dash/var.c index c35e925e..fa248544 100644 --- a/usr/dash/var.c +++ b/usr/dash/var.c @@ -142,6 +142,8 @@ INIT { } } + setvarint("OPTIND", 1, 0); + fmtstr(ppid + 5, sizeof(ppid) - 5, "%ld", (long) getppid()); setvareq(ppid, VTEXTFIXED);
2010 Mar 22
1
[git pull] dash, sh4, README's
...TIN] Use intmax_t arithmetic in test [klibc] [PARSER] Report substition errors at expansion time [klibc] [ARITH] Add assignment and intmax_t support [klibc] [ARITH] Size optimisations in arithmetic lexer [klibc] [EXPAND] Add likely flags in expari [klibc] [BUILTIN] Use setvarint to set OPTIND [klibc] [EXEC] Fixed execing of scripts with no hash-bang [klibc] [SHELL] Replace shared illnum message by badnum function. [klibc] [EXPAND] Added configure --enable-glob and --enable-fnmatch options [klibc] [PARSER] Fix here-doc corruption [klibc] [PARSE...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Replace with listsetvar with mklocal/setvareq
...(eq) - setvareq(name, 0); + setvareq(name, flags); } } lvp->vp = vp; diff --git a/usr/dash/var.h b/usr/dash/var.h index 52f559d1..8759be46 100644 --- a/usr/dash/var.h +++ b/usr/dash/var.h @@ -139,7 +139,6 @@ struct var *setvar(const char *name, const char *val, int flags); intmax_t setvarint(const char *, intmax_t, int); struct var *setvareq(char *s, int flags); struct strlist; -void listsetvar(struct strlist *, int); char *lookupvar(const char *); intmax_t lookupvarint(const char *); char **listvars(int, int, char ***); @@ -147,7 +146,7 @@ char **listvars(int, int, char ***); in...
2010 Apr 16
0
[git pull v4] dash, sh4, ipconfig, dprintf, fstype, README's
...TIN] Use intmax_t arithmetic in test [klibc] [PARSER] Report substition errors at expansion time [klibc] [ARITH] Add assignment and intmax_t support [klibc] [ARITH] Size optimisations in arithmetic lexer [klibc] [EXPAND] Add likely flags in expari [klibc] [BUILTIN] Use setvarint to set OPTIND [klibc] [EXEC] Fixed execing of scripts with no hash-bang [klibc] [SHELL] Replace shared illnum message by badnum function. [klibc] [EXPAND] Added configure --enable-glob and --enable-fnmatch options [klibc] [PARSER] Fix here-doc corruption [klibc] [PARSE...
2010 Apr 16
0
[PATCH] pull faccessat() system call
...TIN] Use intmax_t arithmetic in test [klibc] [PARSER] Report substition errors at expansion time [klibc] [ARITH] Add assignment and intmax_t support [klibc] [ARITH] Size optimisations in arithmetic lexer [klibc] [EXPAND] Add likely flags in expari [klibc] [BUILTIN] Use setvarint to set OPTIND [klibc] [EXEC] Fixed execing of scripts with no hash-bang [klibc] [SHELL] Replace shared illnum message by badnum function. [klibc] [EXPAND] Added configure --enable-glob and --enable-fnmatch options [klibc] [PARSER] Fix here-doc corruption [klibc] [PARSE...
2010 Mar 28
1
[git pull v3] dash, sh4, ipconfig, dprintf, fstype, README's
...TIN] Use intmax_t arithmetic in test [klibc] [PARSER] Report substition errors at expansion time [klibc] [ARITH] Add assignment and intmax_t support [klibc] [ARITH] Size optimisations in arithmetic lexer [klibc] [EXPAND] Add likely flags in expari [klibc] [BUILTIN] Use setvarint to set OPTIND [klibc] [EXEC] Fixed execing of scripts with no hash-bang [klibc] [SHELL] Replace shared illnum message by badnum function. [klibc] [EXPAND] Added configure --enable-glob and --enable-fnmatch options [klibc] [PARSER] Fix here-doc corruption [klibc] [PARSE...