3 This file is part of SXEmacs
5 SXEmacs is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 SXEmacs is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 /* Synched up with: Not in FSF. */
26 /* Sun's standard and GCC's header files leave out prototypes for
27 all sorts of functions. */
29 #ifndef INCLUDED_broken_sun_h_
30 #define INCLUDED_broken_sun_h_
36 /*********************** stdlib functions *********************/
38 /* void * memchr (const void *, int, size_t); */
40 /* int memcmp (const void *, const void *, size_t); */
41 /* void * memcpy (void *, const void *, size_t); */
42 /* void * memmove (void *, const void *, size_t);*/
43 /* void * memset (void *, int, int); */
44 /* char * strcat (char *, const char *); */
45 /* char * strchr (const char *, int); */
46 /* int strcmp (const char *, const char *); */
47 int strcasecmp(char *, char *);
49 /* Yes, they even left these functions out! */
53 /*********************** stdio functions *********************/
55 #include <stdio.h> /* else can't declare FILE */
57 /* FILE *fopen (const char *, const char *); */
58 /* FILE *freopen (const char *, const char *, FILE *); */
61 char *fgets(char *, int, FILE *);
64 int fprintf(FILE *, const char *, ...);
65 int fputc(char, FILE *);
66 int fputs(const char *, FILE *);
67 size_t fread(void *, size_t, size_t, FILE *);
68 int fscanf(FILE *, const char *, ...);
69 int fgetpos(FILE *, long *);
70 int fseek(FILE *, long, int);
71 int fsetpos(FILE *, const long *);
73 size_t fwrite(const void *, size_t, size_t, FILE *);
76 void perror(const char *);
77 int printf(const char *, ...);
78 int puts(const char *);
79 int remove(const char *);
80 int rename(const char *, const char *);
82 int scanf(const char *, ...);
83 int sscanf(const char *, const char *, ...);
84 void setbuf(FILE *, char *);
85 int setvbuf(FILE *, char *, int, size_t);
86 int ungetc(int, FILE *);
87 int vprintf(const char *, void *);
88 int vfprintf(FILE *, const char *, void *);
89 char *vsprintf(char *, const char *, void *);
91 /*********************** signal functions *********************/
100 /*********************** time functions ***********************/
105 int utimes(const char *, struct timeval *);
107 time_t time(time_t *);
108 int gettimeofday(struct timeval *, struct timezone *);
110 /*********************** file-system functions *********************/
113 #include </usr/include/sys/types.h>
116 int lstat(const char *, struct stat *);
117 int fchmod(int, mode_t);
118 char *mktemp(char *);
119 /* int creat (const char *, mode_t); better no decl than a conflicting one... */
120 int symlink(const char *, const char *);
121 int readlink(const char *, char *, int);
123 int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
125 /* int lseek (int, long, int); better no decl than a conflicting one... */
129 /**************** interprocess communication functions ******************/
131 int recv(int, char *, int, int);
132 int socket(int, int, int);
134 int connect(int, struct sockaddr *, int);
135 int bind(int, struct sockaddr *, int);
136 int listen(int, int);
137 int accept(int, struct sockaddr *, int *);
138 int gethostname(char *, int);
140 int wait3(void *, int, struct rusage *);
142 int killpg(int, int);
145 /*********************** low-level OS functions *********************/
147 int ioctl(int, int, ...);
149 int nlist(const char *, struct nlist *);
150 int munmap(void *, int);
154 int getrlimit(int, struct rlimit *);
155 int getpagesize(void);
156 int shutdown(int, int);
157 int mprotect(void *, int, int);
159 /*********************** miscellaneous functions *********************/
161 void tputs(const char *cp, int affcnt, void (*)(int));
163 int srandom(int seed);
165 #endif /* __GNUC__ */
167 #endif /* INCLUDED_broken_sun_h_ */