annotate src/broken-sun.h @ 267:966663fcf606 r20-5b32

Import from CVS: tag r20-5b32
author cvs
date Mon, 13 Aug 2007 10:26:29 +0200
parents 376386a54a3c
children c5d627a313b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 under the terms of the GNU General Public License as published by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 Free Software Foundation; either version 2, or (at your option) any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 XEmacs is distributed in the hope that it will be useful, but WITHOUT
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 along with XEmacs; see the file COPYING. If not, write to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 Boston, MA 02111-1307, USA. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 /* Synched up with: Not in FSF. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 /* Authorship:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 JWZ: long ago.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 /* Sun's standard and GCC's header files leave out prototypes for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 all sorts of functions. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 #ifndef _XEMACS_BROKEN_SUN_H_
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 #define _XEMACS_BROKEN_SUN_H_
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 #include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #include <stddef.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 /*********************** stdlib functions *********************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 /* extern void * memchr (CONST void *, int, size_t); */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 /* extern int memcmp (CONST void *, CONST void *, size_t); */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 /* extern void * memcpy (void *, CONST void *, size_t); */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 /* extern void * memmove (void *, CONST void *, size_t);*/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 /* extern void * memset (void *, int, int); */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 /* extern char * strcat (char *, CONST char *); */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 /* extern char * strchr (CONST char *, int); */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 /* extern int strcmp (CONST char *, CONST char *); */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 extern int strcasecmp (char *, char *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 extern void bzero (char *, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 extern void bcopy (char *, char *, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 /* Yes, they even left these functions out! */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 extern int tolower (int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 extern int toupper (int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 /*********************** stdio functions *********************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 #include <stdio.h> /* else can't declare FILE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 /* extern FILE *fopen (CONST char *, CONST char *); */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 /* extern FILE *freopen (CONST char *, CONST char *, FILE *); */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 extern FILE *tmpfile (void);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 extern int fclose (FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 extern char *fgets (char *, int, FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 extern int fgetc (FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 extern int fflush (FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 extern int fprintf (FILE *, CONST char *, ...);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 extern int fputc (char, FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 extern int fputs (CONST char *, FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 extern size_t fread (void *, size_t, size_t, FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 extern int fscanf (FILE *, CONST char *, ...);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 extern int fgetpos (FILE *, long *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 extern int fseek (FILE *, long, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 extern int fsetpos (FILE *, CONST long *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 extern long ftell (FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 extern size_t fwrite (CONST void *, size_t, size_t, FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 extern char *gets (char *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 extern int pclose (FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 extern void perror (CONST char *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 extern int printf (CONST char *, ...);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 extern int puts (CONST char *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 extern int remove (CONST char *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 extern int rename (CONST char *, CONST char *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 extern int rewind (FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 extern int scanf (CONST char *, ...);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 extern int sscanf (CONST char *, CONST char *, ...);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 extern void setbuf (FILE *, char *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 extern int setvbuf (FILE *, char *, int, size_t);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 extern int ungetc (int, FILE *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 extern int vprintf (CONST char *, void *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 extern int vfprintf (FILE *, CONST char *, void *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 extern char *vsprintf (char *, CONST char *, void *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 /*********************** signal functions *********************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 extern int sigblock (int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 #ifndef sigmask
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 extern int sigmask (int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 extern int sigsetmask (int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 extern int sigpause (int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 /*********************** time functions ***********************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 struct timeval;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 struct timezone;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 extern int utimes (CONST char *, struct timeval *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 extern void tzset (void);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 extern time_t time (time_t *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 extern int gettimeofday (struct timeval *, struct timezone *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 /*********************** file-system functions *********************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 struct stat;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 #include </usr/include/sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 extern int fsync (int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 extern int lstat (CONST char *, struct stat *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 extern int fchmod (int, mode_t);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 extern char *mktemp (char *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 /* extern int creat (CONST char *, mode_t); better no decl than a conflicting one... */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 extern int symlink (CONST char *, CONST char *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 extern int readlink (CONST char *, char *, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 extern void sync (void);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 extern int select (int, fd_set *, fd_set *, fd_set *, struct timeval *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 extern char * getwd (char *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 /* extern int lseek (int, long, int); better no decl than a conflicting one... */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 extern int _filbuf ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 extern int _flsbuf ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 /**************** interprocess communication functions ******************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 extern int recv (int, char *, int, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 extern int socket (int, int, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 struct sockaddr;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 extern int connect (int, struct sockaddr *, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 extern int bind (int, struct sockaddr *, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 extern int listen (int, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 extern int accept (int, struct sockaddr *, int *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 extern int gethostname (char *, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 struct rusage;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 extern int wait3 (void *, int, struct rusage *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 extern int nice (int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 extern int killpg (int, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 extern int system (char *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 /*********************** low-level OS functions *********************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 extern int ioctl (int, int, ...);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 struct nlist;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 extern int nlist (CONST char *, struct nlist *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 extern int munmap (void *, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 extern int brk (void *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 extern void * sbrk (int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 struct rlimit;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 extern int getrlimit (int, struct rlimit *);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 extern int getpagesize (void);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 extern int shutdown (int, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 extern int mprotect (void *, int, int);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 /*********************** miscellaneous functions *********************/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 extern void tputs (CONST char *cp, int affcnt, void (*)(int));
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 extern long random (void);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 extern int srandom (int seed);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 #endif /* __GNUC__ */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 #endif /* _XEMACS_BROKEN_SUN_H_ */