Displaying 12 results from an estimated 12 matches for "__printf__".
Did you mean:
__printf
2019 Jan 02
0
[PATCH nbdkit v2 2/2] include: Only use attribute((format)) on GCC or Clang.
...on.h b/include/nbdkit-common.h
index 27f6ed1..36fce20 100644
--- a/include/nbdkit-common.h
+++ b/include/nbdkit-common.h
@@ -45,6 +45,13 @@
extern "C" {
#endif
+#if defined(__GNUC__) || defined(__clang__)
+#define ATTRIBUTE_FORMAT_PRINTF(fmtpos, argpos) \
+ __attribute__((__format__ (__printf__, fmtpos, argpos)))
+#else
+#define ATTRIBUTE_FORMAT_PRINTF(fmtpos, argpos)
+#endif
+
#define NBDKIT_THREAD_MODEL_SERIALIZE_CONNECTIONS 0
#define NBDKIT_THREAD_MODEL_SERIALIZE_ALL_REQUESTS 1
#define NBDKIT_THREAD_MODEL_SERIALIZE_REQUESTS 2
@@ -57,11 +64,9 @@ extern "C" {...
2018 Jan 23
3
[nbdkit PATCH 0/2] Miscellaneous patches
These are relatively independent enough from my ongoing work to
add FUA support that I'll post them now.
Eric Blake (2):
todo: More items
include: Properly decorate attributes in public headers
TODO | 15 ++++++++++++++-
include/nbdkit-common.h | 4 ++--
2 files changed, 16 insertions(+), 3 deletions(-)
--
2.14.3
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Handle embedded NULs correctly in printf
...xtern struct output *out1;
extern struct output *out2;
+void outmem(const char *, size_t, struct output *);
void outstr(const char *, struct output *);
#ifndef USE_GLIBC_STDIO
void outcslow(int, struct output *);
@@ -75,6 +76,7 @@ void out1fmt(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
int fmtstr(char *, size_t, const char *, ...)
__attribute__((__format__(__printf__,3,4)));
+int xasprintf(char **, const char *, ...);
#ifndef USE_GLIBC_STDIO
void doformat(struct output *, const char *, va_list);
#endif
@@ -115,6 +117,7 @@ static inline void outc(int ch, struct ou...
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Handle embedded NULs correctly in printf
...xtern struct output *out1;
extern struct output *out2;
+void outmem(const char *, size_t, struct output *);
void outstr(const char *, struct output *);
#ifndef USE_GLIBC_STDIO
void outcslow(int, struct output *);
@@ -75,6 +76,7 @@ void out1fmt(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
int fmtstr(char *, size_t, const char *, ...)
__attribute__((__format__(__printf__,3,4)));
+int xasprintf(char **, const char *, ...);
#ifndef USE_GLIBC_STDIO
void doformat(struct output *, const char *, va_list);
#endif
@@ -115,6 +117,7 @@ static inline void outc(int ch, struct ou...
2019 Jan 02
4
[PATCH nbdkit v2 0/2] Use of attribute(()).
v1 was here:
https://www.redhat.com/archives/libguestfs/2019-January/msg00008.html
In v2 I have provided two patches:
The first patch extends attribute((nonnull)) to most internal
functions, but not to the external API.
The second patch uses a macro so that attribute((format)) is only used
in the public API on GCC or Clang. At least in theory these headers
could be used by a C compiler which
2019 Jan 01
3
[PATCH nbdkit] include: Annotate function parameters with attribute((nonnull)).
Should we use attribute((nonnull)) at all? There's a very interesting
history of this in libvirt -- try looking at commit eefb881 plus the
commits referencing eefb881 -- but it does seem to work for me using
recent GCC and Clang.
I only did a few functions because annotating them gets old quickly...
Rich.
2019 Jan 22
2
Newbie - SNMP-UPS Driver Issue
...ntrasente/Documents/GitHub/nut/drivers/main.h:4:
In file included from /Users/deantrasente/Documents/GitHub/nut/include/common.h:45:
/Users/deantrasente/Documents/GitHub/nut/include/proto.h:44:18: error: '__format__' attribute parameter 2 is out of bounds
__attribute__ ((__format__ (__printf__, 3, 4)));
^ ~
/Users/deantrasente/Documents/GitHub/nut/include/proto.h:43:5: error: conflicting types for '__builtin___snprintf_chk'
int snprintf (char *str, size_t count, const char *fmt, ...)
^
/Library/Developer/CommandLineTools/SDKs/MacO...
2007 May 25
0
Patch -- SVN revision in the version string
...=======
--- include/common.h (revision 916)
+++ include/common.h (working copy)
@@ -86,6 +86,7 @@
/* Return the alternate path for pid files */
const char * altpidpath(void);
+const char *upsversion(void);
void upslog_with_errno(int priority, const char *fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3)));
void upslogx(int priority, const char *fmt, ...)
Index: server/netget.c
===================================================================
--- server/netget.c (revision 916)
+++ server/netget.c (working copy)
@@ -165,13 +165,13 @@
sendback(client, "VAR %s server.info "...
2007 Jan 23
2
Re: [nut-commits] svn commit r731
...r(const char *upsname);
> int ups_available(const upstype *ups, ctype *client);
>
> +void listen_add(const char *addr, const char *port);
> +
> void kick_login_clients(const char *upsname);
> int sendback(ctype *client, const char *fmt, ...)
> __attribute__ ((__format__ (__printf__, 2, 3)));
>
> Modified: trunk/server/upstype.h
> ==============================================================================
> --- trunk/server/upstype.h (original)
> +++ trunk/server/upstype.h Sat Jan 13 21:22:28 2007
> @@ -46,4 +46,6 @@
> void *next;
> } upstype;
&g...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not
allocating RBP to any virtual register, the instances of RBP in function
foo are in the machine code when my register allocator starts.)
Function foo calls function bar. Register RBP is not saved across the
call, though it is live after the call. Function bar includes a virtual
register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...printf (char *__restrict __s, __const char *__restrict __format,
__gnuc_va_list __arg) __attribute__ ((__nothrow__));
extern int snprintf (char *__restrict __s, size_t __maxlen,
__const char *__restrict __format, ...)
__attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
extern int vsnprintf (char *__restrict __s, size_t __maxlen,
__const char *__restrict __format, __gnuc_va_list __arg)
__attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
extern int fscanf (FILE *__restrict __stream,
__const char *__restrict...
2018 Mar 08
19
[nbdkit PATCH v3 00/15] Add FUA support to nbdkit
After more than a month since v2 [1], I've finally got my FUA
support series polished. This is all of my outstanding patches,
even though some of them were originally posted in separate
threads from the original FUA post [2], [3]
[1] https://www.redhat.com/archives/libguestfs/2018-January/msg00113.html
[2] https://www.redhat.com/archives/libguestfs/2018-January/msg00219.html
[3]