Cleanup some jack server interactions
[sxemacs] / src / broken-sun.h
1 /*
2
3 This file is part of SXEmacs
4
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.
9
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.
14
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/>. */
17
18
19 /* Synched up with: Not in FSF. */
20
21 /* Authorship:
22
23    JWZ: long ago.
24  */
25
26 /* Sun's standard and GCC's header files leave out prototypes for
27    all sorts of functions. */
28
29 #ifndef INCLUDED_broken_sun_h_
30 #define INCLUDED_broken_sun_h_
31
32 #ifdef __GNUC__
33 #include <stdlib.h>
34 #include <stddef.h>
35
36 /*********************** stdlib functions *********************/
37
38 /* void *       memchr (const void *, int, size_t); */
39
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 *);
48
49 /* Yes, they even left these functions out! */
50 int tolower(int);
51 int toupper(int);
52
53 /*********************** stdio functions *********************/
54
55 #include <stdio.h>              /* else can't declare FILE */
56
57 /* FILE *fopen (const char *, const char *); */
58 /* FILE *freopen (const char *, const char *, FILE *); */
59 FILE *tmpfile(void);
60 int fclose(FILE *);
61 char *fgets(char *, int, FILE *);
62 int fgetc(FILE *);
63 int fflush(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 *);
72 long ftell(FILE *);
73 size_t fwrite(const void *, size_t, size_t, FILE *);
74 char *gets(char *);
75 int pclose(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 *);
81 int rewind(FILE *);
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 *);
90
91 /*********************** signal functions *********************/
92
93 int sigblock(int);
94 #ifndef sigmask
95 int sigmask(int);
96 #endif
97 int sigsetmask(int);
98 int sigpause(int);
99
100 /*********************** time functions ***********************/
101
102 struct timeval;
103 struct timezone;
104
105 int utimes(const char *, struct timeval *);
106 void tzset(void);
107 time_t time(time_t *);
108 int gettimeofday(struct timeval *, struct timezone *);
109
110 /*********************** file-system functions *********************/
111
112 struct stat;
113 #include </usr/include/sys/types.h>
114
115 int fsync(int);
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);
122 void sync(void);
123 int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
124 char *getwd(char *);
125 /* int  lseek (int, long, int); better no decl than a conflicting one... */
126 int _filbuf();
127 int _flsbuf();
128
129 /**************** interprocess communication functions ******************/
130
131 int recv(int, char *, int, int);
132 int socket(int, int, int);
133 struct sockaddr;
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);
139 struct rusage;
140 int wait3(void *, int, struct rusage *);
141 int nice(int);
142 int killpg(int, int);
143 int system(char *);
144
145 /*********************** low-level OS functions *********************/
146
147 int ioctl(int, int, ...);
148 struct nlist;
149 int nlist(const char *, struct nlist *);
150 int munmap(void *, int);
151 int brk(void *);
152 void *sbrk(int);
153 struct rlimit;
154 int getrlimit(int, struct rlimit *);
155 int getpagesize(void);
156 int shutdown(int, int);
157 int mprotect(void *, int, int);
158
159 /*********************** miscellaneous functions *********************/
160
161 void tputs(const char *cp, int affcnt, void (*)(int));
162 long random(void);
163 int srandom(int seed);
164
165 #endif                          /* __GNUC__ */
166
167 #endif                          /* INCLUDED_broken_sun_h_ */