Displaying 20 results from an estimated 300 matches for "vasprintf".
Did you mean:
kasprintf
2013 Mar 03
0
[patch] fix schnorr vasprintf warnings on openssh-SNAP-20130304
Tested against openssh-SNAP-2013-03-04
Fix those 2 old warnings
schnorr.c: In function 'debug3_bn':
schnorr.c:494: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result
schnorr.c: In function 'debug3_buf':
schnorr.c:519: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result
vasprintf return value should be checked.
If an error happen, -1 is returned and first para...
2004 Oct 22
1
[PATCH] off-by-one in asprintf/vasprintf
Fix an off-by-one in asprintf and vasprintf. The return of vsnprintf is
the number of bytes *not* including the terminating '\0'. The size
argument to vsnprintf is the number of bytes *including* the terminating
'\0'.
diff -u klibc-0.188/klibc/asprintf.c udev/klibc-0.188/klibc/asprintf.c
--- klibc-0.188/klibc/asprintf.c...
2009 Aug 03
0
[PATCH] guestfs: don't fault upon failed vasprintf
>From 774e791d2617b318223317aa004e495b9d274d97 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Mon, 3 Aug 2009 08:43:54 -0400
Subject: [PATCH] guestfs: don't fault upon failed vasprintf
* src/guestfs.c (guestfs_perrorf): Handle failed vasprintf.
---
src/guestfs.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/guestfs.c b/src/guestfs.c
index 63e24f0..802c1d2 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -443,9 +443,11 @@ guestfs_perrorf (guest...
2016 Feb 01
0
[klibc:master] Make asprintf() a simple wrapper around vasprintf()
...libc.git;a=commit;h=17fabd540aeb5019909a024243c6d26610cab307
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 1 Feb 2016 01:55:04 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 1 Feb 2016 01:55:04 -0800
[klibc] Make asprintf() a simple wrapper around vasprintf()
Since we have vasprintf() anyway, save about a hundred bytes (on
x86-64) by making asprintf() a typical stdarg wrapper function.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
usr/klibc/asprintf.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/u...
2007 Sep 13
0
PATCH: missing free() in vasprintf() in openbsd-compat
hi, it can hardly be considered a memleak since I can see that the
ret value is always checked in parent code (xasprintf() for example) and
fatal() called if it's equal to -1 but the free() call is definitely missing
there.
--- bsd-asprintf.c Tue Dec 5 12:58:12 2006
+++ bsd-asprintf.c.new Thu Sep 13 16:51:40 2007
@@ -55,6 +55,7 @@
if (ret >= 0 && ret < INIT_SZ)
2010 May 12
8
[Bug 1770] New: circular dependencies prevent building on platforms without strlcpy, vasprintf
https://bugzilla.mindrot.org/show_bug.cgi?id=1770
Summary: circular dependencies prevent building on platforms
without strlcpy, vasprintf
Product: Portable OpenSSH
Version: 5.5p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Build system
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: tgl at sss...
2017 Oct 12
1
Re: [PATCH miniexpect 2/2] Add debugging capability at runtime.
...:23:45 CEST Richard W.M. Jones wrote:
> +static int
> +mexp_vprintf (mexp_h *h, int password, const char *fs, va_list args)
> {
> - va_list args;
> char *msg;
> int len;
> size_t n;
> ssize_t r;
> char *p;
>
> - va_start (args, fs);
> len = vasprintf (&msg, fs, args);
> - va_end (args);
Due to the nature of va_list (whose implementation greatly differs per
architecture -- from a pointer, to a list of pointers, to structs, etc),
I think that here you need to copy the va_list using va_copy(), and
pass the copy to vasprintf.
I cannot fin...
2015 Feb 11
1
Samba 4.2.0rc4 fails to start up
...king for dprintf : not found
Checking for vdprintf : not found
Checking for snprintf : ok
Checking for vsnprintf : ok
Checking for asprintf : not found
Checking for vasprintf : not found
Checking for declaration of snprintf : ok
Checking for declaration of vsnprintf : ok
Checking for declaration of asprintf : not found
Checking for declaration of vasprintf : not found
Checking for C99 vsnprintf...
2003 Apr 15
1
Compile on BSDi
Hi,
Im trying to compile samba-2.2.8a on BSDi... Here is the output from uname:
4.1 BSDI BSD/OS 4.1 Kernel #0
Upon compilation using both make and gmake I get the following:
Using LIBS = -ldl
Linking bin/smbd
lib/snprintf.o: In function `vasprintf':
lib/snprintf.o(.text+0x14): undefined reference to `VA_COPY'
lib/snprintf.o(.text+0x45): undefined reference to `VA_COPY'
*** Error code 1
Stop.
Any Ideas.
cheers in advance.
Regards
Matthew Hattersley
Unix Systems Administrator
Business Serve plc
Victoria Building, Quays Loop...
2013 Feb 06
0
Miscellaneous compiler warnings
...value of ?write?, declared with attribute warn_unused_result
make[1]: Leaving directory `/u/wk/imorgan/src/openssh/warnings/openssh/openbsd-compat'
log.c:432: warning: ignoring return value of ?write?, declared with attribute warn_unused_result
schnorr.c:494: warning: ignoring return value of ?vasprintf?, declared with attribute warn_unused_result
schnorr.c:519: warning: ignoring return value of ?vasprintf?, declared with attribute warn_unused_result
krl.c:508: warning: format ?%llu? expects type ?long long unsigned int?, but argument 3 has type ?u_int64_t?
krl.c:508: warning: format ?%llu? expect...
2017 Feb 14
2
Re: [PATCH v3 04/10] lib/osinfo.c: Extract xml processing into a callback
...art (args, fs);
> + vfprintf (stderr, fs, args);
> + va_end (args);
> +}
> +
> +void
> +guestfs_int_perrorf (guestfs_h *g, const char *fs, ...)
> +{
> + va_list args;
> + CLEANUP_FREE char *msg = NULL;
> + int err;
> +
> + va_start (args, fs);
> + err = vasprintf (&msg, fs, args);
> + va_end (args);
> +
> + if (err < 0) return;
> +
> + perror(msg);
> +}
> +#endif /* GUESTFS_PRIVATE */
Why have these functions been added in this commit?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
R...
2010 Dec 14
8
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...rmdir
safe-read
safe-write
same-inode
save-cwd
size_max
ssize_t
stat
stdarg
stdbool
stddef
stdint
stdio
stdlib
strdup-posix
strerror
string
sys_stat
sys_wait
time
unistd
unistd-safer
unlink
vasnprintf
vasprintf
verify
warn-on-use
wchar
write
xalloc
xalloc-die
xgetcwd
xsize
xstrtol
xvasprintf
Notice from module error:
If you are using GNU gettext version 0.16.1 or older, add the following options
to XGETTEXT_OPTIONS in your po/Makevars:
--flag=error:3:c-format --fl...
2011 Jan 14
7
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...rmdir
safe-read
safe-write
same-inode
save-cwd
size_max
ssize_t
stat
stdarg
stdbool
stddef
stdint
stdio
stdlib
strdup-posix
strerror
string
sys_stat
sys_wait
time
unistd
unistd-safer
unlink
vasnprintf
vasprintf
verify
warn-on-use
wchar
write
xalloc
xalloc-die
xgetcwd
xsize
xstrtol
xvasprintf
Notice from module error:
If you are using GNU gettext version 0.16.1 or older, add the following options
to XGETTEXT_OPTIONS in your po/Makevars:
--flag=error:3:c-format --fl...
2011 Feb 15
7
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...rmdir
safe-read
safe-write
same-inode
save-cwd
size_max
ssize_t
stat
stdarg
stdbool
stddef
stdint
stdio
stdlib
strdup-posix
strerror
string
sys_stat
sys_wait
time
unistd
unistd-safer
unlink
vasnprintf
vasprintf
verify
warn-on-use
wchar
write
xalloc
xalloc-die
xgetcwd
xsize
xstrtol
xvasprintf
Notice from module error:
If you are using GNU gettext version 0.16.1 or older, add the following options
to XGETTEXT_OPTIONS in your po/Makevars:
--flag=error:3:c-format --fl...
2011 Jan 14
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...rmdir
safe-read
safe-write
same-inode
save-cwd
size_max
ssize_t
stat
stdarg
stdbool
stddef
stdint
stdio
stdlib
strdup-posix
strerror
string
sys_stat
sys_wait
time
unistd
unistd-safer
unlink
vasnprintf
vasprintf
verify
warn-on-use
wchar
write
xalloc
xalloc-die
xgetcwd
xsize
xstrtol
xvasprintf
Notice from module error:
If you are using GNU gettext version 0.16.1 or older, add the following options
to XGETTEXT_OPTIONS in your po/Makevars:
--flag=error:3:c-format --fl...
2011 Feb 15
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...rmdir
safe-read
safe-write
same-inode
save-cwd
size_max
ssize_t
stat
stdarg
stdbool
stddef
stdint
stdio
stdlib
strdup-posix
strerror
string
sys_stat
sys_wait
time
unistd
unistd-safer
unlink
vasnprintf
vasprintf
verify
warn-on-use
wchar
write
xalloc
xalloc-die
xgetcwd
xsize
xstrtol
xvasprintf
Notice from module error:
If you are using GNU gettext version 0.16.1 or older, add the following options
to XGETTEXT_OPTIONS in your po/Makevars:
--flag=error:3:c-format --fl...
2010 Dec 14
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...rmdir
safe-read
safe-write
same-inode
save-cwd
size_max
ssize_t
stat
stdarg
stdbool
stddef
stdint
stdio
stdlib
strdup-posix
strerror
string
sys_stat
sys_wait
time
unistd
unistd-safer
unlink
vasnprintf
vasprintf
verify
warn-on-use
wchar
write
xalloc
xalloc-die
xgetcwd
xsize
xstrtol
xvasprintf
Notice from module error:
If you are using GNU gettext version 0.16.1 or older, add the following options
to XGETTEXT_OPTIONS in your po/Makevars:
--flag=error:3:c-format --fl...
2011 May 13
3
builder-debian febootstrap success 6ab9465001dfaa52edc5992ee71f2e9aecc2085d
...rmdir
safe-read
safe-write
same-inode
save-cwd
size_max
ssize_t
stat
stdarg
stdbool
stddef
stdint
stdio
stdlib
strdup-posix
strerror
string
sys_stat
sys_wait
time
unistd
unistd-safer
unlink
vasnprintf
vasprintf
verify
warn-on-use
wchar
write
xalloc
xalloc-die
xgetcwd
xsize
xstrtol
xvasprintf
Notice from module error:
If you are using GNU gettext version 0.16.1 or older, add the following options
to XGETTEXT_OPTIONS in your po/Makevars:
--flag=error:3:c-format --fl...
2017 Jun 27
0
[PATCH v3 3/5] threads: Use thread-local storage for errors.
...25 +++----
lib/handle.c | 11 +--
m4/.gitignore | 1 +
5 files changed, 180 insertions(+), 54 deletions(-)
diff --git a/bootstrap b/bootstrap
index 77a95a25b..4e3d4bc51 100755
--- a/bootstrap
+++ b/bootstrap
@@ -95,6 +95,7 @@ symlinkat
sys_select
sys_types
sys_wait
+tls
vasprintf
vc-list-files
warnings
diff --git a/lib/errors.c b/lib/errors.c
index def1d3c89..b0c678d77 100644
--- a/lib/errors.c
+++ b/lib/errors.c
@@ -51,26 +51,150 @@
#include "guestfs.h"
#include "guestfs-internal.h"
+/* How errors and error handlers works in the handle:
+ *
+ * Th...
2015 Jun 06
0
[PATCH 3/5] threads: Use thread-local storage for errors.
...+++---------
src/guestfs-internal.h | 23 +++---
src/handle.c | 11 +--
5 files changed, 180 insertions(+), 52 deletions(-)
diff --git a/bootstrap b/bootstrap
index 5df6f0f..7733f8f 100755
--- a/bootstrap
+++ b/bootstrap
@@ -91,6 +91,7 @@ strndup
symlinkat
sys_select
sys_wait
+tls
vasprintf
vc-list-files
warnings
diff --git a/m4/.gitignore b/m4/.gitignore
index eff909a..9a26217 100644
--- a/m4/.gitignore
+++ b/m4/.gitignore
@@ -241,6 +241,7 @@
/thread.m4
/time_h.m4
/timespec.m4
+/tls.m4
/ttyname_r.m4
/uintmax_t.m4
/ulonglong.m4
diff --git a/src/errors.c b/src/errors.c
index d9...