version 1.1.1.4, 2013/07/22 10:46:12
|
version 1.1.1.5, 2013/10/14 07:56:34
|
Line 23
|
Line 23
|
#define _SUDO_MISSING_H |
#define _SUDO_MISSING_H |
|
|
#include <stdio.h> |
#include <stdio.h> |
|
#ifdef STDC_HEADERS |
|
# include <stddef.h> |
|
#endif |
#include <stdarg.h> |
#include <stdarg.h> |
|
|
/* |
/* |
Line 45
|
Line 48
|
|
|
/* For catching format string mismatches */ |
/* For catching format string mismatches */ |
#ifndef __printflike |
#ifndef __printflike |
# if __GNUC_PREREQ__(2, 7) | # if __GNUC_PREREQ__(3, 3) |
| # define __printflike(f, v) __attribute__((__format__ (__printf__, f, v))) __attribute__((__nonnull__ (f))) |
| # elif __GNUC_PREREQ__(2, 7) |
# define __printflike(f, v) __attribute__((__format__ (__printf__, f, v))) |
# define __printflike(f, v) __attribute__((__format__ (__printf__, f, v))) |
# else |
# else |
# define __printflike(f, v) |
# define __printflike(f, v) |
# endif |
# endif |
#endif |
#endif |
|
#ifndef __printf0like |
|
# if __GNUC_PREREQ__(2, 7) |
|
# define __printf0like(f, v) __attribute__((__format__ (__printf__, f, v))) |
|
# else |
|
# define __printf0like(f, v) |
|
# endif |
|
#endif |
|
|
/* Hint to compiler that returned pointer is unique (malloc but not realloc). */ |
/* Hint to compiler that returned pointer is unique (malloc but not realloc). */ |
#ifndef __malloc_like |
#ifndef __malloc_like |
Line 383 size_t strlcpy(char *, const char *, size_t);
|
Line 395 size_t strlcpy(char *, const char *, size_t);
|
#endif |
#endif |
#ifndef HAVE_MEMRCHR |
#ifndef HAVE_MEMRCHR |
void *memrchr(const void *, int, size_t); |
void *memrchr(const void *, int, size_t); |
|
#endif |
|
#ifndef HAVE_MEMSET_S |
|
errno_t memset_s(void *, rsize_t, int, rsize_t); |
#endif |
#endif |
#ifndef HAVE_MKDTEMP |
#ifndef HAVE_MKDTEMP |
char *mkdtemp(char *); |
char *mkdtemp(char *); |