Displaying 20 results from an estimated 29 matches for "nsig".
Did you mean:
unsig
2009 Jan 22
2
[PATCH 4/4] X86 microcode: add S3 micorcode update
X86 microcode: add S3 micorcode update
When wakeup from S3, use per cpu microcode image to update cpu microcode.
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2019 Jan 25
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...", strerror(errno));
return nullstr;
}
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
index 1e2a8677..182fa7ac 100644
--- a/usr/dash/trap.c
+++ b/usr/dash/trap.c
@@ -395,48 +395,45 @@ out:
/* NOTREACHED */
}
-/*
- * Decode a signal name
- */
int decode_signal(const char *string, int minsig)
{
- int i;
+ int signo;
if (is_number(string)) {
- i = atoi(string);
- if (i >= NSIG) {
+ signo = atoi(string);
+ if (signo >= NSIG) {
return -1;
}
- return i;
+ return signo;
}
- for ( i = minsig ; i < NSIG ; i++ ) {
- if ( sys_sigabbrev[i] &&
- !strc...
2020 Mar 28
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...", strerror(errno));
return nullstr;
}
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
index 1e2a8677..182fa7ac 100644
--- a/usr/dash/trap.c
+++ b/usr/dash/trap.c
@@ -395,48 +395,45 @@ out:
/* NOTREACHED */
}
-/*
- * Decode a signal name
- */
int decode_signal(const char *string, int minsig)
{
- int i;
+ int signo;
if (is_number(string)) {
- i = atoi(string);
- if (i >= NSIG) {
+ signo = atoi(string);
+ if (signo >= NSIG) {
return -1;
}
- return i;
+ return signo;
}
- for ( i = minsig ; i < NSIG ; i++ ) {
- if ( sys_sigabbrev[i] &&
- !strc...
2019 Jan 25
0
[klibc:update-dash] trap: Implement POSIX.1-2008 trap reset behaviour
...E "trap.h"
INIT {
@@ -111,7 +113,7 @@ trapcmd(int argc, char **argv)
}
return 0;
}
- if (!ap[1])
+ if (!ap[1] || decode_signum(*ap) >= 0)
action = NULL;
else
action = *ap++;
@@ -399,18 +401,27 @@ out:
/* NOTREACHED */
}
-int decode_signal(const char *string, int minsig)
+static int decode_signum(const char *string)
{
- int signo;
+ int signo = -1;
if (is_number(string)) {
signo = atoi(string);
- if (signo >= NSIG) {
- return -1;
- }
- return signo;
+ if (signo >= NSIG)
+ signo = -1;
}
+ return signo;
+}
+
+int decode_signal(const char *s...
2020 Mar 28
0
[klibc:update-dash] dash: trap: Implement POSIX.1-2008 trap reset behaviour
...E "trap.h"
INIT {
@@ -111,7 +113,7 @@ trapcmd(int argc, char **argv)
}
return 0;
}
- if (!ap[1])
+ if (!ap[1] || decode_signum(*ap) >= 0)
action = NULL;
else
action = *ap++;
@@ -399,18 +401,27 @@ out:
/* NOTREACHED */
}
-int decode_signal(const char *string, int minsig)
+static int decode_signum(const char *string)
{
- int signo;
+ int signo = -1;
if (is_number(string)) {
signo = atoi(string);
- if (signo >= NSIG) {
- return -1;
- }
- return signo;
+ if (signo >= NSIG)
+ signo = -1;
}
+ return signo;
+}
+
+int decode_signal(const char *s...
2019 Jan 25
0
[klibc:update-dash] trap: Globally rename pendingsigs to pending_sig
...- if (errno == EINTR && !pendingsigs)
+ if (errno == EINTR && !pending_sig)
continue;
/* fall through */
case 0:
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
index 89ceff4f..a3aeb33e 100644
--- a/usr/dash/trap.c
+++ b/usr/dash/trap.c
@@ -74,7 +74,7 @@ char sigmode[NSIG - 1];
/* indicates specified signal received */
static char gotsig[NSIG - 1];
/* last pending signal */
-volatile sig_atomic_t pendingsigs;
+volatile sig_atomic_t pending_sig;
/* received SIGCHLD */
int gotsigchld;
@@ -290,7 +290,7 @@ onsig(int signo)
}
gotsig[signo - 1] = 1;
- pending...
2020 Mar 28
0
[klibc:update-dash] dash: trap: Globally rename pendingsigs to pending_sig
...- if (errno == EINTR && !pendingsigs)
+ if (errno == EINTR && !pending_sig)
continue;
/* fall through */
case 0:
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
index 89ceff4f..a3aeb33e 100644
--- a/usr/dash/trap.c
+++ b/usr/dash/trap.c
@@ -74,7 +74,7 @@ char sigmode[NSIG - 1];
/* indicates specified signal received */
static char gotsig[NSIG - 1];
/* last pending signal */
-volatile sig_atomic_t pendingsigs;
+volatile sig_atomic_t pending_sig;
/* received SIGCHLD */
int gotsigchld;
@@ -290,7 +290,7 @@ onsig(int signo)
}
gotsig[signo - 1] = 1;
- pending...
2014 Nov 25
0
problem with setGroupGeneric from package methods
...nt that allow
# table-based dispatch of methods
.setupMethodsTables <- function(generic,
initialize = !exists(".MTable", envir = env, inherits = FALSE))
{
env <- environment(generic)
if(initialize || !exists(".SigLength", envir = env, inherits = FALSE)) {
nsig <- 1
## check that groups of generics agree on .SigLength; otherwise
## labels won't match
for(gp in generic at group) { ### !!!
gpDef <- getGeneric(gp)
if(is(gpDef, "genericFunction")) {
.getMethodsTable(g...
2011 Feb 05
2
print(...,digits=2) behavior
A bug was recently posted to the R bug database (which probably would
better have been posted as a query here) as to why this happens:
> print(7.921,digits=2)
[1] 8
> print(7.92,digits=2)
[1] 7.9
Two things I *haven't* done to help make sense of this for myself are
(1) writing out the binary representations to see if something obvious
pops out about why this would be a breakpoint and
2011 Feb 05
2
print(...,digits=2) behavior
A bug was recently posted to the R bug database (which probably would
better have been posted as a query here) as to why this happens:
> print(7.921,digits=2)
[1] 8
> print(7.92,digits=2)
[1] 7.9
Two things I *haven't* done to help make sense of this for myself are
(1) writing out the binary representations to see if something obvious
pops out about why this would be a breakpoint and
2005 Dec 28
1
Problems with klibc 1.1.8
...ration of function 'snprintf'
dash/trap.c:429: warning: incompatible implicit declaration of built-in
function 'snprintf'
dash/trap.c:432: warning: incompatible implicit declaration of built-in
function 'snprintf'
make[2]: *** [dash/trap.o] Error 1
asm-i386/signal.h defines NSIG and therewith SIGRTMAX to 32, so the
condition SIGRTMAX <= SIGRTMIN in klibc's signal.h is fulfilled and
SIGRTMIN and SIGRTMAX get undefined.
Builds fine on x86_64, though.
Trying to build udev-079 on x86_64 with a system-installed klibc 1.1.8
results in the following error:
make USE_KLIB...
2020 Feb 06
3
Call for testing: OpenSSH 8.2
On Thu, 6 Feb 2020 at 12:46, Phil Pennock <phil.pennock at globnix.org> wrote:
[...]
> ssh_config(5) describes for `HostKeyAlgorithms` that:
> } The list of available key types may also be obtained using "ssh -Q key"
>
> Running `ssh -Q key`, the output does not include these proposed
> replacements.
>
> Only in sshd_config(5):
> rsa-sha2-512-cert-v01 at
2023 Jul 11
1
[libguestfs PATCH] lib: remove guestfs_int_cmd_clear_close_files()
...lose_files (struct command *cmd)
-{
- cmd->close_files = false;
-}
-
/**
* Set a function to be executed in the child, right before the
* execution. Can be used to setup the child, for example changing
@@ -564,18 +549,16 @@ run_child (struct command *cmd, char **env)
for (i = 1; i < NSIG; ++i)
sigaction (i, &sa, NULL);
- if (cmd->close_files) {
- /* Close all other file descriptors. This ensures that we don't
- * hold open (eg) pipes from the parent process.
- */
- max_fd = sysconf (_SC_OPEN_MAX);
- if (max_fd == -1)
- max_fd = 1024;
- i...
2006 Jun 26
0
[klibc 37/43] x86_64 support for klibc
...include/arch/x86_64/klibc/archsetjmp.h
new file mode 100644
index 0000000..454fc60
--- /dev/null
+++ b/usr/include/arch/x86_64/klibc/archsetjmp.h
@@ -0,0 +1,21 @@
+/*
+ * arch/x86_64/include/klibc/archsetjmp.h
+ */
+
+#ifndef _KLIBC_ARCHSETJMP_H
+#define _KLIBC_ARCHSETJMP_H
+
+struct __jmp_buf {
+ unsigned long __rbx;
+ unsigned long __rsp;
+ unsigned long __rbp;
+ unsigned long __r12;
+ unsigned long __r13;
+ unsigned long __r14;
+ unsigned long __r15;
+ unsigned long __rip;
+};
+
+typedef struct __jmp_buf jmp_buf[1];
+
+#endif /* _SETJMP_H */
diff --git a/usr/include/arch/x86_64/klibc/archsig...
2020 Feb 06
3
Call for testing: OpenSSH 8.2
On 2020-02-06 at 13:28 +1100, Darren Tucker wrote:
> Like this.
> --- a/sshd_config.5
> +++ b/sshd_config.5
The ssh_config.5 also has a copy of this and presumably needs the same
change, unless I've misunderstood.
-Phil
2007 Feb 13
6
mongrel_cluster 0.2.2 - plugin cluster::status does not exist?
Hello all. I''ve recently installed the 0.2.2 pre-release of
mongrel_cluster to try out the new --clean option. However, after
installing, when I give a simple "mongrel_rails" command, the
cluster::status command is not listed. The error I receive when I do
try and run the full "mongrel_rails cluster::status" is...
ERROR RUNNING
2019 Jan 25
0
[klibc:update-dash] [TRAP] Make sure evalskip is zero before running traps
...82fa7ac..3ff45318 100644
--- a/usr/dash/trap.c
+++ b/usr/dash/trap.c
@@ -315,6 +315,9 @@ void dotrap(void)
int i;
int savestatus;
+ if (!pendingsigs)
+ return;
+
savestatus = exitstatus;
pendingsigs = 0;
barrier();
@@ -322,6 +325,12 @@ void dotrap(void)
for (i = 0, q = gotsig; i < NSIG - 1; i++, q++) {
if (!*q)
continue;
+
+ if (evalskip) {
+ pendingsigs = i + 1;
+ break;
+ }
+
*q = 0;
p = trap[i + 1];
@@ -329,8 +338,6 @@ void dotrap(void)
continue;
evalstring(p, 0);
exitstatus = savestatus;
- if (evalskip)
- break;
}
}
1999 Mar 06
0
bessel_?.c constants
Hi All,
I've been digging around in src/nmath and have discovered that there are
two sets of "machine constants" in bessel_l.c and bessel_j.c which have
different values:
bessel_i.c: static double ensig = 1e16;
bessel_i.c: static double rtnsig = 1e-4;
bessel_i.c: static double enmten = 8.9e-308;
bessel_i.c: static double enten = 1e308;
bessel_j.c: static double ensig = 1e17;
bessel_j.c: static double rtnsig = 1e-4;
bessel_j.c: static double enmten = 1.2e-37;
bessel_j.c: stati...
2020 Aug 27
0
[klibc:master] alpha: Fix definitions of _NSIG and struct sigaction
...klibc.git;a=commit;h=1cd11aaed1dece773c6b1ce2e99a0fe98b51321e
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Thu, 27 Aug 2020 01:58:19 +0100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Thu, 27 Aug 2020 03:51:11 +0100
[klibc] alpha: Fix definitions of _NSIG and struct sigaction
We use the RT signals API, but include the kernel UAPI header
that defines _NSIG and struct sigaction for the old API.
Copy over all the definitions and fix those two.
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/include/arch/alpha/klibc/archsignal.h...
1999 Mar 06
1
bessel_?.c constants (fwd)
...>
To: R devel <r-devel@stat.math.ethz.ch>
Subject: bessel_?.c constants
Hi All,
I've been digging around in src/nmath and have discovered that there are
two sets of "machine constants" in bessel_l.c and bessel_j.c which have
different values:
bessel_i.c: static double ensig = 1e16;
bessel_i.c: static double rtnsig = 1e-4;
bessel_i.c: static double enmten = 8.9e-308;
bessel_i.c: static double enten = 1e308;
bessel_j.c: static double ensig = 1e17;
bessel_j.c: static double rtnsig = 1e-4;
bessel_j.c: static double enmten = 1.2e-37;
bessel_j.c: stati...