2013-08-06 11:16:27 +00:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
#include "arg.h"
|
|
|
|
|
|
|
|
#define UTF8_POINT(c) (((c) & 0xc0) != 0x80)
|
|
|
|
#define LEN(x) (sizeof (x) / sizeof *(x))
|
|
|
|
|
|
|
|
extern char *argv0;
|
|
|
|
|
2013-08-14 14:38:43 +00:00
|
|
|
char *agetcwd(void);
|
|
|
|
void apathmax(char **, long *);
|
|
|
|
void devtotty(int dev, int *tty_maj, int *tty_min);
|
2013-08-06 11:16:27 +00:00
|
|
|
void enprintf(int, const char *, ...);
|
2013-08-14 14:38:43 +00:00
|
|
|
void eprintf(const char *, ...);
|
2013-08-06 11:16:27 +00:00
|
|
|
long estrtol(const char *, int);
|
2013-08-14 14:38:43 +00:00
|
|
|
void recurse(const char *, void (*)(const char *));
|
|
|
|
char *ttytostr(int tty_maj, int tty_min);
|