home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / compsrcs / misc / volume09 / libc.h < prev    next >
Encoding:
Internet Message Format  |  1991-08-27  |  10.4 KB

  1. From decwrl!sun-barr!cs.utexas.edu!uunet!allbery Mon Dec 18 13:05:32 PST 1989
  2. Article 1234 of comp.sources.misc:
  3. Path: decwrl!sun-barr!cs.utexas.edu!uunet!allbery
  4. From: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  5. Newsgroups: comp.sources.misc
  6. Subject: v09i068: quick reference to prototypes for libc
  7. Message-ID: <73845@uunet.UU.NET>
  8. Date: 16 Dec 89 18:16:17 GMT
  9. Sender: allbery@uunet.UU.NET
  10. Reply-To: dold@mitisft.Convergent.COM (Clarence Dold)
  11. Organization: Convergent Technologies, San Jose, CA
  12. Lines: 253
  13. Approved: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  14.  
  15. Posting-number: Volume 9, Issue 68
  16. Submitted-by: dold@mitisft.Convergent.COM (Clarence Dold)
  17. Archive-name: libc.h
  18.  
  19. #! /bin/sh
  20. # This file was wrapped with "dummyshar".  "sh" this file to extract.
  21. # Contents:  libc.h
  22. echo extracting 'libc.h'
  23. if test -f 'libc.h' -a -z "$1"; then echo Not overwriting 'libc.h'; else
  24. sed 's/^X//' << \EOF > 'libc.h'
  25. X/* libc.h *
  26. X * This is a file that I created largely by hand, with some assistance
  27. X * from the 'mkproto' posted a while back.
  28. X * I use it as an on-line reference, as well as having it printed in
  29. X * little tiny print.
  30. X * Clarence A Dold - dold@tsmiti.Convergent.COM
  31. X */
  32. X
  33. Xlong a64l ( char *s );
  34. Xint abort ( void );
  35. Xint abs ( int arg );
  36. Xint ascftime ( char *buf , char *format , struct tm *tm );
  37. Xchar *asctime ( struct tm *t );
  38. Xint _assert ( char *assertion , char *filename , int line_num );
  39. XPOINTER bsearch ( POINTER key , POINTER base , unsigned nel , unsigned width ,
  40. X    int (*compar )());
  41. Xchar *calloc ( unsigned num , unsigned size );
  42. Xint cftime ( char *buf , char *format , time_t *t );
  43. Xvoid clearerr ( FILE *iop );
  44. Xlong clock ( void );
  45. Xint closedir ( DIR *dirp );
  46. Xchar *crypt ( char *pw , char *salt );
  47. Xchar *ctermid ( char *s );
  48. Xchar *ctime ( time_t *t );
  49. Xchar *cuserid ( char *s );
  50. Xint _doprnt ( char *format , va_list args , FILE *iop );
  51. Xint _doscan ( FILE *iop , unsigned char *fmt , va_list va_alist );
  52. Xdouble drand48 ( void );
  53. Xint dup2 ( int fildes , int fildes2 );
  54. Xchar *ecvt ( double value , int ndigit , int *decpt , int *sign );
  55. Xvoid encrypt ( char *block , int fake );
  56. Xvoid endgrent ( void );
  57. Xvoid endpwent ( void );
  58. Xint endutent ( void );
  59. Xint evnowait ( char **tag , char **datum );
  60. Xint evwait ( char **tag , char **datum );
  61. Xint exAllocExch ( void );
  62. Xint exCall ( struct request *addr );
  63. Xint __ex_CALL ( struct rqheader *pRq );
  64. Xint exCheck ( int ex , struct msgret *addr );
  65. Xint exCnxSendOnDealloc ( reqdes_t reqdes );
  66. Xint exCpRequest ( reqdes_t reqdes , struct request *addr );
  67. Xint exCpResponse ( reqdes_t reqdes , char *addr );
  68. Xint exDeallocExch ( int ex );
  69. Xint exQueryDfltRespExch ( void );
  70. Xint exRequest ( struct request *addr );
  71. Xint exRespond ( reqdes_t reqdes , struct request *addr );
  72. Xint exSMRequest ( struct request *addr );
  73. Xint exSendOnDealloc ( struct request *addr );
  74. Xint exServeRq ( int ex , int req );
  75. Xint exWait ( int ex , struct msgret *addr );
  76. Xint execl ( char *name , char *argl );
  77. Xint execl ( char *name , char *args );
  78. Xint execle ( char *file , char *args );
  79. Xint execle ( char *name , char *argl );
  80. Xint execlp ( char *name , char *argv );
  81. Xint execv ( char *file , char **argv );
  82. Xint execv ( char *name , char **argv );
  83. Xint execvp ( char *name , char **argv );
  84. Xint exit ( int status );
  85. Xint fclose ( FILE *iop );
  86. Xchar *fcvt ( double value , int ndigit , int *decpt , int *sign );
  87. XFILE *fdopen ( int fd , char *mode );
  88. Xint fflush ( FILE *iop );
  89. Xint fgetc ( FILE *fp );
  90. Xchar *fgets ( char *ptr , int size , FILE *iop );
  91. Xstruct group *fgetgrent ( FILE *f );
  92. Xstruct passwd *fgetpwent ( FILE *f );
  93. XFILE *fopen ( char *file , char *mode );
  94. Xint fprintf ( FILE *iop , char *format , int va_alist );
  95. Xint fputc ( int c , FILE *fp );
  96. Xint fputs ( char *ptr , FILE *iop );
  97. Xint fread ( char *ptr , size_t size , int count , FILE *iop );
  98. Xvoid free ( char *ap );
  99. XFILE *freopen ( char *file , char *mode , FILE *iop );
  100. Xdouble frexp ( double value , int *eptr );
  101. Xint fscanf ( FILE *iop , char *fmt , int va_alist );
  102. Xint fseek ( FILE *iop , long offset , int ptrname );
  103. Xlong ftell ( FILE *iop );
  104. Xkey_t ftok ( char *path , int id );
  105. Xint ftw ( char *path , int (*fn )(), int depth );
  106. Xint fwrite ( char *ptr , size_t size , int count , FILE *iop );
  107. Xchar *gcvt ( double number , int ndigit , char *buf );
  108. Xchar *getcwd ( char *arg1 , int arg2 );
  109. Xint gdebug ( char *format , int arg1 , int arg2 , int arg3 , int arg4 ,
  110. X    int arg5 , int arg6 );
  111. Xint getchar ( void );
  112. Xchar *getenv ( char *name );
  113. Xchar *getlogin ( void );
  114. Xint getopt ( int argc , char **argv , char *opts );
  115. Xchar *getpass ( char *prompt );
  116. Xint getpgrp ( void );
  117. Xint getpw ( int uid , char buf []);
  118. Xstruct group *getgrent ( void );
  119. Xstruct group *getgrgid ( int gid );
  120. Xstruct group *getgrnam ( char *name );
  121. Xstruct passwd *getpwent ( void );
  122. Xstruct passwd *getpwnam ( char *name );
  123. Xstruct passwd *getpwuid ( int uid );
  124. Xchar *gets ( char *ptr );
  125. Xstruct utmp *getutent ( void );
  126. Xstruct utmp *getutid ( struct utmp *entry );
  127. Xstruct utmp *getutline ( struct utmp *entry );
  128. Xchar *getutmp ( void );
  129. Xint getw ( FILE *stream );
  130. Xstruct tm *gmtime ( time_t *tim );
  131. Xint gsignal ( int sig );
  132. Xint hcreate ( int size );
  133. Xvoid hdestroy ( void );
  134. Xint int ( *hcompar );
  135. XENTRY *hsearch ( ENTRY item , ACTION action );
  136. Xlong irand48 ( unsigned int m );
  137. Xint isatty ( int f );
  138. Xlong krand48 ( unsigned short *xsubi , unsigned int m );
  139. Xvoid l3tol ( long *lp , char *cp , int n );
  140. Xchar *l64a ( long lg );
  141. Xvoid lcong48 ( unsigned short param [7 ]);
  142. Xdouble ldexp ( double value , int exp );
  143. XPOINTER lfind ( POINTER key , POINTER base , unsigned *nelp ,
  144. X    unsigned width , int (*compar )());
  145. Xstruct tm *localtime ( time_t *tim );
  146. Xint lockf ( int fildes , int function , long size );
  147. Xlong lrand48 ( void );
  148. XPOINTER lsearch ( POINTER key , POINTER base , unsigned *nelp ,
  149. X    unsigned width , int (*compar )());
  150. Xvoid ltol3 ( char *cp , long *lp , int n );
  151. Xchar *ltostr ( long value , char *ptr );
  152. Xint main ( void );
  153. Xchar *malloc ( unsigned nbytes );
  154. Xchar *memccpy ( char *s1 , char *s2 , int c , int n );
  155. Xchar *memchr ( char *sp , int c , int n );
  156. Xint memcmp ( char *s1 , char *s2 , int n );
  157. Xchar *memcpy ( char *s1 , char *s2 , int n );
  158. Xchar *memset ( char *sp , int c , int n );
  159. Xchar *mktemp ( char *as );
  160. Xdouble modf ( double value , double *iptr );
  161. Xvoid monitor ( char *lowpc , char *highpc , WORD *buffer , int bufsize ,
  162. X    int nfunc );
  163. Xlong mrand48 ( void );
  164. Xint msgctl ( int msqid , int cmd , struct msqid_ds *buf );
  165. Xint msgget ( key_t key , int msgflg );
  166. Xint msgrcv ( int msqid , struct msgbuf *msgp , int msgsz , long msgtyp ,
  167. X    int msgflg );
  168. Xint msgsnd ( int msqid , struct msgbuf *msgp , int msgsz , int msgflg );
  169. Xvoid nap ( int ticks );
  170. Xint nlist ( char *name , struct nlist *list );
  171. Xint notify ( ushort type , char *tag , char *arg );
  172. Xint old_tolower ( int c );
  173. Xint old_toupper ( int c );
  174. XDIR *opendir ( char *filename );
  175. Xint pclose ( FILE *ptr );
  176. Xvoid perror ( char *s );
  177. XFILE *popen ( char *cmd , char *mode );
  178. Xint printf ( char *format , int va_alist );
  179. Xdouble ptod ( long w1 , long low , int lowlen , int dec_exp , int sign );
  180. Xstruct utmp *pututline ( struct utmp *entry );
  181. Xint putchar ( int c );
  182. Xint putenv ( char *change );
  183. Xint putpwent ( struct passwd *p , FILE *f );
  184. Xint puts ( char *ptr );
  185. Xint putw ( int w , FILE *stream );
  186. Xvoid qsort ( char *a , unsigned n , unsigned es , int (*fc )());
  187. Xint rand ( void );
  188. Xchar *realloc ( char *p , unsigned nbytes );
  189. Xstruct dirent *readdir ( DIR *dirp );
  190. Xvoid rewind ( FILE *iop );
  191. Xint scanf ( char *fmt , int va_alist );
  192. Xvoid seekdir ( DIR *dirp , long loc );
  193. Xstruct sembuf ( *sops );
  194. Xint semctl ( int semid , int semnum , int cmd , int arg );
  195. Xvoid setbuf ( FILE *iop , char *buf );
  196. Xint setchrclass ( char *ccname );
  197. Xvoid setgrent ( void );
  198. Xvoid setkey ( char *key );
  199. Xint setpgrp ( void );
  200. Xvoid setpwent ( void );
  201. Xint setuname ( struct utsname *name );
  202. Xint setutent ( void );
  203. Xint setvbuf ( FILE *iop , char *buf , int type , int size );
  204. Xchar *shmat ( int shmid , char *shmaddr , int shmflg );
  205. Xint shmctl ( int shmid , int cmd , struct shmid_ds *buf );
  206. Xint shmdt ( char *shmaddr );
  207. Xint shmget ( key_t key , int size , int shmflg );
  208. Xunsigned short *seed48 ( unsigned short seed16v [3 ]);
  209. Xunsigned sleep ( unsigned sleep_tm );
  210. Xint spawnlp ( int apnum , char *directory , char *name , char *args );
  211. Xint spawnvp ( int apnum , char *directory , char *name , char **argv );
  212. Xint sprintf ( char *string , char *format , int va_alist );
  213. Xint spwait ( int pid , int *stat_loc );
  214. Xvoid srand ( unsigned x );
  215. Xvoid srand48 ( long seedval );
  216. Xint sscanf ( char *str , char *fmt , int va_alist );
  217. Xint stime ( long *tp );
  218. Xchar *strcat ( char *s1 , char *s2 );
  219. Xchar *strchr ( char *sp , int c );
  220. Xint strcmp ( char *s1 , char *s2 );
  221. Xchar *strcpy ( char *s1 , char *s2 );
  222. Xint strcspn ( char *string , char *charset );
  223. Xchar *strdup ( char *s1 );
  224. Xint strlen ( char *s );
  225. Xchar *strncat ( char *s1 , char *s2 , n );
  226. Xint strncmp ( char *s1 , char *s2 , n );
  227. Xchar *strncpy ( char *s1 , char *s2 , int n );
  228. Xchar *strpbrk ( char *string , char *brkset );
  229. Xchar *strrchr ( char *sp , int c );
  230. Xint strspn ( char *string , char *charset );
  231. Xdouble strtod ( char *p , char **ptr );
  232. Xchar *strtok ( char *string , char *sepset );
  233. Xlong strtol ( char *str , char **ptr , int base );
  234. Xvoid swab ( char *pf , char *pt , int n );
  235. Xint system ( char *s );
  236. XNODE *tdelete ( POINTER key , NODE **rootp , int (*compar )());
  237. Xlong tell ( int f );
  238. Xlong telldir ( DIR *dirp );
  239. Xchar *tempnam ( char *dir , char *pfx );
  240. XNODE *tfind ( POINTER key , NODE **rootp , int (*compar )());
  241. XFILE *tmpfile ( void );
  242. Xchar *tmpnam ( char *s );
  243. Xint tolower ( int c );
  244. Xint toupper ( int c );
  245. XNODE *tsearch ( POINTER key , NODE **rootp , int (*compar )());
  246. Xchar *ttyname ( int f );
  247. Xint ttyslot ( void );
  248. Xvoid twalk ( NODE *root , void (*action )());
  249. Xvoid tzset ( void );
  250. Xint uname ( struct utsname *name );
  251. Xint ungetc ( int c , FILE *iop );
  252. Xint unnotify ( ushort type , char *arg );
  253. Xint ustat ( int dev , struct ustat *buf );
  254. Xint utmpname ( char *newfile );
  255. Xint vfprintf ( FILE *iop , char *format , va_list ap );
  256. Xint vprintf ( char *format , va_list ap );
  257. Xint vsprintf ( char *string , char *format , va_list ap );
  258. EOF
  259. chars=`wc -c < 'libc.h'`
  260. if test $chars !=     9134; then echo 'libc.h' is $chars characters, should be     9134 characters!; fi
  261. fi
  262. exit 0
  263. -- 
  264. ---
  265. Clarence A Dold - dold@tsmiti.Convergent.COM            (408) 435-5293
  266.                ...pyramid!ctnews!tsmiti!dold        FAX (408) 435-3105
  267.                P.O.Box 6685, San Jose, CA 95150-6685         MS#10-007
  268.  
  269.  
  270.