/crypto/heimdal/appl/ftp/ftp/extern.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 174 lines · 133 code · 6 blank · 35 comment · 0 complexity · 5d6a30c847bbfe0f2773bd96bc60a839 MD5 · raw file

  1. /*-
  2. * Copyright (c) 1994 The Regents of the University of California.
  3. * All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. * 1. Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * 2. Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in the
  12. * documentation and/or other materials provided with the distribution.
  13. * 3. All advertising materials mentioning features or use of this software
  14. * must display the following acknowledgement:
  15. * This product includes software developed by the University of
  16. * California, Berkeley and its contributors.
  17. * 4. Neither the name of the University nor the names of its contributors
  18. * may be used to endorse or promote products derived from this software
  19. * without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  22. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  23. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  24. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  25. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  26. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  27. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  28. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  29. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  30. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  31. * SUCH DAMAGE.
  32. *
  33. * @(#)extern.h 8.3 (Berkeley) 10/9/94
  34. */
  35. /* $Id$ */
  36. #include <setjmp.h>
  37. #include <stdlib.h>
  38. #ifdef TIME_WITH_SYS_TIME
  39. #include <sys/time.h>
  40. #include <time.h>
  41. #elif defined(HAVE_SYS_TIME_H)
  42. #include <sys/time.h>
  43. #else
  44. #include <time.h>
  45. #endif
  46. #ifdef HAVE_SYS_SELECT_H
  47. #include <sys/select.h>
  48. #endif
  49. void abort_remote (FILE *);
  50. void abortpt (int);
  51. void abortrecv (int);
  52. void account (int, char **);
  53. int another (int *, char ***, char *);
  54. void blkfree (char **);
  55. void cd (int, char **);
  56. void cdup (int, char **);
  57. void changetype (int, int);
  58. void cmdabort (int);
  59. void cmdscanner (int);
  60. int command (char *fmt, ...)
  61. __attribute__ ((format (printf, 1,2)));
  62. int confirm (char *, char *);
  63. FILE *dataconn (const char *);
  64. void delete (int, char **);
  65. void disconnect (int, char **);
  66. void do_chmod (int, char **);
  67. void do_umask (int, char **);
  68. void domacro (int, char **);
  69. char *domap (char *);
  70. void doproxy (int, char **);
  71. char *dotrans (char *);
  72. int empty (fd_set *, int);
  73. void fatal (char *);
  74. void get (int, char **);
  75. struct cmd *getcmd (char *);
  76. int getit (int, char **, int, char *);
  77. int getreply (int);
  78. int globulize (char **);
  79. char *gunique (char *);
  80. void help (int, char **);
  81. char *hookup (const char *, int);
  82. void ftp_idle (int, char **);
  83. int initconn (void);
  84. void intr (int);
  85. void lcd (int, char **);
  86. int login (char *);
  87. RETSIGTYPE lostpeer (int);
  88. void ls (int, char **);
  89. void macdef (int, char **);
  90. void makeargv (void);
  91. void makedir (int, char **);
  92. void mdelete (int, char **);
  93. void mget (int, char **);
  94. void mls (int, char **);
  95. void modtime (int, char **);
  96. void mput (int, char **);
  97. char *onoff (int);
  98. void newer (int, char **);
  99. void proxtrans (char *, char *, char *);
  100. void psabort (int);
  101. void pswitch (int);
  102. void ptransfer (char *, long, struct timeval *, struct timeval *);
  103. void put (int, char **);
  104. void pwd (int, char **);
  105. void quit (int, char **);
  106. void quote (int, char **);
  107. void quote1 (char *, int, char **);
  108. void recvrequest (char *, char *, char *, char *, int, int);
  109. void reget (int, char **);
  110. char *remglob (char **, int);
  111. void removedir (int, char **);
  112. void renamefile (int, char **);
  113. void reset (int, char **);
  114. void restart (int, char **);
  115. void rmthelp (int, char **);
  116. void rmtstatus (int, char **);
  117. int ruserpassword (char *, char **, char **, char **);
  118. void sendrequest (char *, char *, char *, char *, int);
  119. void setascii (int, char **);
  120. void setbell (int, char **);
  121. void setbinary (int, char **);
  122. void setcase (int, char **);
  123. void setcr (int, char **);
  124. void setdebug (int, char **);
  125. void setform (int, char **);
  126. void setftmode (int, char **);
  127. void setglob (int, char **);
  128. void sethash (int, char **);
  129. void setnmap (int, char **);
  130. void setntrans (int, char **);
  131. void setpassive (int, char **);
  132. void setpeer (int, char **);
  133. void setport (int, char **);
  134. void setprompt (int, char **);
  135. void setrunique (int, char **);
  136. void setstruct (int, char **);
  137. void setsunique (int, char **);
  138. void settenex (int, char **);
  139. void settrace (int, char **);
  140. void settype (int, char **);
  141. void setverbose (int, char **);
  142. void shell (int, char **);
  143. void site (int, char **);
  144. void sizecmd (int, char **);
  145. char *slurpstring (void);
  146. void status (int, char **);
  147. void syst (int, char **);
  148. void tvsub (struct timeval *, struct timeval *, struct timeval *);
  149. void user (int, char **);
  150. extern jmp_buf abortprox;
  151. extern int abrtflag;
  152. extern struct cmd cmdtab[];
  153. extern FILE *cout;
  154. extern int data;
  155. extern char *home;
  156. extern jmp_buf jabort;
  157. extern int proxy;
  158. extern char reply_string[];
  159. extern off_t restart_point;
  160. extern int NCMDS;
  161. extern char username[32];
  162. extern char myhostname[];
  163. extern char *mydomain;
  164. void afslog (int, char **);
  165. void kauth (int, char **);
  166. void kdestroy (int, char **);
  167. void klist (int, char **);
  168. void krbtkfile (int, char **);