Annotations and tweaks for live update

This change is necessary for instrumentation-aided state transfer.

Change-Id: I24be938009f02e302a15083f9a7a11824975e42b
This commit is contained in:
David van Moolenbroek
2015-08-10 18:06:10 +02:00
parent 23369f9c9e
commit 129adfeb53
14 changed files with 38 additions and 22 deletions

View File

@@ -174,6 +174,9 @@ vsnprintf(char *buf, size_t size, const char *fmt, va_list ap)
if (sbuf){ /* handle case where sbuf == NULL */
*sbuf = '\0';
}
#if defined(_MINIX_MAGIC)
sbuf = ebuf = NULL; /* leave no dangling pointers */
#endif
return scount;
#else /* __minix is not defined */
*sbuf = '\0';