home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / pdksh-4.9-src.tgz / tar.out / contrib / pdksh / sh / proto.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  9KB  |  258 lines

  1. /*
  2.  * prototypes for PD-KSH
  3.  * originally generated using "cproto.c 3.5 92/04/11 19:28:01 cthuang "
  4.  * $Id: proto.h,v 1.3 93/05/05 21:16:58 sjg Exp $
  5.  */
  6. #ifndef ARGS
  7. #if defined(__STDC__) || defined(__cplusplus)
  8. #define ARGS(s) s
  9. #else
  10. #define ARGS(s) ()
  11. #endif
  12. #endif
  13.  
  14. /* alloc.c */
  15. Area *    ainit         ARGS((Area *ap));
  16. void     afreeall     ARGS((Area *ap));
  17. void *    alloc         ARGS((size_t size, Area *ap));
  18. void *    aresize         ARGS((void *ptr, size_t size, Area *ap));
  19. #ifdef DEBUG_AFREE
  20. #define afree(ptr,ap) _afree((ptr), (ap), __FILE__, __LINE__)
  21. void     _afree         ARGS((void *ptr, Area *ap, char *, int));
  22. #else
  23. void     afree         ARGS((void *ptr, Area *ap));
  24. #endif
  25. /* c_ksh.c */
  26. int     c_hash         ARGS((char **wp));
  27. int     c_cd         ARGS((char **wp));
  28. int     c_print         ARGS((char **wp));
  29. int     c_whence     ARGS((char **wp));
  30. int     c_typeset     ARGS((char **wp));
  31. int     c_alias         ARGS((char **wp));
  32. int     c_unalias     ARGS((char **wp));
  33. int     c_let         ARGS((char **wp));
  34. int     c_jobs         ARGS((char **wp));
  35. int     c_fgbg         ARGS((char **wp));
  36. int     c_kill         ARGS((char **wp));
  37. int     c_bind         ARGS((char **wp));
  38. /* c_sh.c */
  39. int     c_label         ARGS((char **wp));
  40. int     c_shift         ARGS((char **wp));
  41. int     c_umask         ARGS((char **wp));
  42. int     c_dot         ARGS((char **wp));
  43. int     c_wait         ARGS((char **wp));
  44. int     c_read         ARGS((char **wp));
  45. int     c_eval         ARGS((char **wp));
  46. int     c_trap         ARGS((char **wp));
  47. void     setsig         ARGS((struct trap *p, void (*f)()));
  48. int     c_return     ARGS((char **wp));
  49. int     c_brkcont     ARGS((char **wp));
  50. int     c_exit         ARGS((char **wp));
  51. int     c_set         ARGS((char **wp));
  52. int     c_unset         ARGS((char **wp));
  53. int     c_ulimit     ARGS((char **wp));
  54. int     c_times         ARGS((char **wp));
  55. int     timex         ARGS((struct op *t, int f));
  56. int     c_exec         ARGS((char **wp));
  57. int     c_builtin     ARGS((char **wp));
  58. /* c_test.c */
  59. int     c_test         ARGS((char **wp));
  60. int     oexpr         ARGS((int n));
  61. int     aexpr         ARGS((int n));
  62. int     nexpr         ARGS((int n));
  63. int     primary         ARGS((int n));
  64. int     filstat         ARGS((char *nm, int mode));
  65. int     t_lex         ARGS((char *s));
  66. int     newerf         ARGS((char *f1, char *f2));
  67. int     olderf         ARGS((char *f1, char *f2));
  68. int     equalf         ARGS((char *f1, char *f2));
  69. /* do_ulimit.c */
  70. int     do_ulimit     ARGS((char *a1, char *a2));
  71. /* edit.c */
  72. int     x_read         ARGS((int fd, char *buf, size_t len));
  73. int     x_getc         ARGS((void));
  74. void     x_flush         ARGS((void));
  75. void     x_adjust     ARGS((void));
  76. void     x_putc         ARGS((int c));
  77. void     x_puts         ARGS((char *s));
  78. void     x_init         ARGS((void));
  79. bool_t     x_mode         ARGS((bool_t onoff));
  80. int     promptlen     ARGS((char *cp));
  81. int     init_editmode     ARGS((void));
  82. void     set_editmode     ARGS((char *ed));
  83. /* emacs.c */
  84. int     x_emacs         ARGS((char *buf, size_t len));
  85. void     x_redraw     ARGS((int limit));
  86. void     x_bind         ARGS((char *a1, char *a2, int macro));
  87. void     x_init_emacs     ARGS((void));
  88. void     x_emacs_keys     ARGS((int erase, int kill, int werase, int intr, int quit));
  89. char *    x_lastcp     ARGS((void));
  90. /* eval.c */
  91. char *    substitute     ARGS((char const *cp, int f));
  92. char **    eval         ARGS((char **ap, int f));
  93. char *    evalstr         ARGS((char *cp, int f));
  94. char *    evalonestr     ARGS((char *cp, int f));
  95. /* exec.c */
  96. int     execute         ARGS((struct op *t, volatile int flags));
  97. int     shcomexec     ARGS((char **wp));
  98. int     define         ARGS((char *name, struct op *t));
  99. int     builtin         ARGS((char *name, int (*func)()));
  100. struct tbl *    findcom     ARGS((char *name, int insert));
  101. int     flushcom     ARGS((int all));
  102. char *    search         ARGS((char *name, char *path, int mode));
  103. int    pr_menu         ARGS((char **ap, int usestored));
  104. /* expr.c */
  105. void     evalerr         ARGS((char *err));
  106. long     evaluate     ARGS((const char *expr));
  107. /* getopts.c */
  108. void     resetopts     ARGS((void));
  109. int     c_getopts     ARGS((char **wp));
  110. /* history.c */
  111. int     c_fc          ARGS((register char **wp));
  112. void     histbackup     ARGS((void));
  113. #ifdef EASY_HISTORY
  114. void     histsave     ARGS((char *cmd));
  115. #else
  116. void    sethistsize     ARGS((int n));
  117. void    sethistfile     ARGS((char *name));
  118. void    histsave     ARGS((int lno, char *cmd, int dowrite));
  119. #endif
  120. char **    histget          ARGS((char *str));
  121. char *    histrpl          ARGS((char *s, char *pat, char *rep, int global));
  122. void     hist_init     ARGS((Source *s));
  123. void     hist_finish     ARGS((void));
  124. char **    histpos          ARGS((void));
  125. int     histN          ARGS((void));
  126. int     histnum          ARGS((int n));
  127. char *    findhist     ARGS((int start, int fwd, char *str));
  128. /* io.c */
  129. int     errorf         ARGS((const char *fmt, ...));
  130. int     shellf         ARGS((const char *fmt, ...));
  131. void     fopenshf     ARGS((int fd));
  132. void     flushshf     ARGS((int fd));
  133. int     savefd         ARGS((int fd));
  134. void     restfd         ARGS((int fd, int ofd));
  135. void     openpipe     ARGS((int *pv));
  136. void     closepipe     ARGS((int *pv));
  137. struct temp *    maketemp ARGS((Area *ap));
  138. /* jobs.c */
  139. void     j_init         ARGS((void));
  140. void     j_exit         ARGS((void));
  141. void     j_change     ARGS((void));
  142. int     exchild         ARGS((struct op *t, int flags));
  143. int     waitlast     ARGS((void));
  144. int     j_reapchld     ARGS((void));
  145. int     j_reap         ARGS((void));
  146. int     waitfor         ARGS((int job));
  147. void     j_kill         ARGS((int job, int sig));
  148. int     j_resume     ARGS((int job, int bg));
  149. void     j_jobs         ARGS((void));
  150. void     j_notify     ARGS((void));
  151. int     j_lookup     ARGS((char *cp));
  152. int     j_stopped     ARGS((void));
  153. /* lex.c */
  154. int     yylex         ARGS((int cf));
  155. int     gethere         ARGS((void));
  156. void     yyerror         ARGS((const char *msg));
  157. Source * pushs         ARGS((int type));
  158. int     pprompt         ARGS((char *cp));
  159. /* mail.c */
  160. void     mcheck         ARGS((void));
  161. void     mbset         ARGS((char *p));
  162. void     mpset         ARGS((char *mptoparse));
  163. void     mprint         ARGS((void));
  164. /* main.c */
  165. int     main         ARGS((int argc, char **argv, char **envp));
  166. int     include         ARGS((char *name));
  167. #if 0
  168. int     command         ARGS((char *comm));
  169. #endif
  170. int     shell         ARGS((Source *s));
  171. void     leave         ARGS((int rv));
  172. int     error         ARGS((void));
  173. int     unwind         ARGS((void));
  174. int     newenv         ARGS((int type));
  175. int     quitenv         ARGS((void));
  176. void     aerror         ARGS((Area *ap, const char *msg));
  177. /* misc.c */
  178. void     setctypes     ARGS((/* const */ char *s, int t));
  179. void     initctypes     ARGS((void));
  180. char *    ulton         ARGS((unsigned long n, int base));
  181. char *    strsave         ARGS((char *s, Area *ap));
  182. int     option         ARGS((const char *n));
  183. char *    getoptions     ARGS((void));
  184. void     printoptions     ARGS((void));
  185. int     getn         ARGS((char *as));
  186. char *    strerror     ARGS((int i));
  187. int     gmatch         ARGS((char *s, char *p));
  188. void     qsortp         ARGS((void **base, size_t n, int (*f)()));
  189. int     qsort1         ARGS((void **base, void **lim, int (*f)()));
  190. int     xstrcmp         ARGS((void *p1, void *p2));
  191. void     cleanpath     ARGS((char *pwd, char *dir, char *clean));
  192. /* syn.c */
  193. int     yyparse         ARGS((void));
  194. int     keywords     ARGS((void));
  195. struct op * compile     ARGS((Source *s));
  196. /* table.c */
  197. unsigned int     hash     ARGS((char *n));
  198. void     tinit         ARGS((struct table *tp, Area *ap));
  199. struct tbl *    tsearch     ARGS((struct table *tp, char *n, unsigned int h));
  200. struct tbl *    tenter     ARGS((struct table *tp, char *n, unsigned int h));
  201. void     tdelete         ARGS((struct tbl *p));
  202. void     twalk         ARGS((struct table *tp));
  203. struct tbl *    tnext     ARGS((void));
  204. struct tbl **    tsort     ARGS((struct table *tp));
  205. #ifdef amigaos
  206. void    tbl_copy     ARGS((struct table *src, struct table *dst, Area *ap));
  207. #endif
  208. /* trace.c */
  209. /* trap.c */
  210. Trap *    gettrap         ARGS((char *name));
  211. void     trapsig         ARGS((int i));
  212. int     runtraps     ARGS((void));
  213. int     runtrap         ARGS((Trap *p));
  214. int     cleartraps     ARGS((void));
  215. int     ignoresig     ARGS((int i));
  216. int     restoresigs     ARGS((void));
  217. #ifdef amigaos
  218. void    child_dup_traps     ARGS((void));
  219. #endif
  220. /* tree.c */
  221. void     ptree         ARGS((struct op *t, FILE *f));
  222. int     pioact         ARGS((FILE *f, struct ioword *iop));
  223. int     fptreef         ARGS((FILE *f, char *fmt, ...));
  224. int     snptreef     ARGS((char *s, int n, char *fmt, ...));
  225. struct op *    tcopy     ARGS((struct op *t, Area *ap));
  226. char *    wdcopy         ARGS((char *wp, Area *ap));
  227. char *    wdscan         ARGS((char *wp, int c));
  228. void     tfree         ARGS((struct op *t, Area *ap));
  229. /* var.c */
  230. void     newblock     ARGS((void));
  231. void     popblock     ARGS((void));
  232. struct tbl *    global     ARGS((char *n));
  233. struct tbl *    local     ARGS((char *n));
  234. char *    strval         ARGS((struct tbl *vp));
  235. long     intval         ARGS((struct tbl *vp));
  236. void     setstr         ARGS((struct tbl *vq, char *s));
  237. struct tbl *    strint     ARGS((struct tbl *vq, struct tbl *vp));
  238. void     setint         ARGS((struct tbl *vq, long n));
  239. int     import         ARGS((char *thing));
  240. struct tbl *    typeset     ARGS((char *var, int set, int clr));
  241. void     unset         ARGS((struct tbl *vp));
  242. int     isassign     ARGS((char *s));
  243. char **    makenv         ARGS((void));
  244. #ifdef amigaos
  245. void    blk_copy     ARGS((struct block *src));
  246. #endif
  247. /* version.c */
  248. /* vi.c */
  249. void     vi_reset     ARGS((char *buf, int len));
  250. int     vi_hook         ARGS((int ch));
  251. int     save_cbuf     ARGS((void));
  252. int     restore_cbuf     ARGS((void));
  253. int     x_vi         ARGS((char *buf, size_t len));
  254. int     getch         ARGS((void));
  255. char **    globstr         ARGS((char *stuff));
  256.  
  257.  
  258.