2013-03-09 00:56:44 +04:00
|
|
|
/* $NetBSD: supextern.h,v 1.24 2013/03/08 20:56:44 christos Exp $ */
|
1997-06-17 22:56:02 +04:00
|
|
|
|
1997-11-13 04:05:28 +03:00
|
|
|
struct stat;
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* atoo.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
unsigned int atoo(char *);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* expand.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
int expand(char *, char **, int);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* ffilecopy.c */
|
2009-10-18 02:26:13 +04:00
|
|
|
ssize_t ffilecopy(FILE *, FILE *);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* filecopy.c */
|
2009-10-18 02:26:13 +04:00
|
|
|
ssize_t filecopy(int, int );
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* log.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
void logopen(char *);
|
2009-10-16 16:41:37 +04:00
|
|
|
void logquit(int, const char *, ...)
|
2000-10-12 00:23:46 +04:00
|
|
|
__attribute__((__format__(__printf__, 2, 3)));
|
2009-10-16 16:41:37 +04:00
|
|
|
void logerr(const char *, ...)
|
2000-10-12 00:23:46 +04:00
|
|
|
__attribute__((__format__(__printf__, 1, 2))) ;
|
2009-10-16 16:41:37 +04:00
|
|
|
void loginfo(const char *, ...)
|
2000-10-12 00:23:46 +04:00
|
|
|
__attribute__((__format__(__printf__, 1, 2)));
|
1999-08-24 19:52:52 +04:00
|
|
|
#ifdef LIBWRAP
|
2009-10-16 16:41:37 +04:00
|
|
|
void logdeny(const char *, ...)
|
2000-10-12 00:23:46 +04:00
|
|
|
__attribute__((__format__(__printf__, 1, 2)));
|
2009-10-16 16:41:37 +04:00
|
|
|
void logallow(const char *, ...)
|
2000-10-12 00:23:46 +04:00
|
|
|
__attribute__((__format__(__printf__, 1, 2)));
|
1999-08-24 19:52:52 +04:00
|
|
|
#endif
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* netcryptvoid.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
int netcrypt(char *);
|
|
|
|
int getcryptbuf(int);
|
|
|
|
void decode(char *, char *, int);
|
|
|
|
void encode(char *, char *, int);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* nxtarg.c */
|
2009-10-16 16:41:37 +04:00
|
|
|
char *nxtarg(char **, const char *);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* path.c */
|
2011-09-21 23:32:59 +04:00
|
|
|
void path(const char *, char *, char *);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* quit.c */
|
2009-10-16 16:41:37 +04:00
|
|
|
void quit(int, const char *, ...)
|
2000-10-12 00:23:46 +04:00
|
|
|
__attribute__((__format__(__printf__, 2, 3)));
|
1996-12-23 22:42:01 +03:00
|
|
|
|
1997-11-13 04:05:28 +03:00
|
|
|
/* read_line.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
char *read_line(FILE *, size_t *, size_t *, const char[3], int);
|
1997-11-13 04:05:28 +03:00
|
|
|
|
1996-12-23 22:42:01 +03:00
|
|
|
/* run.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
int run(char *, ...);
|
|
|
|
int runv(char *, char **);
|
|
|
|
int runp(char *, ...);
|
|
|
|
int runvp(char *, char **);
|
|
|
|
int runio(char *const[], const char *, const char *, const char *);
|
|
|
|
int runiofd(char *const[], const int, const int, const int);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
2006-04-02 05:39:48 +04:00
|
|
|
/* estrdup.c */
|
|
|
|
char *estrdup(const char *);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* scan.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
int getrelease(char *);
|
|
|
|
void makescanlists(void);
|
|
|
|
void getscanlists(void);
|
|
|
|
void cdprefix(char *);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* scm.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
int servicesetup(char *, int);
|
|
|
|
int service(void);
|
|
|
|
int serviceprep(void);
|
|
|
|
int servicekill(void);
|
|
|
|
int serviceend(void);
|
|
|
|
int dobackoff(int *, int *);
|
|
|
|
int request(char *, char *, int *);
|
|
|
|
int requestend(void);
|
2009-10-16 16:41:37 +04:00
|
|
|
const char *remotehost(void);
|
2002-07-10 22:53:56 +04:00
|
|
|
int thishost(char *);
|
|
|
|
int samehost(void);
|
|
|
|
int matchhost(char *);
|
2009-10-16 16:41:37 +04:00
|
|
|
int scmerr(int, const char *, ...)
|
2000-10-12 00:23:46 +04:00
|
|
|
__attribute__((__format__(__printf__, 2, 3)));
|
2002-07-10 22:53:56 +04:00
|
|
|
int byteswap(int);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* scmio.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
int writemsg(int);
|
|
|
|
int writemend(void);
|
|
|
|
int writeint(int);
|
|
|
|
int writestring(char *);
|
|
|
|
int writefile(int);
|
|
|
|
int writemnull(int);
|
|
|
|
int writemint(int, int );
|
|
|
|
int writemstr(int, char *);
|
|
|
|
int prereadcount(int *);
|
|
|
|
int readflush(void);
|
|
|
|
int readmsg(int);
|
|
|
|
int readmend(void);
|
|
|
|
int readskip(void);
|
|
|
|
int readint(int *);
|
|
|
|
int readstring(char **);
|
|
|
|
int readfile(int);
|
|
|
|
int readmnull(int);
|
|
|
|
int readmint(int, int *);
|
|
|
|
int readmstr(int, char **);
|
|
|
|
void crosspatch(void);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* skipto.c */
|
2009-10-16 16:41:37 +04:00
|
|
|
char *skipto(const char *, const char *);
|
|
|
|
char *skipover(const char *, const char *);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* stree.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
void Tfree(TREE **);
|
2009-10-16 16:41:37 +04:00
|
|
|
TREE *Tinsert(TREE **, const char *, int);
|
|
|
|
TREE *Tsearch(TREE *, const char *);
|
|
|
|
TREE *Tlookup(TREE *, const char *);
|
2002-07-10 22:53:56 +04:00
|
|
|
int Trprocess(TREE *, int (*)(TREE *, void *), void *);
|
|
|
|
int Tprocess(TREE *, int (*)(TREE *, void *), void *);
|
|
|
|
void Tprint(TREE *, char *);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* supcmeat.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
int getonehost(TREE *, void *);
|
|
|
|
TREE *getcollhost(int *, int *, long *, int *);
|
|
|
|
void getcoll(void);
|
|
|
|
int signon(TREE *, int, int *);
|
|
|
|
int setup(TREE *);
|
|
|
|
void suplogin(void);
|
|
|
|
void listfiles(void);
|
|
|
|
void recvfiles(void);
|
|
|
|
int prepare(char *, int, int *, struct stat *);
|
|
|
|
int recvdir(TREE *, int, struct stat *);
|
|
|
|
int recvsym(TREE *, int, struct stat *);
|
|
|
|
int recvreg(TREE *, int, struct stat *);
|
|
|
|
int copyfile(char *, char *);
|
|
|
|
void finishup(int);
|
2009-10-16 16:41:37 +04:00
|
|
|
void done(int, const char *, ...)
|
2000-10-12 00:23:46 +04:00
|
|
|
__attribute__((__format__(__printf__, 2, 3)));
|
2009-10-16 16:41:37 +04:00
|
|
|
void goaway(const char *, ...)
|
2000-10-12 00:23:46 +04:00
|
|
|
__attribute__((__format__(__printf__, 1, 2)));
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* supcmisc.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
void prtime(void);
|
|
|
|
int establishdir(char *);
|
2002-07-11 01:28:13 +04:00
|
|
|
int makedir(char *, unsigned int, struct stat *);
|
2002-07-10 22:53:56 +04:00
|
|
|
int estabd(char *, char *);
|
|
|
|
void ugconvert(char *, char *, int *, int *, int *);
|
2013-03-09 00:56:44 +04:00
|
|
|
void notify(int, const char *, ...)
|
|
|
|
__attribute__((__format__(__printf__, 2, 3)));
|
2002-07-10 22:53:56 +04:00
|
|
|
void lockout(int);
|
|
|
|
char *fmttime(time_t);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* supcname.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
void getnams(void);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* supcparse.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
int parsecoll(COLLECTION *, char *, char *);
|
|
|
|
time_t getwhen(char *, char *);
|
|
|
|
int putwhen(char *, time_t);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* supmsg.c */
|
2002-07-10 22:53:56 +04:00
|
|
|
int msgsignon(void);
|
|
|
|
int msgsignonack(void);
|
|
|
|
int msgsetup(void);
|
|
|
|
int msgsetupack(void);
|
|
|
|
int msgcrypt(void);
|
|
|
|
int msgcryptok(void);
|
|
|
|
int msglogin(void);
|
|
|
|
int msglogack(void);
|
|
|
|
int msgrefuse(void);
|
|
|
|
int msglist(void);
|
|
|
|
int msgneed(void);
|
|
|
|
int msgdeny(void);
|
|
|
|
int msgsend(void);
|
|
|
|
int msgrecv(int (*)(TREE *, va_list), ...);
|
|
|
|
int msgdone(void);
|
|
|
|
int msggoaway(void);
|
|
|
|
int msgxpatch(void);
|
|
|
|
int msgcompress(void);
|
1996-12-23 22:42:01 +03:00
|
|
|
|
|
|
|
/* vprintf.c */
|
2000-12-31 00:36:23 +03:00
|
|
|
/* XXX already in system headers included already - but with different
|
|
|
|
argument declarations! */
|
|
|
|
#if 0
|
2002-07-10 22:53:56 +04:00
|
|
|
int vprintf(const char *, va_list);
|
|
|
|
int vfprintf(FILE *, const char *, va_list);
|
|
|
|
int vsprintf(char *, const char *, va_list);
|
|
|
|
int vsnprintf(char *, size_t, const char *, va_list);
|
2000-12-31 00:36:23 +03:00
|
|
|
#endif
|