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