Displaying 20 results from an estimated 148 matches for "strsignal".
2007 Jan 22
0
[LLVMdev] more llvmgcc build issues.
...pc-linux-gnu/include
-isystem /home/ramana/llvm/install-llvm/i686-pc-linux-gnu/sys-include -c
-DHAVE_CONFIG_H -O2 -g -O2 -I.
-I/home/ramana/llvm/llvmgccfrontend/llvmgcc4-source/gcc/libiberty/../include -W -Wall -Wtraditional -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 declarati...
2011 Jul 05
6
[PATCH 1/7] ln: Check snprintf() return values
Add some semi-useful error message, as printing the failing dir or file
seems not really advisable after that error.
Signed-off-by: maximilian attems <max at stro.at>
---
usr/utils/ln.c | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/usr/utils/ln.c b/usr/utils/ln.c
index e826eb8..257b33f 100644
--- a/usr/utils/ln.c
+++ b/usr/utils/ln.c
@@ -9,7
2020 Nov 09
4
[[PATCH v1 0/3] Fix clang build warnings
New clangs emit some warnings. The code isn't wrong, but should be updated to
prevent warning creep.
Bill Wendling (3):
[klibc] dash: shell: Fix clang warnings
[klibc] dash: shell: Fix clang warnings about format string
[klibc] Kbuild: use an enum to silence a clang warning
usr/dash/eval.c | 6 +++---
usr/dash/jobs.c | 2 +-
usr/kinit/nfsmount/dummypmap.c
2007 Jan 24
2
[LLVMdev] patch - update libiberty/psignal to latest prototypes.
Hi ,
I needed to apply this patch to get the GCC frontend building on an FC5
x86 box .
[ramana at venglathur gcc]$ svn diff
Index: libiberty/strsignal.c
===================================================================
--- libiberty/strsignal.c (revision 254)
+++ libiberty/strsignal.c (working copy)
@@ -557,8 +557,8 @@
void
psignal (signo, message)
- unsigned signo;
- char *message;
+ int signo;
+ const char *message;
{...
2020 Mar 28
0
[klibc:update-dash] dash: jobs: Replace some uses of fmtstr with stpcpy/stpncpy
...sigonly)
+sprint_status(char *os, int status, int sigonly)
{
- int col;
+ char *s = os;
int st;
- col = 0;
st = WEXITSTATUS(status);
if (!WIFEXITED(status)) {
#if JOBS
@@ -425,21 +424,21 @@ sprint_status(char *s, int status, int sigonly)
goto out;
#endif
}
- col = fmtstr(s, 32, strsignal(st));
+ s = stpncpy(s, strsignal(st), 32);
#ifdef WCOREDUMP
if (WCOREDUMP(status)) {
- col += fmtstr(s + col, 16, " (core dumped)");
+ s = stpcpy(s, " (core dumped)");
}
#endif
} else if (!sigonly) {
if (st)
- col = fmtstr(s, 16, "Done(%d)", st);
+...
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...
Name: patch...
2015 Dec 02
5
[PATCH] Receive multiple packets at a time
...2015-10-02 17:06:31.250034677 +0200
+++ configure.ac 2015-10-02 17:06:54.147546590 +0200
@@ -187,7 +187,7 @@
dnl Checks for library functions.
AC_TYPE_SIGNAL
-AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name gettimeofday mlockall putenv random select strdup strerror strsignal strtol system time usleep unsetenv vsyslog writev],
+AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name gettimeofday mlockall putenv random recvmmsg select strdup strerror strsignal strtol system time usleep unsetenv vsyslog writev],
[], [], [#include "src/have.h&q...
2010 Oct 19
3
[PATCH] Fix up 3 klibc build warnings.
...n",
- *(int *)test);
+ test.i);
exit(2);
}
}
diff --git a/usr/dash/jobs.c b/usr/dash/jobs.c
index bf770dd..43b6b98 100644
--- a/usr/dash/jobs.c
+++ b/usr/dash/jobs.c
@@ -424,7 +424,7 @@ sprint_status(char *s, int status, int sigonly)
goto out;
#endif
}
- col = fmtstr(s, 32, strsignal(st));
+ col = fmtstr(s, 32, "%s", strsignal(st));
if (WCOREDUMP(status)) {
col += fmtstr(s + col, 16, " (core dumped)");
}
diff --git a/usr/dash/trap.c b/usr/dash/trap.c
index 18c3cd1..d6706c6 100644
--- a/usr/dash/trap.c
+++ b/usr/dash/trap.c
@@ -351,7 +351,7 @@ exit...
2007 Oct 18
0
[PATCH] Use credentials and permissions on control socket where available
...dr, struct ucred], , ,
[#include "have.h"]
)
@@ -122,7 +122,7 @@ dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_FUNC_ALLOCA
AC_TYPE_SIGNAL
-AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name gettimeofday mlockall putenv random select strdup strerror strsignal strtol system unsetenv vsyslog writev],
+AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name getpeereid gettimeofday mlockall putenv random select strdup strerror strsignal strtol system unsetenv vsyslog writev],
[], [], [#include "have.h"]
)
AC_FUNC_MALLOC
d...
2015 Dec 10
2
[PATCH] Receive multiple packets at a time
...@@ -187,7 +187,7 @@ AC_CHECK_TYPES([socklen_t, struct ether_header, struct arphdr, struct ether_arp,
dnl Checks for library functions.
AC_TYPE_SIGNAL
-AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name gettimeofday mlockall pselect putenv random select strdup strerror strsignal strtol system unsetenv usleep vsyslog writev],
+AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name gettimeofday mlockall pselect putenv random recvmmsg select strdup strerror strsignal strtol system unsetenv usleep vsyslog writev],
[], [], [#include "src/have.h&quo...
2020 Mar 27
2
[PATCH v2 5/5] Clean up clang warnings
...outfmt(out, p, sp->text);
sp = sp->next;
diff --git a/usr/dash/jobs.c b/usr/dash/jobs.c
index 009bbfeee47e..776983b708d6 100644
--- a/usr/dash/jobs.c
+++ b/usr/dash/jobs.c
@@ -426,7 +426,7 @@ sprint_status(char *s, int status, int sigonly)
goto out;
#endif
}
- col = fmtstr(s, 32, strsignal(st));
+ col = fmtstr(s, 32, "%s", strsignal(st));
#ifdef WCOREDUMP
if (WCOREDUMP(status)) {
col += fmtstr(s + col, 16, " (core dumped)");
@@ -1394,7 +1394,7 @@ cmdputs(const char *s)
str = "${";
goto dostr;
case CTLENDVAR:
- str = "\"}&...
2015 Dec 02
0
[PATCH] Receive multiple packets at a time
...0
> +++ configure.ac 2015-10-02 17:06:54.147546590 +0200
> @@ -187,7 +187,7 @@
>
> dnl Checks for library functions.
> AC_TYPE_SIGNAL
> -AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name gettimeofday mlockall putenv random select strdup strerror strsignal strtol system time usleep unsetenv vsyslog writev],
> +AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name gettimeofday mlockall putenv random recvmmsg select strdup strerror strsignal strtol system time usleep unsetenv vsyslog writev],
> [], [], [#include "sr...
2012 Jul 03
8
[PATCH 0/7 v2] Fix and workaround for qcow2 issues in qemu causing data corruption.
https://bugzilla.redhat.com/show_bug.cgi?id=836710
https://bugzilla.redhat.com/show_bug.cgi?id=836913
There are at least two related bugs going on:
(1) Linux sync(2) system call doesn't send a write barrier to the
disk, so in effect it doesn't force the hard disk to flush its cache.
libguestfs used sync(2) to force changes to disk. We didn't expect
that qemu was caching anything
2007 Jul 21
2
tincctl patches
(Second try to send this. I wonder if the first one gotten eaten by a
spam filter; I'll link to patches instead of attaching them.)
Here are the tincctl patches I've been working on. They apply to
http://www.tinc-vpn.org/svn/tinc/branches/1.1@1545. I intend to commit
them once the crypto stuff's fixed. Since they're basically done, I'm
emailing them now for review and in case
2011 Aug 29
0
[PATCH] Add mempcpy() as wrapper around memcpy
...k.o malloc.o realloc.o calloc.o \
mmap.o shm_open.o shm_unlink.o \
- memcpy.o memcmp.o memset.o memccpy.o memmem.o memswap.o \
+ memcpy.o mempcpy.o memcmp.o memset.o memccpy.o memmem.o memswap.o \
memmove.o memchr.o memrchr.o bzero.o \
strcasecmp.o strncasecmp.o strndup.o strerror.o strsignal.o \
strcat.o strchr.o strcmp.o strcpy.o strdup.o strlen.o strnlen.o \
diff --git a/usr/klibc/mempcpy.c b/usr/klibc/mempcpy.c
new file mode 100644
index 0000000..ff3770a
--- /dev/null
+++ b/usr/klibc/mempcpy.c
@@ -0,0 +1,7 @@
+#include <string.h>
+
+void *mempcpy(void *dst, const void *src...
2020 Mar 27
12
[PATCH 0/5] Clang compatibility patches
This is a series of patches for clang compatibility:
- Using flags needed flags and removing unsupported flags.
- Adding support for clang's LLD linker.
- Removing a variety of warnings.
Bill Wendling (3):
[klibc] Kbuild: use "libc.a" with clang
[klibc] Kbuild: Add "-fcommon" for clang builds
[klibc] Clean up clang warnings
Michael Davidson (1):
[klibc] Kbuild:
2007 Aug 15
0
[git patch] fstype support + minor stuff
...sigpending.o sigprocmask.o sigsuspend.o \
- pselect.o ppoll.o \
- brk.o sbrk.o malloc.o realloc.o calloc.o \
- mmap.o shm_open.o shm_unlink.o \
- memcpy.o memcmp.o memset.o memccpy.o memmem.o memswap.o \
- memmove.o memchr.o memrchr.o \
- strcasecmp.o strncasecmp.o strndup.o strerror.o strsignal.o \
- strcat.o strchr.o strcmp.o strcpy.o strdup.o strlen.o strnlen.o \
- strncat.o strlcpy.o strlcat.o \
- strstr.o strncmp.o strncpy.o strrchr.o \
- strxspn.o strspn.o strcspn.o strpbrk.o strsep.o strtok.o \
- fnmatch.o \
- gethostname.o getdomainname.o getcwd.o \
- seteuid.o setegi...
2009 May 15
2
Trouble with Tinc at make level
...king for ftime... yes
checking for fork... yes
checking for get_current_dir_name... yes
checking for gettimeofday... yes
checking for mlockall... yes
checking for putenv... yes
checking for random... yes
checking for select... yes
checking for strdup... yes
checking for strerror... yes
checking for strsignal... yes
checking for strtol... yes
checking for system... yes
checking for unsetenv... yes
checking for vsyslog... yes
checking for writev... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatibl...
2003 Aug 04
1
OpenBSD 3.2 and Release 1
...ecking for ftime... no
checking for fork... yes
checking for get_current_dir_name... no
checking for gettimeofday... yes
checking for mlockall... yes
checking for putenv... yes
checking for random... yes
checking for select... yes
checking for strdup... yes
checking for strerror... yes
checking for strsignal... yes
checking for strtol... yes
checking for unsetenv... yes
checking for vsyslog... yes
checking for working malloc... yes
checking for working realloc... yes
checking for socket... yes
checking for gethostbyname... yes
checking for freeaddrinfo... yes
checking for gai_strerror... yes
checking...
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
...vsprintf.o sprintf.o \
brk.o sbrk.o malloc.o realloc.o calloc.o \
mmap.o shm_open.o shm_unlink.o \
memcpy.o memcmp.o memset.o memccpy.o memmem.o memswap.o \
- memmove.o memchr.o memrchr.o \
+ memmove.o memchr.o memrchr.o bzero.o \
strcasecmp.o strncasecmp.o strndup.o strerror.o strsignal.o \
strcat.o strchr.o strcmp.o strcpy.o strdup.o strlen.o strnlen.o \
strncat.o strlcpy.o strlcat.o \
diff --git a/usr/klibc/bzero.c b/usr/klibc/bzero.c
new file mode 100644
index 0000000..a2155e3
--- /dev/null
+++ b/usr/klibc/bzero.c
@@ -0,0 +1,9 @@
+#include <string.h>
+
+void bzero...