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 INCLUDED_broken_sun_h_
29 #define INCLUDED_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 /* INCLUDED_broken_sun_h_ */