comparison src/broken-sun.h @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 8de8e3f6228a
children 943eaba38521
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
32 #include <stdlib.h> 32 #include <stdlib.h>
33 #include <stddef.h> 33 #include <stddef.h>
34 34
35 /*********************** stdlib functions *********************/ 35 /*********************** stdlib functions *********************/
36 36
37 /* void * memchr (CONST void *, int, size_t); */ 37 /* void * memchr (const void *, int, size_t); */
38 38
39 /* int memcmp (CONST void *, CONST void *, size_t); */ 39 /* int memcmp (const void *, const void *, size_t); */
40 /* void * memcpy (void *, CONST void *, size_t); */ 40 /* void * memcpy (void *, const void *, size_t); */
41 /* void * memmove (void *, CONST void *, size_t);*/ 41 /* void * memmove (void *, const void *, size_t);*/
42 /* void * memset (void *, int, int); */ 42 /* void * memset (void *, int, int); */
43 /* char * strcat (char *, CONST char *); */ 43 /* char * strcat (char *, const char *); */
44 /* char * strchr (CONST char *, int); */ 44 /* char * strchr (const char *, int); */
45 /* int strcmp (CONST char *, CONST char *); */ 45 /* int strcmp (const char *, const char *); */
46 int strcasecmp (char *, char *); 46 int strcasecmp (char *, char *);
47 47
48 /* Yes, they even left these functions out! */ 48 /* Yes, they even left these functions out! */
49 int tolower (int); 49 int tolower (int);
50 int toupper (int); 50 int toupper (int);
51 51
52 /*********************** stdio functions *********************/ 52 /*********************** stdio functions *********************/
53 53
54 #include <stdio.h> /* else can't declare FILE */ 54 #include <stdio.h> /* else can't declare FILE */
55 55
56 /* FILE *fopen (CONST char *, CONST char *); */ 56 /* FILE *fopen (const char *, const char *); */
57 /* FILE *freopen (CONST char *, CONST char *, FILE *); */ 57 /* FILE *freopen (const char *, const char *, FILE *); */
58 FILE *tmpfile (void); 58 FILE *tmpfile (void);
59 int fclose (FILE *); 59 int fclose (FILE *);
60 char *fgets (char *, int, FILE *); 60 char *fgets (char *, int, FILE *);
61 int fgetc (FILE *); 61 int fgetc (FILE *);
62 int fflush (FILE *); 62 int fflush (FILE *);
63 int fprintf (FILE *, CONST char *, ...); 63 int fprintf (FILE *, const char *, ...);
64 int fputc (char, FILE *); 64 int fputc (char, FILE *);
65 int fputs (CONST char *, FILE *); 65 int fputs (const char *, FILE *);
66 size_t fread (void *, size_t, size_t, FILE *); 66 size_t fread (void *, size_t, size_t, FILE *);
67 int fscanf (FILE *, CONST char *, ...); 67 int fscanf (FILE *, const char *, ...);
68 int fgetpos (FILE *, long *); 68 int fgetpos (FILE *, long *);
69 int fseek (FILE *, long, int); 69 int fseek (FILE *, long, int);
70 int fsetpos (FILE *, CONST long *); 70 int fsetpos (FILE *, const long *);
71 long ftell (FILE *); 71 long ftell (FILE *);
72 size_t fwrite (CONST void *, size_t, size_t, FILE *); 72 size_t fwrite (const void *, size_t, size_t, FILE *);
73 char *gets (char *); 73 char *gets (char *);
74 int pclose (FILE *); 74 int pclose (FILE *);
75 void perror (CONST char *); 75 void perror (const char *);
76 int printf (CONST char *, ...); 76 int printf (const char *, ...);
77 int puts (CONST char *); 77 int puts (const char *);
78 int remove (CONST char *); 78 int remove (const char *);
79 int rename (CONST char *, CONST char *); 79 int rename (const char *, const char *);
80 int rewind (FILE *); 80 int rewind (FILE *);
81 int scanf (CONST char *, ...); 81 int scanf (const char *, ...);
82 int sscanf (CONST char *, CONST char *, ...); 82 int sscanf (const char *, const char *, ...);
83 void setbuf (FILE *, char *); 83 void setbuf (FILE *, char *);
84 int setvbuf (FILE *, char *, int, size_t); 84 int setvbuf (FILE *, char *, int, size_t);
85 int ungetc (int, FILE *); 85 int ungetc (int, FILE *);
86 int vprintf (CONST char *, void *); 86 int vprintf (const char *, void *);
87 int vfprintf (FILE *, CONST char *, void *); 87 int vfprintf (FILE *, const char *, void *);
88 char *vsprintf (char *, CONST char *, void *); 88 char *vsprintf (char *, const char *, void *);
89 89
90 /*********************** signal functions *********************/ 90 /*********************** signal functions *********************/
91 91
92 int sigblock (int); 92 int sigblock (int);
93 #ifndef sigmask 93 #ifndef sigmask
99 /*********************** time functions ***********************/ 99 /*********************** time functions ***********************/
100 100
101 struct timeval; 101 struct timeval;
102 struct timezone; 102 struct timezone;
103 103
104 int utimes (CONST char *, struct timeval *); 104 int utimes (const char *, struct timeval *);
105 void tzset (void); 105 void tzset (void);
106 time_t time (time_t *); 106 time_t time (time_t *);
107 int gettimeofday (struct timeval *, struct timezone *); 107 int gettimeofday (struct timeval *, struct timezone *);
108 108
109 /*********************** file-system functions *********************/ 109 /*********************** file-system functions *********************/
110 110
111 struct stat; 111 struct stat;
112 #include </usr/include/sys/types.h> 112 #include </usr/include/sys/types.h>
113 113
114 int fsync (int); 114 int fsync (int);
115 int lstat (CONST char *, struct stat *); 115 int lstat (const char *, struct stat *);
116 int fchmod (int, mode_t); 116 int fchmod (int, mode_t);
117 char *mktemp (char *); 117 char *mktemp (char *);
118 /* int creat (CONST char *, mode_t); better no decl than a conflicting one... */ 118 /* int creat (const char *, mode_t); better no decl than a conflicting one... */
119 int symlink (CONST char *, CONST char *); 119 int symlink (const char *, const char *);
120 int readlink (CONST char *, char *, int); 120 int readlink (const char *, char *, int);
121 void sync (void); 121 void sync (void);
122 int select (int, fd_set *, fd_set *, fd_set *, struct timeval *); 122 int select (int, fd_set *, fd_set *, fd_set *, struct timeval *);
123 char * getwd (char *); 123 char * getwd (char *);
124 /* int lseek (int, long, int); better no decl than a conflicting one... */ 124 /* int lseek (int, long, int); better no decl than a conflicting one... */
125 int _filbuf (); 125 int _filbuf ();
144 144
145 /*********************** low-level OS functions *********************/ 145 /*********************** low-level OS functions *********************/
146 146
147 int ioctl (int, int, ...); 147 int ioctl (int, int, ...);
148 struct nlist; 148 struct nlist;
149 int nlist (CONST char *, struct nlist *); 149 int nlist (const char *, struct nlist *);
150 int munmap (void *, int); 150 int munmap (void *, int);
151 int brk (void *); 151 int brk (void *);
152 void * sbrk (int); 152 void * sbrk (int);
153 struct rlimit; 153 struct rlimit;
154 int getrlimit (int, struct rlimit *); 154 int getrlimit (int, struct rlimit *);
156 int shutdown (int, int); 156 int shutdown (int, int);
157 int mprotect (void *, int, int); 157 int mprotect (void *, int, int);
158 158
159 /*********************** miscellaneous functions *********************/ 159 /*********************** miscellaneous functions *********************/
160 160
161 void tputs (CONST char *cp, int affcnt, void (*)(int)); 161 void tputs (const char *cp, int affcnt, void (*)(int));
162 long random (void); 162 long random (void);
163 int srandom (int seed); 163 int srandom (int seed);
164 164
165 #endif /* __GNUC__ */ 165 #endif /* __GNUC__ */
166 166