includes: minix <util.h>
This commit is contained in:
@@ -33,14 +33,11 @@
|
||||
#define _UTIL_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/ttycom.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <pwd.h>
|
||||
#include <termios.h>
|
||||
#include <utmp.h>
|
||||
#include <utmpx.h>
|
||||
#include <machine/ansi.h>
|
||||
|
||||
#ifdef _BSD_TIME_T_
|
||||
typedef _BSD_TIME_T_ time_t;
|
||||
@@ -55,6 +52,7 @@ typedef _BSD_TIME_T_ time_t;
|
||||
#define PW_POLICY_BYGROUP 2
|
||||
|
||||
__BEGIN_DECLS
|
||||
#ifndef __minix
|
||||
struct disklabel;
|
||||
struct iovec;
|
||||
struct passwd;
|
||||
@@ -117,6 +115,8 @@ int ttyunlock(const char *);
|
||||
uint16_t disklabel_dkcksum(struct disklabel *);
|
||||
int disklabel_scan(struct disklabel *, char *, size_t);
|
||||
|
||||
#endif
|
||||
|
||||
/* Error checked functions */
|
||||
void (*esetfunc(void (*)(int, const char *, ...)))
|
||||
(int, const char *, ...);
|
||||
@@ -127,12 +127,15 @@ char *estrndup(const char *, size_t);
|
||||
void *ecalloc(size_t, size_t);
|
||||
void *emalloc(size_t);
|
||||
void *erealloc(void *, size_t);
|
||||
struct __sFILE *efopen(const char *, const char *);
|
||||
FILE *efopen(const char *, const char *);
|
||||
|
||||
#ifndef __minix
|
||||
int easprintf(char ** __restrict, const char * __restrict, ...)
|
||||
__attribute__((__format__(__printf__, 2, 3)));
|
||||
int evasprintf(char ** __restrict, const char * __restrict,
|
||||
_BSD_VA_LIST_)
|
||||
__attribute__((__format__(__printf__, 2, 0)));
|
||||
#endif
|
||||
__END_DECLS
|
||||
|
||||
#endif /* !_UTIL_H_ */
|
||||
|
||||
Reference in New Issue
Block a user