Index: uspace/lib/posix/include/posix/fcntl.h
===================================================================
--- uspace/lib/posix/include/posix/fcntl.h	(revision 45f7449e0a82becbb9eb64d8afe4237b1bb85912)
+++ uspace/lib/posix/include/posix/fcntl.h	(revision 86d0c263cc77c028ccff0c4d9651abe25a22b5c6)
@@ -44,4 +44,8 @@
 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
 
+/* Dummy compatibility flag */
+#undef O_NOCTTY
+#define O_NOCTTY 0
+
 /* fcntl commands */
 #undef F_DUPFD
Index: uspace/lib/posix/include/posix/float.h
===================================================================
--- uspace/lib/posix/include/posix/float.h	(revision 45f7449e0a82becbb9eb64d8afe4237b1bb85912)
+++ uspace/lib/posix/include/posix/float.h	(revision 86d0c263cc77c028ccff0c4d9651abe25a22b5c6)
@@ -36,5 +36,30 @@
 #define POSIX_FLOAT_H_
 
-/* Empty. Just to satisfy preprocessor. */
+/* Rouding direction -1 - unknown */
+#define FLT_ROUNDS (-1)
+
+/* define some standard C constants in terms of GCC built-ins */
+#ifdef __GNUC__
+	#undef DBL_MANT_DIG
+	#define DBL_MANT_DIG __DBL_MANT_DIG__
+	#undef DBL_MIN_EXP
+	#define DBL_MIN_EXP __DBL_MIN_EXP__
+	#undef DBL_MAX_EXP
+	#define DBL_MAX_EXP __DBL_MAX_EXP__
+	#undef DBL_MAX
+	#define DBL_MAX __DBL_MAX__
+	#undef DBL_MAX_10_EXP
+	#define DBL_MAX_10_EXP __DBL_MAX_10_EXP__
+	#undef DBL_MIN_10_EXP
+	#define DBL_MIN_10_EXP __DBL_MIN_10_EXP__
+	#undef DBL_MIN
+	#define DBL_MIN __DBL_MIN__
+	#undef DBL_DIG
+	#define DBL_DIG __DBL_DIG__
+	#undef DBL_EPSILON
+	#define DBL_EPSILON __DBL_EPSILON__
+	#undef FLT_RADIX
+	#define FLT_RADIX __FLT_RADIX__
+#endif
 
 #endif /* POSIX_FLOAT_H_ */
Index: uspace/lib/posix/include/posix/limits.h
===================================================================
--- uspace/lib/posix/include/posix/limits.h	(revision 45f7449e0a82becbb9eb64d8afe4237b1bb85912)
+++ uspace/lib/posix/include/posix/limits.h	(revision 86d0c263cc77c028ccff0c4d9651abe25a22b5c6)
@@ -49,4 +49,8 @@
 #define PATH_MAX 256
 
+/* it's probably a safe assumption */
+#undef CHAR_BIT
+#define CHAR_BIT 8
+
 #endif /* POSIX_LIMITS_H_ */
 
Index: uspace/lib/posix/include/posix/math.h
===================================================================
--- uspace/lib/posix/include/posix/math.h	(revision 45f7449e0a82becbb9eb64d8afe4237b1bb85912)
+++ uspace/lib/posix/include/posix/math.h	(revision 86d0c263cc77c028ccff0c4d9651abe25a22b5c6)
@@ -36,11 +36,39 @@
 #define POSIX_MATH_H_
 
+#ifdef __GNUC__
+	#define HUGE_VAL (__builtin_huge_val())
+#endif
+
 /* Normalization Functions */
 extern double posix_ldexp(double x, int exp);
 extern double posix_frexp(double num, int *exp);
 
+double posix_fabs(double x);
+double posix_floor(double x);
+double posix_modf(double x, double *iptr);
+double posix_fmod(double x, double y);
+double posix_pow(double x, double y);
+double posix_exp(double x);
+double posix_sqrt(double x);
+double posix_log(double x);
+double posix_sin(double x);
+double posix_cos(double x);
+double posix_atan2(double y, double x);
+
 #ifndef LIBPOSIX_INTERNAL
 	#define ldexp posix_ldexp
 	#define frexp posix_frexp
+
+	#define fabs posix_fabs
+	#define floor posix_floor
+	#define modf posix_modf
+	#define fmod posix_fmod
+	#define pow posix_pow
+	#define exp posix_exp
+	#define sqrt posix_sqrt
+	#define log posix_log
+	#define sin posix_sin
+	#define cos posix_cos
+	#define atan2 posix_atan2
 #endif
 
Index: uspace/lib/posix/include/posix/stdio.h
===================================================================
--- uspace/lib/posix/include/posix/stdio.h	(revision 45f7449e0a82becbb9eb64d8afe4237b1bb85912)
+++ uspace/lib/posix/include/posix/stdio.h	(revision 86d0c263cc77c028ccff0c4d9651abe25a22b5c6)
@@ -61,4 +61,15 @@
 
 typedef struct _IO_FILE FILE;
+
+#ifndef LIBPOSIX_INTERNAL
+	enum _buffer_type {
+		/** No buffering */
+		_IONBF,
+		/** Line buffering */
+		_IOLBF,
+		/** Full buffering */
+		_IOFBF
+	};
+#endif
 
 extern FILE *stdin;
Index: uspace/lib/posix/source/math.c
===================================================================
--- uspace/lib/posix/source/math.c	(revision 45f7449e0a82becbb9eb64d8afe4237b1bb85912)
+++ uspace/lib/posix/source/math.c	(revision 86d0c263cc77c028ccff0c4d9651abe25a22b5c6)
@@ -62,4 +62,129 @@
 }
 
+/**
+ * 
+ * @param x
+ * @return
+ */
+double posix_cos(double x)
+{
+	// TODO: Python dependency
+	not_implemented();
+}
+
+/**
+ * 
+ * @param x
+ * @param y
+ * @return
+ */
+double posix_pow(double x, double y)
+{
+	// TODO: Python dependency
+	not_implemented();
+}
+
+/**
+ * 
+ * @param x
+ * @return
+ */
+double posix_floor(double x)
+{
+	// TODO: Python dependency
+	not_implemented();
+}
+
+/**
+ * 
+ * @param x
+ * @return
+ */
+double posix_fabs(double x)
+{
+	// TODO: Python dependency
+	not_implemented();
+}
+
+/**
+ * 
+ * @param x
+ * @param iptr
+ * @return
+ */
+double posix_modf(double x, double *iptr)
+{
+	// TODO: Python dependency
+	not_implemented();
+}
+
+/**
+ * 
+ * @param x
+ * @param y
+ * @return
+ */
+double posix_fmod(double x, double y)
+{
+	// TODO: Python dependency
+	not_implemented();
+}
+
+/**
+ * 
+ * @param x
+ * @return
+ */
+double posix_log(double x)
+{
+	// TODO: Python dependency
+	not_implemented();
+}
+
+/**
+ * 
+ * @param x
+ * @param y
+ * @return
+ */
+double posix_atan2(double y, double x)
+{
+	// TODO: Python dependency
+	not_implemented();
+}
+
+/**
+ * 
+ * @param x
+ * @return
+ */
+double posix_sin(double x)
+{
+	// TODO: Python dependency
+	not_implemented();
+}
+
+/**
+ * 
+ * @param x
+ * @return
+ */
+double posix_exp(double x)
+{
+	// TODO: Python dependency
+	not_implemented();
+}
+
+/**
+ * 
+ * @param x
+ * @return
+ */
+double posix_sqrt(double x)
+{
+	// TODO: Python dependency
+	not_implemented();
+}
+
 /** @}
  */
