Changes in / [7ddc2c7:9df6b0f] in mainline
- Location:
- uspace/lib/posix
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/Makefile
r7ddc2c7 r9df6b0f 36 36 37 37 INCLUDE_LIBC = ./include/libc 38 INCLUDE_LIBMATH = ./include/libmath39 38 40 39 LIBC_FILE = $(LIBC_PREFIX)/libc.a … … 47 46 COLLISIONS_LIST = collisions.list 48 47 49 PRE_DEPEND = $(INCLUDE_LIBC) $(INCLUDE_LIBMATH)48 PRE_DEPEND = $(INCLUDE_LIBC) 50 49 EXTRA_CLEAN = \ 51 $(INCLUDE_LIBC) $(INCLUDE_LIBMATH)\50 $(INCLUDE_LIBC) \ 52 51 $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX) \ 53 52 $(COLLISIONS_LIST) … … 85 84 ln -s -f -n ../$^ $@ 86 85 87 $(INCLUDE_LIBMATH): ../math/include88 ln -s -f -n ../$^ $@89 90 86 $(FIXED_C_LIBRARY): $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX) 91 87 $(OBJCOPY) --redefine-syms=$(REDEFS_HIDE_LIBC) $(LIBC_FILE) $@ -
uspace/lib/posix/include/posix/math.h
r7ddc2c7 r9df6b0f 31 31 */ 32 32 /** @file Mathematical operations. 33 * 34 * The purpose of this file is only to provide prototypes of mathematical 35 * functions defined by C standard and by POSIX. 36 * 37 * It is up to the application to correctly link with either libmath 38 * (provided by HelenOS) or by some other math library (such as fdlibm). 33 39 */ 34 40 … … 36 42 #define POSIX_MATH_H_ 37 43 38 #include "libmath/math.h" 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); 39 77 40 78 #endif /* POSIX_MATH_H_ */ -
uspace/lib/posix/include/posix/stdio.h
r7ddc2c7 r9df6b0f 64 64 #define EOF (-1) 65 65 66 /** Size of buffers used in stdio header. */ 66 67 #define BUFSIZ 4096 68 69 /** Maximum size in bytes of the longest filename. */ 70 #define FILENAME_MAX 4096 67 71 68 72 typedef struct _IO_FILE FILE; … … 155 159 156 160 /* File Positioning */ 157 typedef struct _posix_fpos __POSIX_DEF__(fpos_t); 161 typedef struct { 162 off64_t offset; 163 } __POSIX_DEF__(fpos_t); 164 158 165 extern int __POSIX_DEF__(fsetpos)(FILE *stream, const __POSIX_DEF__(fpos_t) *pos); 159 166 extern int __POSIX_DEF__(fgetpos)(FILE *restrict stream, __POSIX_DEF__(fpos_t) *restrict pos); -
uspace/lib/posix/source/stdio.c
r7ddc2c7 r9df6b0f 309 309 } 310 310 311 struct _posix_fpos {312 off64_t offset;313 };314 315 311 /** Restores stream a to position previously saved with fgetpos(). 316 312 *
Note:
See TracChangeset
for help on using the changeset viewer.