Changeset 0773396 in mainline for uspace/lib/posix/include
- Timestamp:
- 2013-12-25T13:05:25Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bc54126c
- Parents:
- f4a47e52 (diff), 6946f23 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/posix/include/posix
- Files:
-
- 1 added
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/float.h
rf4a47e52 r0773396 59 59 #undef DBL_EPSILON 60 60 #define DBL_EPSILON __DBL_EPSILON__ 61 #undef LDBL_EPSILON 62 #define LDBL_EPSILON __LDBL_EPSILON__ 61 63 #undef FLT_RADIX 62 64 #define FLT_RADIX __FLT_RADIX__ 65 #undef FLT_MIN 66 #define FLT_MIN __FLT_MIN__ 67 #undef FLT_MAX 68 #define FLT_MAX __FLT_MAX__ 69 #undef FLT_EPSILON 70 #define FLT_EPSILON __FLT_EPSILON__ 71 #undef FLT_MANT_DIG 72 #define FLT_MANT_DIG __FLT_MANT_DIG__ 73 #undef LDBL_MIN 74 #define LDBL_MIN __LDBL_MIN__ 75 #undef LDBL_MAX 76 #define LDBL_MAX __LDBL_MAX__ 77 #undef LDBL_MANT_DIG 78 #define LDBL_MANT_DIG __LDBL_MANT_DIG__ 63 79 #else 64 80 /* For something else than GCC, following definitions are provided. -
uspace/lib/posix/include/posix/math.h
rf4a47e52 r0773396 36 36 #define POSIX_MATH_H_ 37 37 38 #ifndef __POSIX_DEF__ 39 #define __POSIX_DEF__(x) x 40 #endif 41 42 #ifdef __GNUC__ 43 #define HUGE_VAL (__builtin_huge_val()) 44 #endif 45 46 /* Normalization Functions */ 47 extern double __POSIX_DEF__(ldexp)(double x, int exp); 48 extern double __POSIX_DEF__(frexp)(double num, int *exp); 49 50 double __POSIX_DEF__(fabs)(double x); 51 double __POSIX_DEF__(floor)(double x); 52 double __POSIX_DEF__(modf)(double x, double *iptr); 53 double __POSIX_DEF__(fmod)(double x, double y); 54 double __POSIX_DEF__(pow)(double x, double y); 55 double __POSIX_DEF__(exp)(double x); 56 double __POSIX_DEF__(sqrt)(double x); 57 double __POSIX_DEF__(log)(double x); 58 double __POSIX_DEF__(sin)(double x); 59 double __POSIX_DEF__(cos)(double x); 60 double __POSIX_DEF__(atan2)(double y, double x); 38 #include "libc/math.h" 61 39 62 40 #endif /* POSIX_MATH_H_ */ -
uspace/lib/posix/include/posix/setjmp.h
rf4a47e52 r0773396 27 27 */ 28 28 29 /** @addtogroup lib c29 /** @addtogroup libposix 30 30 * @{ 31 31 */ 32 32 33 #include <bitops.h> 34 35 extern int __popcountsi2(int a) 36 { 37 return __builtin_popcount(a); 38 } 39 33 /* 34 * Just a pass-through to libc setjmp. 35 */ 36 #include "libc/setjmp.h" 40 37 41 38 /** @} -
uspace/lib/posix/include/posix/stdint.h
rf4a47e52 r0773396 108 108 109 109 110 /* 111 * Fast* and least* integer types. 112 * 113 * The definitions below are definitely safe if not the best. 114 */ 115 typedef uint8_t uint_least8_t; 116 typedef uint16_t uint_least16_t; 117 typedef uint32_t uint_least32_t; 118 typedef uint64_t uint_least64_t; 119 120 typedef int8_t int_least8_t; 121 typedef int16_t int_least16_t; 122 typedef int32_t int_least32_t; 123 typedef int64_t int_least64_t; 124 125 typedef uint8_t uint_fast8_t; 126 typedef uint16_t uint_fast16_t; 127 typedef uint32_t uint_fast32_t; 128 typedef uint64_t uint_fast64_t; 129 130 typedef int8_t int_fast8_t; 131 typedef int16_t int_fast16_t; 132 typedef int32_t int_fast32_t; 133 typedef int64_t int_fast64_t; 134 110 135 #endif /* POSIX_STDINT_H_ */ 111 136 -
uspace/lib/posix/include/posix/stdio.h
rf4a47e52 r0773396 123 123 124 124 extern void setvbuf(FILE *, void *, int, size_t); 125 125 extern void setbuf(FILE *, void *); 126 126 127 127 /* POSIX specific stuff. */ -
uspace/lib/posix/include/posix/stdlib.h
rf4a47e52 r0773396 56 56 #define _Exit exit 57 57 extern int __POSIX_DEF__(atexit)(void (*func)(void)); 58 extern void exit(int status) ;58 extern void exit(int status) __attribute__((noreturn)); 59 59 extern void abort(void) __attribute__((noreturn)); 60 60 -
uspace/lib/posix/include/posix/time.h
rf4a47e52 r0773396 104 104 extern char *__POSIX_DEF__(ctime_r)(const time_t *timer, char *buf); 105 105 extern char *__POSIX_DEF__(ctime)(const time_t *timer); 106 extern time_t time(time_t *t); 106 107 107 108 /* Clocks */
Note:
See TracChangeset
for help on using the changeset viewer.
