1 /* This file is part of XEmacs.
3 XEmacs is free software; you can redistribute it and/or modify it
4 under the terms of the GNU General Public License as published by the
5 Free Software Foundation; either version 2, or (at your option) any
8 XEmacs is distributed in the hope that it will be useful, but WITHOUT
9 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 You should have received a copy of the GNU General Public License
14 along with XEmacs; see the file COPYING. If not, write to
15 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 Boston, MA 02111-1307, USA. */
18 /* Synched up with: Not in FSF. */
25 /* Sun's standard and GCC's header files leave out prototypes for
26 all sorts of functions. */
28 #ifndef _XEMACS_BROKEN_SUN_H_
29 #define _XEMACS_BROKEN_SUN_H_
35 /*********************** stdlib functions *********************/
37 /* void * memchr (CONST void *, int, size_t); */
39 /* int memcmp (CONST void *, CONST void *, size_t); */
40 /* void * memcpy (void *, CONST void *, size_t); */
41 /* void * memmove (void *, CONST void *, size_t);*/
42 /* void * memset (void *, int, int); */
43 /* char * strcat (char *, CONST char *); */
44 /* char * strchr (CONST char *, int); */
45 /* int strcmp (CONST char *, CONST char *); */
46 int strcasecmp (char *, char *);
48 /* Yes, they even left these functions out! */
52 /*********************** stdio functions *********************/
54 #include <stdio.h> /* else can't declare FILE */
56 /* FILE *fopen (CONST char *, CONST char *); */
57 /* FILE *freopen (CONST char *, CONST char *, FILE *); */
60 char *fgets (char *, int, FILE *);
63 int fprintf (FILE *, CONST char *, ...);
64 int fputc (char, FILE *);
65 int fputs (CONST char *, FILE *);
66 size_t fread (void *, size_t, size_t, FILE *);
67 int fscanf (FILE *, CONST char *, ...);
68 int fgetpos (FILE *, long *);
69 int fseek (FILE *, long, int);
70 int fsetpos (FILE *, CONST long *);
72 size_t fwrite (CONST void *, size_t, size_t, FILE *);
75 void perror (CONST char *);
76 int printf (CONST char *, ...);
77 int puts (CONST char *);
78 int remove (CONST char *);
79 int rename (CONST char *, CONST char *);
81 int scanf (CONST char *, ...);
82 int sscanf (CONST char *, CONST char *, ...);
83 void setbuf (FILE *, char *);
84 int setvbuf (FILE *, char *, int, size_t);
85 int ungetc (int, FILE *);
86 int vprintf (CONST char *, void *);
87 int vfprintf (FILE *, CONST char *, void *);
88 char *vsprintf (char *, CONST char *, void *);
90 /*********************** signal functions *********************/
99 /*********************** time functions ***********************/
104 int utimes (CONST char *, struct timeval *);
106 time_t time (time_t *);
107 int gettimeofday (struct timeval *, struct timezone *);
109 /*********************** file-system functions *********************/
112 #include </usr/include/sys/types.h>
115 int lstat (CONST char *, struct stat *);
116 int fchmod (int, mode_t);
117 char *mktemp (char *);
118 /* int creat (CONST char *, mode_t); better no decl than a conflicting one... */
119 int symlink (CONST char *, CONST char *);
120 int readlink (CONST char *, char *, int);
122 int select (int, fd_set *, fd_set *, fd_set *, struct timeval *);
123 char * getwd (char *);
124 /* int lseek (int, long, int); better no decl than a conflicting one... */
128 /**************** interprocess communication functions ******************/
130 int recv (int, char *, int, int);
131 int socket (int, int, int);
133 int connect (int, struct sockaddr *, int);
134 int bind (int, struct sockaddr *, int);
135 int listen (int, int);
136 int accept (int, struct sockaddr *, int *);
137 int gethostname (char *, int);
139 int wait3 (void *, int, struct rusage *);
141 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 /* _XEMACS_BROKEN_SUN_H_ */