home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / util / pdksh-4.5.lha / pdksh-4.5 / sh / proto.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-01  |  8.1 KB  |  249 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.1 1992/04/25 08:29:02 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. /* emacs.c */
  83. int     x_emacs         ARGS((char *buf, size_t len));
  84. void     x_redraw     ARGS((int limit));
  85. void     x_bind         ARGS((char *a1, char *a2, int macro));
  86. void     x_init_emacs     ARGS((void));
  87. void     x_emacs_keys     ARGS((int erase, int kill, int werase, int intr, int quit));
  88. char *    x_lastcp     ARGS((void));
  89. /* eval.c */
  90. char *    substitute     ARGS((char const *cp, int f));
  91. char **    eval         ARGS((char **ap, int f));
  92. char *    evalstr         ARGS((char *cp, int f));
  93. /* exec.c */
  94. int     execute         ARGS((struct op *t, volatile int flags));
  95. int     shcomexec     ARGS((char **wp));
  96. int     define         ARGS((char *name, struct op *t));
  97. int     builtin         ARGS((char *name, int (*func)()));
  98. struct tbl *    findcom     ARGS((char *name, int insert));
  99. int     flushcom     ARGS((int all));
  100. char *    search         ARGS((char *name, char *path, int mode));
  101. /* expr.c */
  102. void     evalerr         ARGS((char *err));
  103. long     evaluate     ARGS((const char *expr));
  104. /* getopts.c */
  105. void     resetopts     ARGS((void));
  106. int     c_getopts     ARGS((char **wp));
  107. /* history.c */
  108. int     c_fc          ARGS((register char **wp));
  109. void     histbackup     ARGS((void));
  110. void     histsave     ARGS((char *cmd));
  111. char **    histget          ARGS((char *str));
  112. char *    histrpl          ARGS((char *s, char *pat, char *rep, int global));
  113. void     hist_init     ARGS((Source *s));
  114. void     hist_finish     ARGS((void));
  115. char **    histpos          ARGS((void));
  116. int     histN          ARGS((void));
  117. int     histnum          ARGS((int n));
  118. char *    findhist     ARGS((int start, int fwd, char *str));
  119. /* io.c */
  120. int     errorf         ARGS((const char *fmt, ...));
  121. int     shellf         ARGS((const char *fmt, ...));
  122. void     fopenshf     ARGS((int fd));
  123. void     flushshf     ARGS((int fd));
  124. int     savefd         ARGS((int fd));
  125. void     restfd         ARGS((int fd, int ofd));
  126. void     openpipe     ARGS((int *pv));
  127. void     closepipe     ARGS((int *pv));
  128. struct temp *    maketemp ARGS((Area *ap));
  129. /* jobs.c */
  130. void     j_init         ARGS((void));
  131. void     j_exit         ARGS((void));
  132. void     j_change     ARGS((void));
  133. int     exchild         ARGS((struct op *t, int flags));
  134. int     waitlast     ARGS((void));
  135. int     j_reapchld     ARGS((void));
  136. int     j_reap         ARGS((void));
  137. int     waitfor         ARGS((int job));
  138. void     j_kill         ARGS((int job, int sig));
  139. int     j_resume     ARGS((int job, int bg));
  140. void     j_jobs         ARGS((void));
  141. void     j_notify     ARGS((void));
  142. int     j_lookup     ARGS((char *cp));
  143. int     j_stopped     ARGS((void));
  144. /* lex.c */
  145. int     yylex         ARGS((int cf));
  146. int     gethere         ARGS((void));
  147. void     yyerror         ARGS((const char *msg));
  148. Source * pushs         ARGS((int type));
  149. int     pprompt         ARGS((char *cp));
  150. /* mail.c */
  151. void     mcheck         ARGS((void));
  152. void     mbset         ARGS((char *p));
  153. void     mpset         ARGS((char *mptoparse));
  154. void     mprint         ARGS((void));
  155. /* main.c */
  156. int     main         ARGS((int argc, char **argv, char **envp));
  157. int     include         ARGS((char *name));
  158. #if 0
  159. int     command         ARGS((char *comm));
  160. #endif
  161. int     shell         ARGS((Source *s));
  162. void     leave         ARGS((int rv));
  163. int     error         ARGS((void));
  164. int     unwind         ARGS((void));
  165. int     newenv         ARGS((int type));
  166. int     quitenv         ARGS((void));
  167. void     aerror         ARGS((Area *ap, const char *msg));
  168. /* misc.c */
  169. void     setctypes     ARGS((/* const */ char *s, int t));
  170. void     initctypes     ARGS((void));
  171. char *    ulton         ARGS((unsigned long n, int base));
  172. char *    strsave         ARGS((char *s, Area *ap));
  173. int     option         ARGS((const char *n));
  174. char *    getoptions     ARGS((void));
  175. void     printoptions     ARGS((void));
  176. int     getn         ARGS((char *as));
  177. char *    strerror     ARGS((int i));
  178. int     gmatch         ARGS((char *s, char *p));
  179. void     qsortp         ARGS((void **base, size_t n, int (*f)()));
  180. int     qsort1         ARGS((void **base, void **lim, int (*f)()));
  181. int     xstrcmp         ARGS((void *p1, void *p2));
  182. void     cleanpath     ARGS((char *pwd, char *dir, char *clean));
  183. /* syn.c */
  184. int     yyparse         ARGS((void));
  185. int     keywords     ARGS((void));
  186. struct op * compile     ARGS((Source *s));
  187. /* table.c */
  188. unsigned int     hash     ARGS((char *n));
  189. void     tinit         ARGS((struct table *tp, Area *ap));
  190. struct tbl *    tsearch     ARGS((struct table *tp, char *n, unsigned int h));
  191. struct tbl *    tenter     ARGS((struct table *tp, char *n, unsigned int h));
  192. void     tdelete         ARGS((struct tbl *p));
  193. void     twalk         ARGS((struct table *tp));
  194. struct tbl *    tnext     ARGS((void));
  195. struct tbl **    tsort     ARGS((struct table *tp));
  196. #ifdef amigados
  197. void    tbl_copy     ARGS((struct table *src, struct table *dst, Area *ap));
  198. #endif
  199. /* trace.c */
  200. /* trap.c */
  201. Trap *    gettrap         ARGS((char *name));
  202. void     trapsig         ARGS((int i));
  203. int     runtraps     ARGS((void));
  204. int     runtrap         ARGS((Trap *p));
  205. int     cleartraps     ARGS((void));
  206. int     ignoresig     ARGS((int i));
  207. int     restoresigs     ARGS((void));
  208. #ifdef amigados
  209. void    child_dup_traps     ARGS((void));
  210. #endif
  211. /* tree.c */
  212. void     ptree         ARGS((struct op *t, FILE *f));
  213. int     pioact         ARGS((FILE *f, struct ioword *iop));
  214. int     fptreef         ARGS((FILE *f, char *fmt, ...));
  215. int     snptreef     ARGS((char *s, int n, char *fmt, ...));
  216. struct op *    tcopy     ARGS((struct op *t, Area *ap));
  217. char *    wdcopy         ARGS((char *wp, Area *ap));
  218. char *    wdscan         ARGS((char *wp, int c));
  219. void     tfree         ARGS((struct op *t, Area *ap));
  220. /* var.c */
  221. void     newblock     ARGS((void));
  222. void     popblock     ARGS((void));
  223. struct tbl *    global     ARGS((char *n));
  224. struct tbl *    local     ARGS((char *n));
  225. char *    strval         ARGS((struct tbl *vp));
  226. long     intval         ARGS((struct tbl *vp));
  227. void     setstr         ARGS((struct tbl *vq, char *s));
  228. struct tbl *    strint     ARGS((struct tbl *vq, struct tbl *vp));
  229. void     setint         ARGS((struct tbl *vq, long n));
  230. int     import         ARGS((char *thing));
  231. struct tbl *    typeset     ARGS((char *var, int set, int clr));
  232. void     unset         ARGS((struct tbl *vp));
  233. int     isassign     ARGS((char *s));
  234. char **    makenv         ARGS((void));
  235. #ifdef amigados
  236. void    blk_copy     ARGS((struct block *src));
  237. #endif
  238. /* version.c */
  239. /* vi.c */
  240. void     vi_reset     ARGS((char *buf, int len));
  241. int     vi_hook         ARGS((int ch));
  242. int     save_cbuf     ARGS((void));
  243. int     restore_cbuf     ARGS((void));
  244. int     x_vi         ARGS((char *buf, size_t len));
  245. int     getch         ARGS((void));
  246. char **    globstr         ARGS((char *stuff));
  247.  
  248.  
  249.