home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume9 / libc.h < prev    next >
Encoding:
Text File  |  1989-12-16  |  10.1 KB  |  262 lines

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