Changeset 06b0211b in mainline for uspace/lib/posix/include


Ignore:
Timestamp:
2013-04-29T11:29:45Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aa2b32c
Parents:
ba4799a (diff), df956b9b (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.
Message:

Merge mainline changes

Location:
uspace/lib/posix/include/posix
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/fcntl.h

    rba4799a r06b0211b  
    4848#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
    4949
     50/* Dummy compatibility flag */
     51#undef O_NOCTTY
     52#define O_NOCTTY 0
     53
    5054/* fcntl commands */
    5155#undef F_DUPFD
  • uspace/lib/posix/include/posix/float.h

    rba4799a r06b0211b  
    3636#define POSIX_FLOAT_H_
    3737
    38 /*
    39  * The macros defined below are needed for compilation of MPFR
    40  * (http://www.mpfr.org/). Probably, they should be provided by GCC
    41  * itself but that does not work for cross-compilation.
    42  *
     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#else
     64/* For something else than GCC, following definitions are provided.
    4365 * They are intentionally guarded by the given macro to ensure that anyone
    4466 * who wants them states this explicitly.
     
    5072 */
    5173#ifdef FLOAT_H_YES_I_REALLY_WANT_LIMITS
    52 
    5374/* float limits */
    5475#define FLT_MIN 1.1754943508222875079687365372222456778186655567720875215087517062784172594547271728515625e-38
     
    82103#endif
    83104
     105#endif /* __GNUC__ */
     106
    84107#endif /* POSIX_FLOAT_H_ */
    85108
  • uspace/lib/posix/include/posix/limits.h

    rba4799a r06b0211b  
    4949#define PATH_MAX 256
    5050
     51/* it's probably a safe assumption */
     52#undef CHAR_BIT
     53#define CHAR_BIT 8
     54
    5155#endif /* POSIX_LIMITS_H_ */
    5256
  • uspace/lib/posix/include/posix/math.h

    rba4799a r06b0211b  
    4040#endif
    4141
     42#ifdef __GNUC__
     43        #define HUGE_VAL (__builtin_huge_val())
     44#endif
     45
    4246/* Normalization Functions */
    4347extern double __POSIX_DEF__(ldexp)(double x, int exp);
    4448extern double __POSIX_DEF__(frexp)(double num, int *exp);
    4549
     50double __POSIX_DEF__(fabs)(double x);
     51double __POSIX_DEF__(floor)(double x);
     52double __POSIX_DEF__(modf)(double x, double *iptr);
     53double __POSIX_DEF__(fmod)(double x, double y);
     54double __POSIX_DEF__(pow)(double x, double y);
     55double __POSIX_DEF__(exp)(double x);
     56double __POSIX_DEF__(sqrt)(double x);
     57double __POSIX_DEF__(log)(double x);
     58double __POSIX_DEF__(sin)(double x);
     59double __POSIX_DEF__(cos)(double x);
     60double __POSIX_DEF__(atan2)(double y, double x);
    4661
    4762#endif /* POSIX_MATH_H_ */
  • uspace/lib/posix/include/posix/stdio.h

    rba4799a r06b0211b  
    7070
    7171typedef struct _IO_FILE FILE;
     72
     73#ifndef LIBPOSIX_INTERNAL
     74        enum _buffer_type {
     75                /** No buffering */
     76                _IONBF,
     77                /** Line buffering */
     78                _IOLBF,
     79                /** Full buffering */
     80                _IOFBF
     81        };
     82#endif
    7283
    7384extern FILE *stdin;
Note: See TracChangeset for help on using the changeset viewer.