Changes in / [9df6b0f:7ddc2c7] in mainline
- Location:
- uspace/lib/posix
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/Makefile
r9df6b0f r7ddc2c7 36 36 37 37 INCLUDE_LIBC = ./include/libc 38 INCLUDE_LIBMATH = ./include/libmath 38 39 39 40 LIBC_FILE = $(LIBC_PREFIX)/libc.a … … 46 47 COLLISIONS_LIST = collisions.list 47 48 48 PRE_DEPEND = $(INCLUDE_LIBC) 49 PRE_DEPEND = $(INCLUDE_LIBC) $(INCLUDE_LIBMATH) 49 50 EXTRA_CLEAN = \ 50 $(INCLUDE_LIBC) \51 $(INCLUDE_LIBC) $(INCLUDE_LIBMATH) \ 51 52 $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX) \ 52 53 $(COLLISIONS_LIST) … … 84 85 ln -s -f -n ../$^ $@ 85 86 87 $(INCLUDE_LIBMATH): ../math/include 88 ln -s -f -n ../$^ $@ 89 86 90 $(FIXED_C_LIBRARY): $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX) 87 91 $(OBJCOPY) --redefine-syms=$(REDEFS_HIDE_LIBC) $(LIBC_FILE) $@ -
uspace/lib/posix/include/posix/math.h
r9df6b0f r7ddc2c7 31 31 */ 32 32 /** @file Mathematical operations. 33 *34 * The purpose of this file is only to provide prototypes of mathematical35 * functions defined by C standard and by POSIX.36 *37 * It is up to the application to correctly link with either libmath38 * (provided by HelenOS) or by some other math library (such as fdlibm).39 33 */ 40 34 … … 42 36 #define POSIX_MATH_H_ 43 37 44 #ifdef __GNUC__ 45 #define HUGE_VAL (__builtin_huge_val()) 46 #endif 47 48 extern double ldexp(double, int); 49 extern double frexp(double, int *); 50 51 extern double fabs(double); 52 extern double floor(double); 53 extern double ceil(double); 54 extern double modf(double, double *); 55 extern double fmod(double, double); 56 extern double pow(double, double); 57 extern double exp(double); 58 extern double frexp(double, int *); 59 extern double expm1(double); 60 extern double sqrt(double); 61 extern double log(double); 62 extern double log10(double); 63 extern double sin(double); 64 extern double sinh(double); 65 extern double asin(double); 66 extern double asinh(double); 67 extern double cos(double); 68 extern double cosh(double); 69 extern double acos(double); 70 extern double acosh(double); 71 extern double tan(double); 72 extern double tanh(double); 73 extern double atan(double); 74 extern double atanh(double); 75 extern double atan2(double, double); 76 extern double copysign(double, double); 38 #include "libmath/math.h" 77 39 78 40 #endif /* POSIX_MATH_H_ */ -
uspace/lib/posix/include/posix/stdio.h
r9df6b0f r7ddc2c7 64 64 #define EOF (-1) 65 65 66 /** Size of buffers used in stdio header. */67 66 #define BUFSIZ 4096 68 69 /** Maximum size in bytes of the longest filename. */70 #define FILENAME_MAX 409671 67 72 68 typedef struct _IO_FILE FILE; … … 159 155 160 156 /* File Positioning */ 161 typedef struct { 162 off64_t offset; 163 } __POSIX_DEF__(fpos_t); 164 157 typedef struct _posix_fpos __POSIX_DEF__(fpos_t); 165 158 extern int __POSIX_DEF__(fsetpos)(FILE *stream, const __POSIX_DEF__(fpos_t) *pos); 166 159 extern int __POSIX_DEF__(fgetpos)(FILE *restrict stream, __POSIX_DEF__(fpos_t) *restrict pos); -
uspace/lib/posix/source/stdio.c
r9df6b0f r7ddc2c7 309 309 } 310 310 311 struct _posix_fpos { 312 off64_t offset; 313 }; 314 311 315 /** Restores stream a to position previously saved with fgetpos(). 312 316 *
Note:
See TracChangeset
for help on using the changeset viewer.