From: John Kohl Date: Thu, 10 May 1990 17:14:03 +0000 (+0000) Subject: various changes & such X-Git-Tag: krb5-1.0-alpha2~575 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4867c091113df90b7d383aa44d9c2148ddd8aba5;p=krb5.git various changes & such git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@830 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/fake-stdlib.h b/src/include/fake-stdlib.h index e0f15f568..1dff3d4d4 100644 --- a/src/include/fake-stdlib.h +++ b/src/include/fake-stdlib.h @@ -63,6 +63,9 @@ asctime(2) monitor(3) monstartup(3) + ctime(3) + gmtime(3) + localtime(3) */ /* /usr/lib/lint/llib-lc */ @@ -97,77 +100,47 @@ int getpagesize P((void )); int getpgrp P((int )); int getpid P((void )); int getppid P((void )); -int getsockname P((int , char *, int *)); -int getsockopt P((int , int , int , char *, int *)); uid_t getuid P((void )); int ioctl P((int , u_long , char *)); int kill P((int , int )); int killpg P((int , int )); -int link P((char *, char *)); int listen P((int , int )); -off_t lseek P((int , off_t , int )); -int madvise P((char *, int , int )); -int mmap P((char *, int , int , int , int , off_t )); -int mincore P((char *, int , char *)); -int mkdir P((char *, int )); -int mknod P((char *, int , int )); int mount P((int , char *, int , caddr_t *)); -int mprotect P((char *, int , int )); -int mremap P((char *, int , int , int , int )); -int munmap P((char *, int )); -int open P((char *, int , int )); int pipe P((int [2 ])); int profil P((char *, int , int , int )); int ptrace P((int , int , int *, int )); int quota P((int , int , int , char *)); int read P((int , char *, int )); -int readlink P((char *, char *, int )); int reboot P((int )); int recv P((int , char *, int , int )); -int rename P((char *, char *)); -int rmdir P((char *)); char *sbrk P((int )); -int send P((int , char *, int , int )); int setgroups P((int , int *)); int sethostid P((long )); int sethostname P((char *, int )); int setpgrp P((int , int )); -int setpriority P((int , int , int )); int setquota P((char *, char *)); int setregid P((int , int )); int setreuid P((int , int )); -int setsockopt P((int , int , int , char *, int )); int shutdown P((int , int )); -int sigblock P((int )); -int sigsetmask P((int )); -int sigpause P((int )); -int socket P((int , int , int )); -int socketpair P((int , int , int , int [2 ])); -char *stk P((char *)); -char *sstk P((int )); int swapon P((char *)); -int symlink P((char *, char *)); int sync P((void )); -int truncate P((char *, off_t )); int umask P((int )); int umount P((char *)); -int unlink P((char *)); int vfork P((void )); int vhangup P((void )); -int write P((int , char *, int )); +int write P((int , const char *, int )); int abs P((int )); int alarm P((unsigned )); double atof P((char *)); int atoi P((char *)); long atol P((char *)); int bcmp P((char *, char *, int )); -int bcopy P((char *, char *, int )); +int bcopy P((const char *, char *, int )); int bzero P((char *, int )); char *calloc P((unsigned , unsigned )); -int closelog P((void )); +void closelog P((void )); int creat P((char *, int )); char *crypt P((char *, char *)); -char *ctime P((long *)); char *ecvt P((double , int , int *, int *)); int encrypt P((char *, int )); int endfsent P((void )); @@ -200,40 +173,25 @@ struct fstab *getfstype P((char *)); struct group *getgrent P((void )); struct group *getgrgid P((int )); struct group *getgrnam P((char *)); -struct hostent *gethostbyaddr P((char *, int , int )); -struct hostent *gethostbyname P((char *)); -struct hostent *gethostent P((void )); char *getlogin P((void )); -struct netent *getnetbyaddr P((int , int )); -struct netent *getnetbyname P((char *)); -struct netent *getnetent P((void )); int getopt P((int , char **, char *)); char *getpass P((char *)); -struct protoent *getprotobyname P((char *)); -struct protoent *getprotobynumber P((int )); -struct protoent *getprotoent P((void )); int getpw P((int , char *)); struct passwd *getpwent P((void )); struct passwd *getpwuid P((int )); struct passwd *getpwnam P((char *)); -struct servent *getservbyname P((char *, char *)); -struct servent *getservbyport P((int , char *)); -struct servent *getservent P((void )); struct ttyent *getttynam P((char *)); char *getusershell P((void )); char *getwd P((char *)); -struct tm *gmtime P((long *)); u_long htonl P((u_long )); u_short htons P((unsigned int )); -char *index P((char *, int )); -u_long inet_addr P((char *)); -u_long inet_network P((char *)); +u_long inet_addr P((const char *)); +u_long inet_network P((const char *)); int initgroups P((char *, int )); char *initstate P((unsigned , char *, int )); int isatty P((int )); double ldexp P((double , int )); int longjmperror P((void )); -struct tm *localtime P((long *)); char *malloc P((unsigned )); char *memccpy P((char *, char *, int , int )); char *memchr P((char *, int , int )); @@ -248,9 +206,8 @@ int nice P((int )); struct ns_addr ns_addr P((char *)); u_long ntohl P((u_long )); u_short ntohs P((unsigned int )); -int openlog P((char *, int , int )); +void openlog P((const char *, int , int )); int pause P((void )); -int perror P((char *)); int psignal P((unsigned , char *)); int qsort P((char *, int , int , int (* )())); int rand P((void )); @@ -260,7 +217,6 @@ char *re_comp P((char *)); int re_exec P((char *)); char *realloc P((char *, unsigned )); int rexec P((char **, u_short , char *, char *, char *, int *)); -char *rindex P((char *, int )); int rresvport P((int *)); int ruserok P((char *, int , char *, char *)); int setegid P((gid_t )); @@ -269,7 +225,6 @@ int setfsent P((void )); int setgrent P((void )); int setgid P((gid_t )); int sethostent P((int )); -int sethostfile P((char *)); int setkey P((char *)); int setlogmask P((int )); int setnetent P((int )); @@ -286,24 +241,12 @@ int setusershell P((void )); int siginterrupt P((int , int )); int sleep P((unsigned )); int srand P((int )); -char *strcat P((char *, char *)); -char *strcatn P((char *, char *, int )); -char *strchr P((char *, int )); -int strcmp P((const char *, const char *)); -int strcmpn P((char *, char *, int )); -char *strcpy P((char *, const char *)); -char *strcpyn P((char *, char *, int )); -int strcspn P((char *, char *)); int strlen P((const char *)); char *strncat P((char *, const char *, int )); int strncmp P((const char *, const char *, int )); char *strncpy P((char *, const char *, int )); -char *strpbrk P((char *, char *)); -char *strrchr P((char *, int )); -int strspn P((char *, char *)); -char *strtok P((char *, char *)); int swab P((char *, char *, int )); -int syslog P((int , char *)); +void syslog P((int , const char *, ...)); int system P((char *)); long tell P((int )); long time P((long *)); @@ -316,8 +259,7 @@ int usleep P((unsigned )); int utime P((char *, time_t *)); char *valloc P((unsigned )); int vlimit P((int , int )); -int printf P((char *, ...)); -int puts P((char *)); +void abort P((void)); #endif /* VAX */ @@ -455,7 +397,7 @@ int execl P((char * , char * )); int execle P((char * , char * )); int execv P((char * , char **)); int exect P((char *, char **, char ** )); -void exit P((int )); +/* void exit P((int )); */ double frexp P((double , int * )); double ldexp P((double , int )); double modf P((double , double * )); @@ -530,8 +472,8 @@ long pathconf P((char * , int )); long fpathconf P((int , int )); int pause P((void )); void perror P((char * )); -int printf P((char *, ...)); -int puts P((char * )); +int printf P((const char *, ...)); +int puts P((const char * )); #ifndef SYSTEM_FIVE int qsort P((char * , int , int , int (* )())); #endif @@ -541,8 +483,8 @@ int rcmd P((char ** , u_short , char * , char * , char * , int * )); int rresvport P((int * )); int ruserok P((char * , int , char * , char * )); int rexec P((char ** , u_short , char * , char * , char * , int * )); -int scanf P((char * )); -int sscanf P((char * , char * )); +int scanf P((const char *, ... )); +int sscanf P((const char * , const char *, ... )); int setpgid P((pid_t , pid_t )); int setuid P((int )); int seteuid P((int )); @@ -553,21 +495,12 @@ int setrgid P((int )); int siginterrupt P((int , int )); unsigned sleep P((unsigned )); -char *strcat P((char * , char * )); int strcmp P((const char * , const char * )); char *strcpy P((char * , const char * )); int strlen P((const char * )); char *strncat P((char * , const char * , int )); int strncmp P((const char * , const char * , int )); char *strncpy P((char * , const char * , int )); -char *strchr P((char * , int )); -char *strrchr P((char * , int )); -char *strpbrk P((char * , char * )); -int strspn P((char * , char * )); -int strcspn P((char * , char * )); -char *strtok P((char * , char * )); -char *index P((char * , int )); -char *rindex P((char * , int )); void swab P((char * , char * , int )); long sysconf P((int )); int system P((char * )); @@ -596,7 +529,6 @@ int listen P((int , int )); int quota P((int , int , int , caddr_t )); int readlink P((char * , char * , int )); int reboot P((int )); -int recv P((int , char * , int , int )); int rename P((char * , char * )); int rmdir P((char * )); int send P((int , char * , int , int )); @@ -620,7 +552,7 @@ void vhangup P((void )); double atof P((char * )); int atoi P((char * )); long atol P((char * )); -void bcopy P((char * , char * , int )); +void bcopy P((const char * , char * , int )); int bcmp P((char * , char * , int )); void bzero P((char * , int )); int ffs P((int )); @@ -632,8 +564,8 @@ char *initstate P((unsigned , char * , int )); char *setstate P((char * )); char *re_comp P((char * )); int re_exec P((char * )); -int openlog P((char * , int )); -void syslog P((int , char * )); +void openlog P((const char * , int )); +void syslog P((int , char *, ... )); void closelog P((void )); long time P((long * )); char *valloc P((unsigned ));