search for: signo

Displaying 20 results from an estimated 71 matches for "signo".

Did you mean: sign
2019 Jan 25
0
[klibc:update-dash] trap: Implement POSIX.1-2008 trap reset behaviour
...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 *string, int minsig) +{ + int signo; + + signo = decode_signum(s...
2020 Mar 28
0
[klibc:update-dash] dash: trap: Implement POSIX.1-2008 trap reset behaviour
...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 *string, int minsig) +{ + int signo; + + signo = decode_signum(s...
2019 Jan 25
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...; 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] && - !strcasecmp(string, sys_sigabb...
2020 Mar 28
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
...; 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] && - !strcasecmp(string, sys_sigabb...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Add vfork support
...struct job *vforkexec(union node *n, char **argv, const char *path, int idx); int waitforjob(struct job *); int stoppedjobs(void); diff --git a/usr/dash/trap.c b/usr/dash/trap.c index a3aeb33e..1ad27e99 100644 --- a/usr/dash/trap.c +++ b/usr/dash/trap.c @@ -181,16 +181,19 @@ void setsignal(int signo) { int action; + int lvforked; char *t, tsig; struct sigaction act; + lvforked = vforked; + if ((t = trap[signo]) == NULL) action = S_DFL; else if (*t != '\0') action = S_CATCH; else action = S_IGN; - if (rootshell && action == S_DFL) { + if (rootshell &&...
2009 Apr 06
0
conflict name of si_code on NetBSD
....c *** dovecot-1.2.rc2_bak/src/lib/lib-signals.c Thu Apr 2 02:08:21 2009 --- dovecot-1.2.rc2/src/lib/lib-signals.c Mon Apr 6 12:45:42 2009 *************** *** 27,36 **** static bool signals_initialized = FALSE; static struct io *io_sig = NULL; ! const char *lib_signal_code_to_str(int signo, int si_code) { /* common */ ! switch (si_code) { case SI_USER: return "kill"; #ifdef SI_KERNEL --- 27,36 ---- static bool signals_initialized = FALSE; static struct io *io_sig = NULL; ! const char *lib_signal_code_to_str(int signo, int sicod...
2013 Oct 01
5
Análisis de componentes principales con ade4 y FactoMineR
...utilizando las funciones "dudi.pca" (paquete "ade4") y "PCA" (paquete "FactoMineR"). Sucede que al comparar las coordenadas de cada individuo que obtiene cada función, las que corresponden al segundo componente principal tienen idéntica magnitud pero con signos contrarios: Función dudi.pca: Comando: PCA1 <- dudi.pca(df = DATOS[,(2:ncol(DATOS))], center = TRUE, scale = TRUE, scannf = FALSE, nf = 6) Individuo Comp1 Comp2 1 -14.18 -4.47 2 -14.63 -4.53 3 -14.77 -2.57 4 -14.12 -1.71 5 -16.32 4.22 6 -17.03 5.94...
2011 Dec 21
2
[PATCH] xenpm: assorted adjustments
...cpuid, avgfreq); if ( ret ) - { - return errno; - } + ret = -errno; - return 0; + return ret; } static int show_pxstat_by_cpuid(xc_interface *xc_handle, int cpuid) @@ -325,7 +320,7 @@ static uint64_t *sum, *sum_cx, *sum_px; static void signal_int_handler(int signo) { - int i, j, k, ret; + int i, j, k; struct timeval tv; int cx_cap = 0, px_cap = 0; DECLARE_HYPERCALL_BUFFER(uint32_t, cpu_to_core); @@ -404,6 +399,8 @@ static void signal_int_handler(int signo res / 1000000UL, 100UL * res / (double)sum_px[i]);...
2019 Jan 25
0
[klibc:update-dash] trap: Globally rename pendingsigs to pending_sig
...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; - pendingsigs = signo; + pending_sig = signo; if (signo == SIGINT && !trap[SIGINT]) { if (!suppressint) @@ -313,7 +313,7 @@ void dotrap(void) int i; int status, last_status; - if (!pendingsigs) + if (!pending_sig) return; status = savestat...
2020 Mar 28
0
[klibc:update-dash] dash: trap: Globally rename pendingsigs to pending_sig
...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; - pendingsigs = signo; + pending_sig = signo; if (signo == SIGINT && !trap[SIGINT]) { if (!suppressint) @@ -313,7 +313,7 @@ void dotrap(void) int i; int status, last_status; - if (!pendingsigs) + if (!pending_sig) return; status = savestat...
2015 Oct 16
2
potencia fracional de un número negativo
El problema del módulo es que pierde el signo. En tu caso sale igual porque has invertido el signo del coeficiente en el polinomio (en realidad se me pasó a a mí advertir que el término independiente debe ir con signo negativo): .> polyroot(z=c(0.5,0,0,0,0,1)) [1] 0.7042902+0.5116968i -0.2690149+0.8279428i -0.2690149-0.8279428i [4] 0....
2013 Oct 01
3
Análisis de componentes principales con ade4 y FactoMineR
...pal es una combinación lineal que maximiza la varianza de modo que si la componente 1 es el vector de coeficientes a, entonces, el vector -a también puede ser dicha componente. Las otras componentes, por ejemplo la segunda, es incorrelacionada con la primera y también maximiza la varianza, luego el signo no importa. Así pues, el signo de cada componente puede variar en función del algoritmo utilizado. Saludos cordiales Francesc El 01/10/13 02:32, Argel Gastélum Arellánez ha escrit: Hola compañeros de la lista, qué tal. Estoy haciendo un análisis de componentes principales utilizando l...
2023 Jan 14
6
[Bug 3522] New: Crash with "free(): double free detected" with old clients
https://bugzilla.mindrot.org/show_bug.cgi?id=3522 Bug ID: 3522 Summary: Crash with "free(): double free detected" with old clients Product: Portable OpenSSH Version: 9.1p1 Hardware: amd64 OS: Linux Status: NEW Severity: minor Priority: P5 Component: sshd
2002 Sep 13
1
[LLVMdev] Linux-x86 Compatability
ISSUE: In Interpreter::executeInstruction(), _sys_siglistp is a Solarisism. ACTION: Replace _sys_siglistp[signo] with strsignal(signo) which is more portable, maybe POSIX? PATCH: Apply from llvm top-level directory with "patch -p0." -- Casey Carter Casey at Carter.net ccarter at uiuc.edu AIM: cartec69 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed...
2013 Oct 02
0
Análisis de componentes principales con ade4 y FactoMineR
Efectivamente. Puedes cambiar el signo de todos los valores de la segunda componente, por ejemplo al hacer un gráfico de dispersión. No creo que se pueda hacer directamente en la función. Saludos Francesc El 01/10/13 17:53, Argel Gastélum Arellánez ha escrit: > Hola Francesc, muchas gracias por tu respuesta. > > En...
2009 Oct 31
3
Plots with k-means
Hi, I'm doing a k-means cluster with 6 clusters and 15 variables. Any suggestions on how to plot the results? I've tried the standard xy plot, but couldn't get much of it. Thansk in advance, Iuri.
2017 Oct 09
2
Incluir símbolo matemático en data frame
Muchas gracias Carlos. Pero eso haría que el signo se muestre tal como se deba mostrar , es decir: ? Manuel El 9 de octubre de 2017, 1:46, Carlos Ortega <cof en qualityexcellence.es> escribió: > Puedes incluir estos signos en una columna nueva antes de cada una de las > columnas numéricas. > Que el data.frame tuviera esta pinta......
2009 Sep 24
3
pregunta $
una pregunta aun no comprendo totalmente el uso del signo $, me podrian decir donde encuentro su significado (si, si ya se que significa dinero y eso.........) desde el punto de vista de R gracias fabian huerta Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ [[alternative HTML version deleted]]
2013 Oct 01
0
Análisis de componentes principales con ade4 y FactoMineR
...s una combinación lineal que maximiza la varianza de modo que si la componente 1 es el vector de coeficientes a, entonces, el vector -a también puede ser dicha componente. Las otras componentes, por ejemplo la segunda, es incorrelacionada con la primera y también maximiza la varianza, luego el signo no importa. Así pues, el signo de cada componente puede variar en función del algoritmo utilizado. Saludos cordiales Francesc El 01/10/13 02:32, Argel Gastélum Arellánez ha escrit: > Hola compañeros de la lista, qué tal. > > Estoy haciendo un análisis de componentes principales...
2007 Jan 22
0
[LLVMdev] more llvmgcc build issues.
...-pedantic /home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/libiberty/strsignal.c -o strsignal.o /home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/libiberty/strsignal.c: In function ‘psignal’: /home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/libiberty/strsignal.c:562: error: argument ‘signo’ doesn’t match prototype /usr/include/signal.h:141: error: prototype declaration /home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/libiberty/strsignal.c:562: error: argument ‘message’ doesn’t match prototype /usr/include/signal.h:141: error: prototype declaration /home/ramana/llvm/llvmgccfronte...