Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

201 lines
7.0 KiB

  1. /* $Source: /u/mark/src/pax/RCS/func.h,v $
  2. *
  3. * $Revision: 1.3 $
  4. *
  5. * func.h - function type and argument declarations
  6. *
  7. * DESCRIPTION
  8. *
  9. * This file contains function delcarations in both ANSI style
  10. * (function prototypes) and traditional style.
  11. *
  12. * AUTHOR
  13. *
  14. * Mark H. Colburn, NAPS International (mark@jhereg.mn.org)
  15. *
  16. * Sponsored by The USENIX Association for public distribution.
  17. *
  18. * Copyright (c) 1989 Mark H. Colburn.
  19. * All rights reserved.
  20. *
  21. * Redistribution and use in source and binary forms are permitted
  22. * provided that the above copyright notice and this paragraph are
  23. * duplicated in all such forms and that any documentation,
  24. * advertising materials, and other materials related to such
  25. * distribution and use acknowledge that the software was developed
  26. * by Mark H. Colburn and sponsored by The USENIX Association.
  27. *
  28. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  29. * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  30. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  31. */
  32. #ifndef _PAX_FUNC_H
  33. #define _PAX_FUNC_H
  34. /* Function Prototypes */
  35. #ifdef __STDC__
  36. extern Link *linkfrom(char *, Stat *);
  37. extern Link *linkto(char *, Stat *);
  38. extern char *mem_get(uint);
  39. extern char *mem_str(char *);
  40. extern char *strerror(int); /* Xn */
  41. extern int ar_read(void);
  42. extern int buf_read(char *, uint);
  43. extern int buf_skip(OFFSET);
  44. extern int create_archive(void);
  45. extern int dirneed(char *);
  46. extern void read_archive(void); /* Xn */
  47. extern int inentry(char *, Stat *);
  48. extern int lineget(FILE *, char *);
  49. extern int name_match(char *);
  50. extern int name_next(char *, Stat *);
  51. extern int nameopt(char *);
  52. extern int open_archive(int);
  53. extern int open_tty(void);
  54. extern int openin(char *, Stat *);
  55. extern int openout(char *, Stat *, Link *, int);
  56. extern void pass(char *); /* Xn */
  57. extern int passitem(char *, Stat *, int, char *);
  58. extern int read_header(char *, Stat *);
  59. extern int wildmat(char *, char *);
  60. extern void buf_allocate(OFFSET);
  61. extern void close_archive(void);
  62. extern void fatal(char *);
  63. extern void name_gather(void);
  64. extern void name_init(int, char **);
  65. extern void names_notfound(void);
  66. extern void next(int);
  67. extern int nextask(char *, char *, int);
  68. extern void outdata(int, char *, OFFSET);
  69. extern void outwrite(char *, uint);
  70. extern void passdata(char *, int, char *, int);
  71. extern void print_entry(char *, Stat *);
  72. extern void warn(char *, char *); /* Xn */
  73. extern void warnarch(char *, OFFSET);
  74. extern void write_eot(void);
  75. extern void get_archive_type(void);
  76. extern char *getenv(const char *);
  77. extern void *malloc(size_t); /* Xn */
  78. extern char *strcat(char *, const char *); /* Xn */
  79. extern char *strcpy(char *, const char *); /* Xn */
  80. extern char *strncpy(char *, const char *, size_t); /* Xn */
  81. extern SIG_T (*signal(int, SIG_T (*)(int)))(int); /* Xn */
  82. extern OFFSET lseek(int, OFFSET, int); /* Xn */
  83. extern struct group *getgrgid(gid_t); /* Xn */
  84. extern struct group *getgrnam(const char *); /* Xn */
  85. extern struct passwd *getpwuid(uid_t); /* Xn */
  86. extern struct tm *localtime(const time_t *); /* Xn */
  87. extern time_t time(time_t *); /* Xn */
  88. extern uint sleep(uint); /* Xn */
  89. extern void _exit(int); /* Xn */
  90. extern void exit(int); /* Xn */
  91. extern void free(void *); /* Xn */
  92. extern Link *islink(char *, Stat *);
  93. extern char *finduname(int);
  94. extern char *findgname(int);
  95. extern int findgid(char *); /* Xn */
  96. extern int get_header(char *, Stat *); /* Xn */
  97. extern int getopt(int argc, const char *const argv[], const char *optstring); /* Xn */
  98. extern void rpl_name(char *); /* Xn */
  99. extern int get_disposition(char *, char *); /* Xn */
  100. extern int get_newname(char *, int); /* Xn */
  101. # ifdef _POSIX_SOURCE /* Xn */
  102. extern int mkfifo(const char *, mode_t); /* Xn */
  103. # else /* Xn */
  104. extern int mknod(char *, int, ...); /* Xn */
  105. # endif /* Xn */
  106. extern int dirmake(char *, Stat *); /* Xn */
  107. extern int finduid(char *); /* Xn */
  108. extern void do_tar(int, char **); /* Xn */
  109. extern void do_cpio(int, char **); /* Xn */
  110. extern void add_replstr(char *); /* Xn */
  111. extern void append_archive(void); /* Xn */
  112. extern void linkleft(void); /* Xn */
  113. #else /* !__STDC__ */
  114. #pragma function("strcpy")
  115. #pragma function("strcat")
  116. extern Link *linkfrom();
  117. extern Link *linkto();
  118. extern char *mem_get();
  119. extern char *mem_str();
  120. extern char *strerror();
  121. extern int ar_read();
  122. extern int buf_read();
  123. extern int buf_skip();
  124. extern int create_archive();
  125. extern int dirneed();
  126. extern void read_archive(); /* Xn */
  127. extern int inentry();
  128. extern int lineget();
  129. extern int name_match();
  130. extern int name_next();
  131. extern int nameopt();
  132. extern int open_archive();
  133. extern int open_tty();
  134. extern int openin();
  135. extern int openout();
  136. extern void pass(); /* Xn */
  137. extern int passitem();
  138. extern int read_header();
  139. extern int wildmat();
  140. extern void buf_allocate();
  141. extern void close_archive();
  142. extern void fatal();
  143. extern void name_gather();
  144. extern void name_init();
  145. extern void names_notfound();
  146. extern void next();
  147. extern int nextask();
  148. extern void outdata();
  149. extern void outwrite();
  150. extern void passdata();
  151. extern void print_entry();
  152. extern void warn();
  153. extern void warnarch();
  154. extern void write_eot();
  155. extern void get_archive_type();
  156. extern char *getenv();
  157. extern char *malloc();
  158. extern char *strcat();
  159. extern char *strcpy();
  160. extern char *strncpy();
  161. extern SIG_T (*signal())();
  162. extern OFFSET lseek();
  163. extern struct group *getgrgid();
  164. extern struct group *getgrnam();
  165. extern struct passwd *getpwuid();
  166. extern struct tm *localtime();
  167. extern time_t time();
  168. extern uint sleep();
  169. extern void _exit();
  170. extern void exit();
  171. extern void free();
  172. extern Link *islink();
  173. extern char *finduname();
  174. extern char *findgname();
  175. extern int findgid();
  176. extern int get_header(); /* Xn */
  177. extern int getopt(); /* Xn */
  178. extern void rpl_name(); /* Xn */
  179. extern int get_disposition(); /* Xn */
  180. extern int get_newname(); /* Xn */
  181. # ifdef _POSIX_SOURCE /* Xn */
  182. extern int mkfifo(); /* Xn */
  183. # else /* Xn */
  184. extern int mknod(); /* Xn */
  185. # endif /* Xn */
  186. extern int dirmake(); /* Xn */
  187. extern int finduid(); /* Xn */
  188. extern void do_tar(); /* Xn */
  189. extern void do_cpio(); /* Xn */
  190. extern void add_replstr(); /* Xn */
  191. extern void append_archive(); /* Xn */
  192. extern void linkleft(); /* Xn */
  193. #endif /* __STDC__ */
  194. #endif /* _PAX_FUNC_H */