Changeset 1693
- Timestamp:
- Dec 3, 2004, 5:44:50 AM (21 years ago)
- Location:
- trunk/src/emx/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/InnoTekLIBC/thread.h
-
Property cvs2svn:cvs-rev
changed from
1.10
to1.11
r1692 r1693 104 104 /** The nesting depth of the default logger. */ 105 105 unsigned cDefLoggerDepth; 106 /** Current rand() seed value. */107 unsigned int iRand;108 106 /** Buffer used by asctime() and indirectly by ctime() . (Adds two 2 bytes for padding). */ 109 107 char szAscTimeAndCTimeBuf[26+2]; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/alloca.h
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r1692 r1693 10 10 #include <stddef.h> 11 11 12 #undef alloca13 14 12 __BEGIN_DECLS 15 void *alloca(size_t); 13 #if __GNUC__ >= 2 || defined(__INTEL_COMPILER) 14 #undef alloca /* some GNU bits try to get cute and define this on their own */ 15 #define alloca(sz) __builtin_alloca(sz) 16 #elif defined(lint) 17 void *alloca(size_t); 18 #endif 16 19 __END_DECLS 17 20 18 #if !defined (alloca)19 #define alloca(x) __builtin_alloca(x)20 #endif21 21 22 22 #endif /* not _ALLOCA_H */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/emx/io.h
-
Property cvs2svn:cvs-rev
changed from
1.12
to1.13
r1692 r1693 7 7 #include <sys/types.h> 8 8 #include <InnoTekLIBC/fork.h> 9 #include <alloca.h> 9 10 10 11 __BEGIN_DECLS … … 163 164 #define _endbuf(s) (tbuf (s) ? _endbuf1 (s) : 0) 164 165 165 #define alloca(x) __builtin_alloca(x)166 167 166 struct streamvec 168 167 { -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/math.h
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r1692 r1693 143 143 144 144 double atof (__const__ char *); 145 146 #if !defined (_ABS_DECLARED) && !defined(_LABS_DECLARED) /* see also stdlib.h */147 #define _ABS_DECLARED148 #define _LABS_DECLARED149 #if !defined (__GNUC__) || __GNUC__ >= 2150 extern int abs (int);151 extern long labs (long);152 #else153 extern __inline__ int abs (int _n) { return (_n < 0 ? -_n : _n); }154 extern __inline__ long labs (long _n) { return (_n < 0 ? -_n : _n); }155 #endif156 #endif157 145 158 146 #endif -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/stdlib.h
-
Property cvs2svn:cvs-rev
changed from
1.28
to1.29
r1692 r1693 1 1 /* stdlib.h,v 1.24 2004/09/14 22:27:36 bird Exp */ 2 2 /** @file 3 * FreeBSD 5. 13 * FreeBSD 5.3 4 4 * @changed bird: EMXifications and OS2ifications. 5 5 */ … … 38 38 * 39 39 * @(#)stdlib.h 8.5 (Berkeley) 5/19/95 40 * $FreeBSD: src/include/stdlib.h,v 1. 48 2003/03/12 20:29:58 dasExp $40 * $FreeBSD: src/include/stdlib.h,v 1.56 2004/02/23 03:16:58 ache Exp $ 41 41 */ 42 42 … … 45 45 46 46 #include <sys/cdefs.h> 47 #include <sys/_null.h> 47 48 #include <sys/_types.h> 48 49 … … 78 79 } ldiv_t; 79 80 80 #ifndef NULL81 #define NULL 082 #endif83 84 81 #define EXIT_FAILURE 1 85 82 #define EXIT_SUCCESS 0 86 83 87 #define RAND_MAX 0x7fff /* bird: emx, old value 0x7fffffff */84 #define RAND_MAX 0x7fffffff 88 85 89 86 extern int _mb_cur_max; /* bird: one underscore, not two for us. */ … … 92 89 __BEGIN_DECLS 93 90 void abort(void) __dead2; 94 #ifndef _ABS_DECLARED /* bird: emx, also math.h */95 91 int abs(int) __pure2; 96 #if !defined (__GNUC__) || __GNUC__ >= 297 extern __inline__ int abs(int _n) { return (_n < 0 ? -_n : _n); }98 #endif99 #define _ABS_DECLARED100 #endif101 92 int atexit(void (*)(void)); 102 93 double atof(const char *); … … 110 101 void free(void *); 111 102 char *getenv(const char *); 112 #ifndef _LABS_DECLARED /* bird: emx, also math.h */113 103 long labs(long) __pure2; 114 #if !defined (__GNUC__) || __GNUC__ >= 2115 extern __inline__ long labs(long _n) { return (_n < 0 ? -_n : _n); }116 #endif117 #define _LABS_DECLARED118 #endif119 104 ldiv_t ldiv(long, long) __pure2; 120 105 void *malloc(size_t); … … 163 148 llabs(long long) __pure2; 164 149 /* LONGLONG */ 165 /** @todo lldiv_t lldiv(long long, long long) __pure2; */ 150 lldiv_t lldiv(long long, long long) __pure2; 166 151 /* LONGLONG */ 167 152 long long … … 182 167 #if __POSIX_VISIBLE /* >= ??? */ 183 168 int posix_memalign(void **, size_t, size_t); /* bird: we implement this. */ 184 /** @todo int rand_r(unsigned *); *//* (TSF) */169 int rand_r(unsigned *); /* (TSF) */ 185 170 int setenv(const char *, const char *, int); 186 171 int unsetenv(const char *); /* bird: standard saith shall return int. */ … … 201 186 /* char *fcvt(double, int, int * __restrict, int * __restrict); */ 202 187 /* char *gcvt(double, int, int * __restrict, int * __restrict); */ 203 #ifndef _GETSUBOPT_DECLARED 204 /** @todo int getsubopt(char **, char *const *, char **); */ 205 #define _GETSUBOPT_DECLARED 206 #endif 188 int getsubopt(char **, char *const *, char **); 207 189 /** @todo int grantpt(int); */ 208 190 char *initstate(unsigned long /* XSI requires u_int */, char *, long); … … 243 225 const char *); 244 226 245 void *alloca(size_t); /* built-in for gcc */ 227 /* 228 * The alloca() function can't be implemented in C, and on some 229 * platforms it can't be implemented at all as a callable function. 230 * The GNU C compiler provides a built-in alloca() which we can use; 231 * in all other cases, provide a prototype, mainly to pacify various 232 * incarnations of lint. On platforms where alloca() is not in libc, 233 * programs which use it will fail to link when compiled with non-GNU 234 * compilers. 235 */ 236 #if __GNUC__ >= 2 || defined(__INTEL_COMPILER) 237 #undef alloca /* some GNU bits try to get cute and define this on their own */ 238 #define alloca(sz) __builtin_alloca(sz) 239 #elif defined(lint) 240 void *alloca(size_t); 241 #endif 242 246 243 /** @todo __uint32_t 247 244 arc4random(void); */ … … 263 260 /** @todo int daemon(int, int); */ 264 261 /** @todo char *devname(int, int); */ 262 /** @todo char *devname_r(int, int, char *, int); */ 265 263 int getloadavg(double [], int); 266 264 __const char * … … 277 275 int sradixsort(const unsigned char **, int, const unsigned char *, 278 276 unsigned); 279 /** @todo void sranddev(void); */ 277 void sranddev(void); 280 278 void srandomdev(void); 281 279 … … 285 283 /** @todo __uint64_t 286 284 strtouq(const char *, char **, int); */ 285 286 extern char *suboptarg; /* getsubopt(3) external variable */ 287 287 #endif /* __BSD_VISIBLE */ 288 288 … … 292 292 #ifdef __BSD_VISIBLE 293 293 char *_getcwdux(char *, size_t); 294 /* 294 /** @todo: int _chdirux(char *); */ 295 295 char *_realrealpath(const char *, char *, size_t); 296 296 #endif … … 486 486 __END_DECLS 487 487 488 /* bird: EMX/PC stuff - start*/488 /* bird: EMX/PC stuff - end */ 489 489 490 490 #endif /* !_STDLIB_H_ */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.