search for: flushall

Displaying 14 results from an estimated 14 matches for "flushall".

Did you mean: flush_all
2019 Jan 25
0
[klibc:update-dash] [INPUT] Replace open-coded flushall in preadbuffer
....git;a=commit;h=9a8f7bd9327b38f276e528e3429649c5f4991d91 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Mon, 27 Oct 2014 15:39:39 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] [INPUT] Replace open-coded flushall in preadbuffer Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/input.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/usr/dash/input.c b/usr/dash/input.c index 9e533a47..f11ac842 10...
2020 Mar 28
0
[klibc:update-dash] dash: [INPUT] Replace open-coded flushall in preadbuffer
...=commit;h=6cef351e06e79d4c976674939de5c321557b3cfb Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Mon, 27 Oct 2014 15:39:39 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: [INPUT] Replace open-coded flushall in preadbuffer [ dash commit c4d12c3f6424e801ccddda8894aad04d24333f82 ] Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/dash/input.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/usr/d...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Report I/O error on stdout
...ile changed, 2 insertions(+) diff --git a/usr/dash/eval.c b/usr/dash/eval.c index 6652ccc0..01bc5234 100644 --- a/usr/dash/eval.c +++ b/usr/dash/eval.c @@ -952,6 +952,8 @@ evalbltin(const struct builtincmd *cmd, int argc, char **argv, int flags) else status = (*cmd->builtin)(argc, argv); flushall(); + if (outerr(out1)) + warnx("%s: I/O error", commandname); status |= outerr(out1); exitstatus = status; cmddone:
2020 Mar 28
0
[klibc:update-dash] dash: eval: Use sh_warnx instead of warnx
...nged, 1 insertion(+), 1 deletion(-) diff --git a/usr/dash/eval.c b/usr/dash/eval.c index 4981f156..5074aa94 100644 --- a/usr/dash/eval.c +++ b/usr/dash/eval.c @@ -953,7 +953,7 @@ evalbltin(const struct builtincmd *cmd, int argc, char **argv, int flags) status = (*cmd->builtin)(argc, argv); flushall(); if (outerr(out1)) - warnx("%s: I/O error", commandname); + sh_warnx("%s: I/O error", commandname); status |= outerr(out1); exitstatus = status; cmddone:
2020 Mar 28
0
[klibc:update-dash] dash: eval: Only restore exit status on exit/return
...ell(void) trap[0] = NULL; evalskip = 0; evalstring(p, 0); + evalskip = SKIPFUNCDEF; } out: + exitreset(); /* * Disable job control so that whoever had the foreground before we * started can get it back. @@ -405,7 +408,7 @@ out: if (likely(!setjmp(loc.loc))) setjobctl(0); flushall(); - _exit(savestatus); + _exit(exitstatus); /* NOTREACHED */ }
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Exit without arguments in a trap should use status outside traps
...status = exitstatus; + savestatus = exitstatus; + TRACE(("pid %d, exitshell(%d)\n", getpid(), savestatus)); + if (setjmp(loc.loc)) goto out; - } handler = &loc; if ((p = trap[0])) { trap[0] = NULL; @@ -398,7 +401,7 @@ out: if (likely(!setjmp(loc.loc))) setjobctl(0); flushall(); - _exit(status); + _exit(savestatus); /* NOTREACHED */ }
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Exit without arguments in a trap should use status outside traps
...status = exitstatus; + savestatus = exitstatus; + TRACE(("pid %d, exitshell(%d)\n", getpid(), savestatus)); + if (setjmp(loc.loc)) goto out; - } handler = &loc; if ((p = trap[0])) { trap[0] = NULL; @@ -398,7 +401,7 @@ out: if (likely(!setjmp(loc.loc))) setjobctl(0); flushall(); - _exit(status); + _exit(savestatus); /* NOTREACHED */ }
2010 Mar 22
1
[git pull] dash, sh4, README's
...IN] Avoid compiler warnings on isdigit Gerrit Pape (2): [klibc] [ARITH] If imaxdiv() isn't available, use / and % operators [klibc] [ARITH] Fixed lexical error on & and | Herbert Xu (60): [klibc] [SHELL] Restore foreground process group on exit [klibc] [SHELL] Move flushall to the point just before _exit [klibc] [EXPAND] Do not quote back slashes in parameter expansions outside quotes [klibc] [EXPAND] Perform tilde expansion in all parameter expansion words [klibc] [PARSER] Remove superfluous arinest test in CENDQUOTE [klibc] [PARSER] Remove su...
2019 Jan 25
0
[klibc:update-dash] input: Move all input state into parsefile
...return (signed char)*parsenextc++; + if (--parsefile->nleft >= 0) + return (signed char)*parsefile->nextc++; } - if (unlikely(parsenleft == EOF_NLEFT || parsefile->buf == NULL)) + if (unlikely(parsefile->nleft == EOF_NLEFT || + parsefile->buf == NULL)) return PEOF; flushall(); - more = parselleft; + more = parsefile->lleft; if (more <= 0) { again: if ((more = preadfd()) <= 0) { - parselleft = parsenleft = EOF_NLEFT; + parsefile->lleft = parsefile->nleft = EOF_NLEFT; return PEOF; } } - q = parsenextc; + q = parsefile->nextc;...
2020 Mar 28
0
[klibc:update-dash] dash: input: Move all input state into parsefile
...return (signed char)*parsenextc++; + if (--parsefile->nleft >= 0) + return (signed char)*parsefile->nextc++; } - if (unlikely(parsenleft == EOF_NLEFT || parsefile->buf == NULL)) + if (unlikely(parsefile->nleft == EOF_NLEFT || + parsefile->buf == NULL)) return PEOF; flushall(); - more = parselleft; + more = parsefile->lleft; if (more <= 0) { again: if ((more = preadfd()) <= 0) { - parselleft = parsenleft = EOF_NLEFT; + parsefile->lleft = parsefile->nleft = EOF_NLEFT; return PEOF; } } - q = parsenextc; + q = parsefile->nextc;...
2010 Apr 16
0
[git pull v4] dash, sh4, ipconfig, dprintf, fstype, README's
...ITH] If imaxdiv() isn't available, use / and % operators [klibc] [ARITH] Fixed lexical error on & and | H. Peter Anvin (1): [klibc] [JOBS] Fix for job control off warning Herbert Xu (63): [klibc] [SHELL] Restore foreground process group on exit [klibc] [SHELL] Move flushall to the point just before _exit [klibc] [EXPAND] Do not quote back slashes in parameter expansions outside quotes [klibc] [EXPAND] Perform tilde expansion in all parameter expansion words [klibc] [PARSER] Remove superfluous arinest test in CENDQUOTE [klibc] [PARSER] Remove su...
2010 Apr 16
0
[PATCH] pull faccessat() system call
...ITH] If imaxdiv() isn't available, use / and % operators [klibc] [ARITH] Fixed lexical error on & and | H. Peter Anvin (1): [klibc] [JOBS] Fix for job control off warning Herbert Xu (63): [klibc] [SHELL] Restore foreground process group on exit [klibc] [SHELL] Move flushall to the point just before _exit [klibc] [EXPAND] Do not quote back slashes in parameter expansions outside quotes [klibc] [EXPAND] Perform tilde expansion in all parameter expansion words [klibc] [PARSER] Remove superfluous arinest test in CENDQUOTE [klibc] [PARSER] Remove su...
2010 Mar 28
1
[git pull v3] dash, sh4, ipconfig, dprintf, fstype, README's
...IN] Avoid compiler warnings on isdigit Gerrit Pape (2): [klibc] [ARITH] If imaxdiv() isn't available, use / and % operators [klibc] [ARITH] Fixed lexical error on & and | Herbert Xu (60): [klibc] [SHELL] Restore foreground process group on exit [klibc] [SHELL] Move flushall to the point just before _exit [klibc] [EXPAND] Do not quote back slashes in parameter expansions outside quotes [klibc] [EXPAND] Perform tilde expansion in all parameter expansion words [klibc] [PARSER] Remove superfluous arinest test in CENDQUOTE [klibc] [PARSER] Remove su...
2014 Feb 07
0
Wine release 1.7.12
...td::_Fpz export. msvcp110: Fix sprintf argument size in num_put::do_put_double. msvcrt: Fix str*coll functions behavior in C locale. msvcrt: Fix wcs*coll functions behavior in C locale. msvcrt: Support _IOSTRG flag in _filbuf function. msvcrt: Flush standard streams in flushall function. msvcrt: Don't close handles returned by GetStdHandle function. msvcm90: Share the source code with msvcm80. msvcm90: Don't forward to msvcm80. msvcp70: Share the source code with msvcp90. msvcp70: Don't forward bad_alloc implementation to msvcrt....