| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#include <stdint.h> |
| 21 |
#include <sys/types.h> |
| 22 |
|
| 23 |
#include "intprops.h" |
| 24 |
|
| 25 |
#ifndef __GNUC_PREREQ |
| 26 |
# if defined __GNUC__ && defined __GNUC_MINOR__ |
| 27 |
# define __GNUC_PREREQ(maj, min) \ |
| 28 |
((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) |
| 29 |
# else |
| 30 |
# define __GNUC_PREREQ(maj, min) 0 |
| 31 |
# endif |
| 32 |
#endif |
| 33 |
|
| 34 |
#if __GNUC_PREREQ (3,4) |
| 35 |
# undef __attribute_warn_unused_result__ |
| 36 |
# define __attribute_warn_unused_result__ \ |
| 37 |
__attribute__ ((__warn_unused_result__)) |
| 38 |
#else |
| 39 |
# define __attribute_warn_unused_result__ |
| 40 |
#endif |
| 41 |
|
| 42 |
char *imaxtostr (intmax_t, char *) __attribute_warn_unused_result__; |
| 43 |
char *inttostr (int, char *) __attribute_warn_unused_result__; |
| 44 |
char *offtostr (off_t, char *) __attribute_warn_unused_result__; |
| 45 |
char *uinttostr (unsigned int, char *) __attribute_warn_unused_result__; |
| 46 |
char *umaxtostr (uintmax_t, char *) __attribute_warn_unused_result__; |