diff options
Diffstat (limited to 'contrib/gcc/sys-protos.h')
-rw-r--r-- | contrib/gcc/sys-protos.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/contrib/gcc/sys-protos.h b/contrib/gcc/sys-protos.h index c9b8c4b..ab6e407 100644 --- a/contrib/gcc/sys-protos.h +++ b/contrib/gcc/sys-protos.h @@ -127,8 +127,8 @@ extern AUTH * authunix_create(char *, int, int, int, int *); extern AUTH * authunix_create_default(void); extern char * basename(char *); extern int baudrate(void); -extern int bcmp(const void *, const void *, int); -extern void bcopy(const void *, void *, int); +extern int bcmp(const void *, const void *, size_t); +extern void bcopy(const void *, void *, size_t); extern int beep(void); extern void (* berk_signal(int, void (*) (int, ...))) (int, ...); extern char * bgets(char *, size_t, FILE *, char *); @@ -449,8 +449,12 @@ extern int getgroups(int, gid_t *); extern struct hostent * gethostbyaddr(/* ??? */); extern struct hostent * gethostbyname(/* ??? */); extern struct hostent * gethostent(/* ??? */); +#ifdef __alpha__ +extern int gethostid(void); +#else extern long gethostid(void); -extern int gethostname(char *, int); +#endif +extern int gethostname(char *, size_t); extern int getitimer(int, struct itimerval *); extern char * getlogin(void); extern int getmaxx(WINDOW *); @@ -645,7 +649,7 @@ extern dl_t lmul(/* ??? */); extern struct lconv * localeconv(void); extern struct tm * localtime(const time_t *); extern int lock(int, int, long); -extern int lockf(int, int, long int); +extern int lockf(int, int, off_t); extern double log(double); extern double log10(double); extern float log10f(float); @@ -858,9 +862,9 @@ extern int raise(int); extern int rand(void); extern long random(void); extern int raw(void); -extern int read(int, void *, size_t); +extern ssize_t read(int, void *, size_t); extern struct dirent * readdir(DIR *); -extern int readlink(const char *, void *, int); +extern ssize_t readlink(const char *, char *, size_t); extern void * realloc(void *, size_t); extern char * realpath(char *, char *); extern int redrawwin(WINDOW *); @@ -1048,6 +1052,7 @@ extern int slk_restore(void); extern int slk_set(int, char *, int); extern int slk_start(int, int *); extern int slk_touch(void); +extern int socket (int, int, int); extern void * sprayproc_clear_1(/* ??? */); extern spraycumul * sprayproc_get_1(/* ??? */); extern void * sprayproc_spray_1(/* ??? */); @@ -1069,6 +1074,7 @@ extern int stime(const time_t *); extern struct netbuf * stoa(char *, struct netbuf *); extern void store(datum, datum); extern char * strcadd(char *, const char *); +extern int strcasecmp(const char *, const char *); extern char * strcat(char *, const char *); extern char * strccpy(char *, const char *); extern char * strchr(const char *, int); @@ -1086,6 +1092,7 @@ extern char * strerror(int); extern int strfind(const char *, const char *); extern size_t strftime(char *, size_t, const char *, const struct tm *); extern size_t strlen(const char *); +extern int strncasecmp(const char *, const char *, size_t); extern char * strncat(char *, const char *, size_t); extern int strncmp(const char *, const char *, size_t); extern char * strncpy(char *, const char *, size_t); @@ -1264,7 +1271,7 @@ extern int wnoutrefresh(WINDOW *); extern int wprintw(WINDOW *, ...); extern int wredrawln(WINDOW *, int, int); extern int wrefresh(WINDOW *); -extern int write(int, const void *, size_t); +extern ssize_t write(int, const void *, size_t); extern int wscanw(WINDOW *, ...); extern int wscrl(WINDOW *, int); extern int wsetscrreg(WINDOW *, int, int); |