Changeset c8830a2 in mainline
- Timestamp:
- 2013-04-03T19:20:35Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a3b339b4
- Parents:
- a21d837
- git-author:
- Zbigniew Halas <zhalas@…> (2013-04-03 19:20:35)
- git-committer:
- Jakub Jermar <jakub@…> (2013-04-03 19:20:35)
- Location:
- uspace/lib/posix
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/fcntl.h
ra21d837 rc8830a2 44 44 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) 45 45 46 /* Dummy compatibility flag */ 47 #undef O_NOCTTY 48 #define O_NOCTTY 0 49 46 50 /* fcntl commands */ 47 51 #undef F_DUPFD -
uspace/lib/posix/include/posix/float.h
ra21d837 rc8830a2 36 36 #define POSIX_FLOAT_H_ 37 37 38 /* Empty. Just to satisfy preprocessor. */ 38 /* Rouding direction -1 - unknown */ 39 #define FLT_ROUNDS (-1) 40 41 /* define some standard C constants in terms of GCC built-ins */ 42 #ifdef __GNUC__ 43 #undef DBL_MANT_DIG 44 #define DBL_MANT_DIG __DBL_MANT_DIG__ 45 #undef DBL_MIN_EXP 46 #define DBL_MIN_EXP __DBL_MIN_EXP__ 47 #undef DBL_MAX_EXP 48 #define DBL_MAX_EXP __DBL_MAX_EXP__ 49 #undef DBL_MAX 50 #define DBL_MAX __DBL_MAX__ 51 #undef DBL_MAX_10_EXP 52 #define DBL_MAX_10_EXP __DBL_MAX_10_EXP__ 53 #undef DBL_MIN_10_EXP 54 #define DBL_MIN_10_EXP __DBL_MIN_10_EXP__ 55 #undef DBL_MIN 56 #define DBL_MIN __DBL_MIN__ 57 #undef DBL_DIG 58 #define DBL_DIG __DBL_DIG__ 59 #undef DBL_EPSILON 60 #define DBL_EPSILON __DBL_EPSILON__ 61 #undef FLT_RADIX 62 #define FLT_RADIX __FLT_RADIX__ 63 #endif 39 64 40 65 #endif /* POSIX_FLOAT_H_ */ -
uspace/lib/posix/include/posix/limits.h
ra21d837 rc8830a2 49 49 #define PATH_MAX 256 50 50 51 /* it's probably a safe assumption */ 52 #undef CHAR_BIT 53 #define CHAR_BIT 8 54 51 55 #endif /* POSIX_LIMITS_H_ */ 52 56 -
uspace/lib/posix/include/posix/math.h
ra21d837 rc8830a2 36 36 #define POSIX_MATH_H_ 37 37 38 #ifdef __GNUC__ 39 #define HUGE_VAL (__builtin_huge_val()) 40 #endif 41 38 42 /* Normalization Functions */ 39 43 extern double posix_ldexp(double x, int exp); 40 44 extern double posix_frexp(double num, int *exp); 41 45 46 double posix_fabs(double x); 47 double posix_floor(double x); 48 double posix_modf(double x, double *iptr); 49 double posix_fmod(double x, double y); 50 double posix_pow(double x, double y); 51 double posix_exp(double x); 52 double posix_sqrt(double x); 53 double posix_log(double x); 54 double posix_sin(double x); 55 double posix_cos(double x); 56 double posix_atan2(double y, double x); 57 42 58 #ifndef LIBPOSIX_INTERNAL 43 59 #define ldexp posix_ldexp 44 60 #define frexp posix_frexp 61 62 #define fabs posix_fabs 63 #define floor posix_floor 64 #define modf posix_modf 65 #define fmod posix_fmod 66 #define pow posix_pow 67 #define exp posix_exp 68 #define sqrt posix_sqrt 69 #define log posix_log 70 #define sin posix_sin 71 #define cos posix_cos 72 #define atan2 posix_atan2 45 73 #endif 46 74 -
uspace/lib/posix/include/posix/stdio.h
ra21d837 rc8830a2 61 61 62 62 typedef struct _IO_FILE FILE; 63 64 #ifndef LIBPOSIX_INTERNAL 65 enum _buffer_type { 66 /** No buffering */ 67 _IONBF, 68 /** Line buffering */ 69 _IOLBF, 70 /** Full buffering */ 71 _IOFBF 72 }; 73 #endif 63 74 64 75 extern FILE *stdin; -
uspace/lib/posix/source/math.c
ra21d837 rc8830a2 62 62 } 63 63 64 /** 65 * 66 * @param x 67 * @return 68 */ 69 double posix_cos(double x) 70 { 71 // TODO: Python dependency 72 not_implemented(); 73 } 74 75 /** 76 * 77 * @param x 78 * @param y 79 * @return 80 */ 81 double posix_pow(double x, double y) 82 { 83 // TODO: Python dependency 84 not_implemented(); 85 } 86 87 /** 88 * 89 * @param x 90 * @return 91 */ 92 double posix_floor(double x) 93 { 94 // TODO: Python dependency 95 not_implemented(); 96 } 97 98 /** 99 * 100 * @param x 101 * @return 102 */ 103 double posix_fabs(double x) 104 { 105 // TODO: Python dependency 106 not_implemented(); 107 } 108 109 /** 110 * 111 * @param x 112 * @param iptr 113 * @return 114 */ 115 double posix_modf(double x, double *iptr) 116 { 117 // TODO: Python dependency 118 not_implemented(); 119 } 120 121 /** 122 * 123 * @param x 124 * @param y 125 * @return 126 */ 127 double posix_fmod(double x, double y) 128 { 129 // TODO: Python dependency 130 not_implemented(); 131 } 132 133 /** 134 * 135 * @param x 136 * @return 137 */ 138 double posix_log(double x) 139 { 140 // TODO: Python dependency 141 not_implemented(); 142 } 143 144 /** 145 * 146 * @param x 147 * @param y 148 * @return 149 */ 150 double posix_atan2(double y, double x) 151 { 152 // TODO: Python dependency 153 not_implemented(); 154 } 155 156 /** 157 * 158 * @param x 159 * @return 160 */ 161 double posix_sin(double x) 162 { 163 // TODO: Python dependency 164 not_implemented(); 165 } 166 167 /** 168 * 169 * @param x 170 * @return 171 */ 172 double posix_exp(double x) 173 { 174 // TODO: Python dependency 175 not_implemented(); 176 } 177 178 /** 179 * 180 * @param x 181 * @return 182 */ 183 double posix_sqrt(double x) 184 { 185 // TODO: Python dependency 186 not_implemented(); 187 } 188 64 189 /** @} 65 190 */
Note:
See TracChangeset
for help on using the changeset viewer.