[comp.sources.misc] v09i068: quick reference to prototypes for libc

allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc) (12/17/89)

Posting-number: Volume 9, Issue 68
Submitted-by: dold@mitisft.Convergent.COM (Clarence Dold)
Archive-name: libc.h

#! /bin/sh
# This file was wrapped with "dummyshar".  "sh" this file to extract.
# Contents:  libc.h
echo extracting 'libc.h'
if test -f 'libc.h' -a -z "$1"; then echo Not overwriting 'libc.h'; else
sed 's/^X//' << \EOF > 'libc.h'
X/* libc.h *
X * This is a file that I created largely by hand, with some assistance
X * from the 'mkproto' posted a while back.
X * I use it as an on-line reference, as well as having it printed in
X * little tiny print.
X * Clarence A Dold - dold@tsmiti.Convergent.COM
X */
X
Xlong a64l ( char *s );
Xint abort ( void );
Xint abs ( int arg );
Xint ascftime ( char *buf , char *format , struct tm *tm );
Xchar *asctime ( struct tm *t );
Xint _assert ( char *assertion , char *filename , int line_num );
XPOINTER bsearch ( POINTER key , POINTER base , unsigned nel , unsigned width ,
X	int (*compar )());
Xchar *calloc ( unsigned num , unsigned size );
Xint cftime ( char *buf , char *format , time_t *t );
Xvoid clearerr ( FILE *iop );
Xlong clock ( void );
Xint closedir ( DIR *dirp );
Xchar *crypt ( char *pw , char *salt );
Xchar *ctermid ( char *s );
Xchar *ctime ( time_t *t );
Xchar *cuserid ( char *s );
Xint _doprnt ( char *format , va_list args , FILE *iop );
Xint _doscan ( FILE *iop , unsigned char *fmt , va_list va_alist );
Xdouble drand48 ( void );
Xint dup2 ( int fildes , int fildes2 );
Xchar *ecvt ( double value , int ndigit , int *decpt , int *sign );
Xvoid encrypt ( char *block , int fake );
Xvoid endgrent ( void );
Xvoid endpwent ( void );
Xint endutent ( void );
Xint evnowait ( char **tag , char **datum );
Xint evwait ( char **tag , char **datum );
Xint exAllocExch ( void );
Xint exCall ( struct request *addr );
Xint __ex_CALL ( struct rqheader *pRq );
Xint exCheck ( int ex , struct msgret *addr );
Xint exCnxSendOnDealloc ( reqdes_t reqdes );
Xint exCpRequest ( reqdes_t reqdes , struct request *addr );
Xint exCpResponse ( reqdes_t reqdes , char *addr );
Xint exDeallocExch ( int ex );
Xint exQueryDfltRespExch ( void );
Xint exRequest ( struct request *addr );
Xint exRespond ( reqdes_t reqdes , struct request *addr );
Xint exSMRequest ( struct request *addr );
Xint exSendOnDealloc ( struct request *addr );
Xint exServeRq ( int ex , int req );
Xint exWait ( int ex , struct msgret *addr );
Xint execl ( char *name , char *argl );
Xint execl ( char *name , char *args );
Xint execle ( char *file , char *args );
Xint execle ( char *name , char *argl );
Xint execlp ( char *name , char *argv );
Xint execv ( char *file , char **argv );
Xint execv ( char *name , char **argv );
Xint execvp ( char *name , char **argv );
Xint exit ( int status );
Xint fclose ( FILE *iop );
Xchar *fcvt ( double value , int ndigit , int *decpt , int *sign );
XFILE *fdopen ( int fd , char *mode );
Xint fflush ( FILE *iop );
Xint fgetc ( FILE *fp );
Xchar *fgets ( char *ptr , int size , FILE *iop );
Xstruct group *fgetgrent ( FILE *f );
Xstruct passwd *fgetpwent ( FILE *f );
XFILE *fopen ( char *file , char *mode );
Xint fprintf ( FILE *iop , char *format , int va_alist );
Xint fputc ( int c , FILE *fp );
Xint fputs ( char *ptr , FILE *iop );
Xint fread ( char *ptr , size_t size , int count , FILE *iop );
Xvoid free ( char *ap );
XFILE *freopen ( char *file , char *mode , FILE *iop );
Xdouble frexp ( double value , int *eptr );
Xint fscanf ( FILE *iop , char *fmt , int va_alist );
Xint fseek ( FILE *iop , long offset , int ptrname );
Xlong ftell ( FILE *iop );
Xkey_t ftok ( char *path , int id );
Xint ftw ( char *path , int (*fn )(), int depth );
Xint fwrite ( char *ptr , size_t size , int count , FILE *iop );
Xchar *gcvt ( double number , int ndigit , char *buf );
Xchar *getcwd ( char *arg1 , int arg2 );
Xint gdebug ( char *format , int arg1 , int arg2 , int arg3 , int arg4 ,
X	int arg5 , int arg6 );
Xint getchar ( void );
Xchar *getenv ( char *name );
Xchar *getlogin ( void );
Xint getopt ( int argc , char **argv , char *opts );
Xchar *getpass ( char *prompt );
Xint getpgrp ( void );
Xint getpw ( int uid , char buf []);
Xstruct group *getgrent ( void );
Xstruct group *getgrgid ( int gid );
Xstruct group *getgrnam ( char *name );
Xstruct passwd *getpwent ( void );
Xstruct passwd *getpwnam ( char *name );
Xstruct passwd *getpwuid ( int uid );
Xchar *gets ( char *ptr );
Xstruct utmp *getutent ( void );
Xstruct utmp *getutid ( struct utmp *entry );
Xstruct utmp *getutline ( struct utmp *entry );
Xchar *getutmp ( void );
Xint getw ( FILE *stream );
Xstruct tm *gmtime ( time_t *tim );
Xint gsignal ( int sig );
Xint hcreate ( int size );
Xvoid hdestroy ( void );
Xint int ( *hcompar );
XENTRY *hsearch ( ENTRY item , ACTION action );
Xlong irand48 ( unsigned int m );
Xint isatty ( int f );
Xlong krand48 ( unsigned short *xsubi , unsigned int m );
Xvoid l3tol ( long *lp , char *cp , int n );
Xchar *l64a ( long lg );
Xvoid lcong48 ( unsigned short param [7 ]);
Xdouble ldexp ( double value , int exp );
XPOINTER lfind ( POINTER key , POINTER base , unsigned *nelp ,
X	unsigned width , int (*compar )());
Xstruct tm *localtime ( time_t *tim );
Xint lockf ( int fildes , int function , long size );
Xlong lrand48 ( void );
XPOINTER lsearch ( POINTER key , POINTER base , unsigned *nelp ,
X	unsigned width , int (*compar )());
Xvoid ltol3 ( char *cp , long *lp , int n );
Xchar *ltostr ( long value , char *ptr );
Xint main ( void );
Xchar *malloc ( unsigned nbytes );
Xchar *memccpy ( char *s1 , char *s2 , int c , int n );
Xchar *memchr ( char *sp , int c , int n );
Xint memcmp ( char *s1 , char *s2 , int n );
Xchar *memcpy ( char *s1 , char *s2 , int n );
Xchar *memset ( char *sp , int c , int n );
Xchar *mktemp ( char *as );
Xdouble modf ( double value , double *iptr );
Xvoid monitor ( char *lowpc , char *highpc , WORD *buffer , int bufsize ,
X	int nfunc );
Xlong mrand48 ( void );
Xint msgctl ( int msqid , int cmd , struct msqid_ds *buf );
Xint msgget ( key_t key , int msgflg );
Xint msgrcv ( int msqid , struct msgbuf *msgp , int msgsz , long msgtyp ,
X	int msgflg );
Xint msgsnd ( int msqid , struct msgbuf *msgp , int msgsz , int msgflg );
Xvoid nap ( int ticks );
Xint nlist ( char *name , struct nlist *list );
Xint notify ( ushort type , char *tag , char *arg );
Xint old_tolower ( int c );
Xint old_toupper ( int c );
XDIR *opendir ( char *filename );
Xint pclose ( FILE *ptr );
Xvoid perror ( char *s );
XFILE *popen ( char *cmd , char *mode );
Xint printf ( char *format , int va_alist );
Xdouble ptod ( long w1 , long low , int lowlen , int dec_exp , int sign );
Xstruct utmp *pututline ( struct utmp *entry );
Xint putchar ( int c );
Xint putenv ( char *change );
Xint putpwent ( struct passwd *p , FILE *f );
Xint puts ( char *ptr );
Xint putw ( int w , FILE *stream );
Xvoid qsort ( char *a , unsigned n , unsigned es , int (*fc )());
Xint rand ( void );
Xchar *realloc ( char *p , unsigned nbytes );
Xstruct dirent *readdir ( DIR *dirp );
Xvoid rewind ( FILE *iop );
Xint scanf ( char *fmt , int va_alist );
Xvoid seekdir ( DIR *dirp , long loc );
Xstruct sembuf ( *sops );
Xint semctl ( int semid , int semnum , int cmd , int arg );
Xvoid setbuf ( FILE *iop , char *buf );
Xint setchrclass ( char *ccname );
Xvoid setgrent ( void );
Xvoid setkey ( char *key );
Xint setpgrp ( void );
Xvoid setpwent ( void );
Xint setuname ( struct utsname *name );
Xint setutent ( void );
Xint setvbuf ( FILE *iop , char *buf , int type , int size );
Xchar *shmat ( int shmid , char *shmaddr , int shmflg );
Xint shmctl ( int shmid , int cmd , struct shmid_ds *buf );
Xint shmdt ( char *shmaddr );
Xint shmget ( key_t key , int size , int shmflg );
Xunsigned short *seed48 ( unsigned short seed16v [3 ]);
Xunsigned sleep ( unsigned sleep_tm );
Xint spawnlp ( int apnum , char *directory , char *name , char *args );
Xint spawnvp ( int apnum , char *directory , char *name , char **argv );
Xint sprintf ( char *string , char *format , int va_alist );
Xint spwait ( int pid , int *stat_loc );
Xvoid srand ( unsigned x );
Xvoid srand48 ( long seedval );
Xint sscanf ( char *str , char *fmt , int va_alist );
Xint stime ( long *tp );
Xchar *strcat ( char *s1 , char *s2 );
Xchar *strchr ( char *sp , int c );
Xint strcmp ( char *s1 , char *s2 );
Xchar *strcpy ( char *s1 , char *s2 );
Xint strcspn ( char *string , char *charset );
Xchar *strdup ( char *s1 );
Xint strlen ( char *s );
Xchar *strncat ( char *s1 , char *s2 , n );
Xint strncmp ( char *s1 , char *s2 , n );
Xchar *strncpy ( char *s1 , char *s2 , int n );
Xchar *strpbrk ( char *string , char *brkset );
Xchar *strrchr ( char *sp , int c );
Xint strspn ( char *string , char *charset );
Xdouble strtod ( char *p , char **ptr );
Xchar *strtok ( char *string , char *sepset );
Xlong strtol ( char *str , char **ptr , int base );
Xvoid swab ( char *pf , char *pt , int n );
Xint system ( char *s );
XNODE *tdelete ( POINTER key , NODE **rootp , int (*compar )());
Xlong tell ( int f );
Xlong telldir ( DIR *dirp );
Xchar *tempnam ( char *dir , char *pfx );
XNODE *tfind ( POINTER key , NODE **rootp , int (*compar )());
XFILE *tmpfile ( void );
Xchar *tmpnam ( char *s );
Xint tolower ( int c );
Xint toupper ( int c );
XNODE *tsearch ( POINTER key , NODE **rootp , int (*compar )());
Xchar *ttyname ( int f );
Xint ttyslot ( void );
Xvoid twalk ( NODE *root , void (*action )());
Xvoid tzset ( void );
Xint uname ( struct utsname *name );
Xint ungetc ( int c , FILE *iop );
Xint unnotify ( ushort type , char *arg );
Xint ustat ( int dev , struct ustat *buf );
Xint utmpname ( char *newfile );
Xint vfprintf ( FILE *iop , char *format , va_list ap );
Xint vprintf ( char *format , va_list ap );
Xint vsprintf ( char *string , char *format , va_list ap );
EOF
chars=`wc -c < 'libc.h'`
if test $chars !=     9134; then echo 'libc.h' is $chars characters, should be     9134 characters!; fi
fi
exit 0
-- 
---
Clarence A Dold - dold@tsmiti.Convergent.COM            (408) 435-5293
               ...pyramid!ctnews!tsmiti!dold        FAX (408) 435-3105
               P.O.Box 6685, San Jose, CA 95150-6685         MS#10-007