
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
85 lines
1.7 KiB
C
85 lines
1.7 KiB
C
#ifndef _GNU_SOURCE
|
|
#define _GNU_SOURCE
|
|
#endif
|
|
#include <stdio.h>
|
|
#include <inttypes.h>
|
|
#include <time.h>
|
|
#include <sys/stat.h>
|
|
#include <netdb.h>
|
|
|
|
#ifndef __unused
|
|
#define __unused __attribute__((__unused__))
|
|
#endif
|
|
|
|
#ifndef __dead
|
|
#define __dead __attribute__((__noreturn__))
|
|
#endif
|
|
|
|
#ifndef __RCSID
|
|
#define __RCSID(a)
|
|
#endif
|
|
|
|
#ifndef __UNCONST
|
|
#define __UNCONST(a) ((void *)(intptr_t)(a))
|
|
#endif
|
|
|
|
#ifndef __arraycount
|
|
#define __arraycount(a) (sizeof(a) / sizeof(a[0]))
|
|
#endif
|
|
|
|
#ifndef HAVE_STRLCPY
|
|
size_t strlcpy(char *, const char *, size_t);
|
|
#endif
|
|
|
|
#ifndef HAVE_STRLCAT
|
|
size_t strlcat(char *, const char *, size_t);
|
|
#endif
|
|
|
|
#ifndef HAVE_POPENVE
|
|
FILE *popenve(const char *, char *const *, char *const *, const char *);
|
|
int pcloseve(FILE *);
|
|
#define pclose(a) pcloseve(a);
|
|
#endif
|
|
|
|
#ifndef HAVE_SOCKADDR_SNPRINTF
|
|
struct sockaddr;
|
|
int sockaddr_snprintf(char *, size_t, const char *, const struct sockaddr *);
|
|
#endif
|
|
|
|
#ifndef HAVE_STRTOI
|
|
intmax_t strtoi(const char *, char **, int, intmax_t, intmax_t, int *);
|
|
#endif
|
|
|
|
#ifndef HAVE_GETPROGNAME
|
|
const char *getprogname(void);
|
|
void setprogname(char *);
|
|
#endif
|
|
|
|
#ifndef HAVE_PIDFILE
|
|
int pidfile(const char *);
|
|
#endif
|
|
|
|
#ifndef HAVE_FPARSELN
|
|
#define FPARSELN_UNESCALL 0xf
|
|
#define FPARSELN_UNESCCOMM 0x1
|
|
#define FPARSELN_UNESCCONT 0x2
|
|
#define FPARSELN_UNESCESC 0x4
|
|
#define FPARSELN_UNESCREST 0x8
|
|
char *fparseln(FILE *, size_t *, size_t *, const char delim[3], int);
|
|
#endif
|
|
|
|
#ifndef HAVE_FGETLN
|
|
char *fgetln(FILE *, size_t *);
|
|
#endif
|
|
|
|
#ifndef HAVE_CLOCK_GETTIME
|
|
struct timespec;
|
|
int clock_gettime(int, struct timespec *);
|
|
#define CLOCK_REALTIME 0
|
|
#endif
|
|
|
|
#define _PATH_BLCONF "conf"
|
|
#define _PATH_BLCONTROL "control"
|
|
#define _PATH_BLSOCK "blsock"
|
|
#define _PATH_BLSTATE "blacklistd.db"
|