#include <sys/param.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <signal.h>
#include <stdio.h>
#include <varargs.h>
#include <setjmp.h>
#include <unistd.h>
#include <string.h>
Defines | |
#define | roundup(x, y) ((((x)+((y)-1))/(y))*(y)) |
#define | EXTRABYTES 2 |
Functions | |
static char * | msetup (char *str, size_t n) |
static void | mcatch (int a) |
static void | mcleanup (char *str, size_t n, char *p) |
int | vsnprintf (char *str, size_t n, char *fmt, char *ap) |
int | snprintf (char *str, size_t n, char *fmt, va_alist) |
Variables | |
static int | pgsize |
static char * | curobj |
static int | caught |
static sigjmp_buf | bail |
#define EXTRABYTES 2 |
#define roundup | ( | x, | |||
y | ) | ((((x)+((y)-1))/(y))*(y)) |
static void mcatch | ( | int | a | ) | [static] |
static void mcleanup | ( | char * | str, | |
size_t | n, | |||
char * | p | |||
) | [static] |
static char* msetup | ( | char * | str, | |
size_t | n | |||
) | [static] |
int snprintf | ( | char * | str, | |
size_t | n, | |||
char * | fmt, | |||
va_alist | ||||
) |
int vsnprintf | ( | char * | str, | |
size_t | n, | |||
char * | fmt, | |||
char * | ap | |||
) |
sigjmp_buf bail [static] |
int caught [static] |
char* curobj [static] |
int pgsize [static] |