Index: uspace/lib/posix/fnmatch.c
===================================================================
--- uspace/lib/posix/fnmatch.c	(revision e6165bed4794b3ee0af1ee32530fbf6bebde35bf)
+++ uspace/lib/posix/fnmatch.c	(revision 55b1efdf7543e6d4c2b3b3ddc286283113cfb605)
@@ -66,7 +66,8 @@
 #define COLL_ELM_INVALID -1
 
-/** Get collating element matching a string.
- *
- * @param str
+/**
+ * Get collating element matching a string.
+ *
+ * @param str String representation of the element.
  * @return Matching collating element or COLL_ELM_INVALID.
  */
@@ -79,8 +80,9 @@
 }
 
-/** Get collating element matching a single character.
- *
- * @param c
- * @return
+/**
+ * Get collating element matching a single character.
+ *
+ * @param c Character representation of the element.
+ * @return Matching collating element.
  */
 static coll_elm_t _coll_elm_char(int c)
@@ -89,8 +91,9 @@
 }
 
-/** Match collating element with a beginning of a string.
- *
- * @param elm
- * @param str
+/**
+ * Match collating element with a beginning of a string.
+ *
+ * @param elm Collating element to match.
+ * @param str String which beginning should match the element.
  * @return 0 if the element doesn't match, or the number of characters matched.
  */
@@ -100,6 +103,7 @@
 }
 
-/** Checks whether a string begins with a collating element in the given range.
- *  Ordering depends on the locale (if locales are supported).
+/**
+ * Checks whether a string begins with a collating element in the given range.
+ * Ordering depends on the locale (if locales are supported).
  *
  * @param first First element of the range.
@@ -114,5 +118,6 @@
 }
 
-/** Read a string delimited by [? and ?].
+/**
+ * Read a string delimited by [? and ?].
  *
  * @param pattern Pointer to the string to read from. Its position is moved
@@ -189,9 +194,10 @@
 };
 
-/** Compare function for binary search in the _char_classes array. 
+/**
+ * Compare function for binary search in the _char_classes array.
  * 
- * @param key
- * @param elem
- * @return
+ * @param key Key of the searched element.
+ * @param elem Element of _char_classes array.
+ * @return Ordering indicator (-1 less than, 0 equal, 1 greater than).
  */
 static int _class_compare(const void *key, const void *elem)
@@ -201,5 +207,6 @@
 }
 
-/** Returns whether the given character belongs to the specified character class.
+/**
+ * Returns whether the given character belongs to the specified character class.
  * 
  * @param cname Name of the character class.
@@ -223,6 +230,7 @@
 }
 
-/** Tries to parse an initial part of the pattern as a character class pattern,
- *  and if successful, matches the beginning of the given string against the class.
+/**
+ * Tries to parse an initial part of the pattern as a character class pattern,
+ * and if successful, matches the beginning of the given string against the class.
  * 
  * @param pattern Pointer to the pattern to match. Must begin with a class
@@ -248,6 +256,7 @@
 /************** END CHARACTER CLASSES ****************/
 
-/** Reads the next collating element in the pattern, taking into account
- *  locale (if supported) and flags (see fnmatch()).
+/**
+ * Reads the next collating element in the pattern, taking into account
+ * locale (if supported) and flags (see fnmatch()).
  * 
  * @param pattern Pattern.
@@ -299,6 +308,7 @@
 }
 
-/** Matches the beginning of the given string against a bracket expression
- *  the pattern begins with.
+/**
+ * Matches the beginning of the given string against a bracket expression
+ * the pattern begins with.
  * 
  * @param pattern Pointer to the beginning of a bracket expression in a pattern.
@@ -394,6 +404,7 @@
 }
 
-/** Matches a portion of the pattern containing no asterisks (*) against
- *  the given string.
+/**
+ * Matches a portion of the pattern containing no asterisks (*) against
+ * the given string.
  * 
  * @param pattern Pointer to the unmatched portion of the pattern.
@@ -497,5 +508,6 @@
 }
 
-/** Match string against a pattern.
+/**
+ * Match string against a pattern.
  * 
  * @param pattern Pattern.
@@ -559,5 +571,6 @@
 }
 
-/** Transform the entire string to lowercase.
+/**
+ * Transform the entire string to lowercase.
  * 
  * @param s Input string.
@@ -578,8 +591,9 @@
  * Filename pattern matching.
  *
- * @param pattern
- * @param string
- * @param flags
- * @return
+ * @param pattern Pattern to match the string against.
+ * @param string Matched string.
+ * @param flags Flags altering the matching of special characters
+ *     (mainly for dot and slash).
+ * @return Zero if the string matches the pattern, FNM_NOMATCH otherwise.
  */
 int posix_fnmatch(const char *pattern, const char *string, int flags)
Index: uspace/lib/posix/locale.c
===================================================================
--- uspace/lib/posix/locale.c	(revision e6165bed4794b3ee0af1ee32530fbf6bebde35bf)
+++ uspace/lib/posix/locale.c	(revision 55b1efdf7543e6d4c2b3b3ddc286283113cfb605)
@@ -79,5 +79,6 @@
 };
 
-/** Set program locale.
+/**
+ * Set program locale.
  * 
  * @param category What category to set.
@@ -95,5 +96,6 @@
 }
 
-/** Return locale-specific information.
+/**
+ * Return locale-specific information.
  * 
  * @return Information about the current locale.
@@ -105,5 +107,6 @@
 }
 
-/** Duplicate locale object.
+/**
+ * Duplicate locale object.
  * 
  * @param locobj Object to duplicate.
@@ -125,5 +128,6 @@
 }
 
-/** Free locale object.
+/**
+ * Free locale object.
  * 
  * @param locobj Object to free.
@@ -136,5 +140,6 @@
 }
 
-/** Create or modify a locale object.
+/**
+ * Create or modify a locale object.
  * 
  * @param category_mask Mask of categories to be set or modified.
@@ -163,5 +168,6 @@
 }
 
-/** Set locale for the current thread.
+/**
+ * Set locale for the current thread.
  * 
  * @param newloc Locale to use.
Index: uspace/lib/posix/signal.c
===================================================================
--- uspace/lib/posix/signal.c	(revision e6165bed4794b3ee0af1ee32530fbf6bebde35bf)
+++ uspace/lib/posix/signal.c	(revision 55b1efdf7543e6d4c2b3b3ddc286283113cfb605)
@@ -136,7 +136,8 @@
 }
 
-/** Just an empty function to get an unique pointer value for comparison.
- *
- * @param signo
+/**
+ * Just an empty function to get an unique pointer value for comparison.
+ *
+ * @param signo Signal number.
  */
 void __posix_hold_signal_handler(int signo)
@@ -145,7 +146,8 @@
 }
 
-/** Empty function to be used as ignoring handler.
- * 
- * @param signo
+/**
+ * Empty function to be used as ignoring handler.
+ * 
+ * @param signo Signal number.
  */
 void __posix_ignore_signal_handler(int signo)
@@ -154,5 +156,6 @@
 }
 
-/** Clear the signal set.
+/**
+ * Clear the signal set.
  * 
  * @param set Pointer to the signal set.
@@ -167,5 +170,6 @@
 }
 
-/** Fill the signal set (i.e. add all signals).
+/**
+ * Fill the signal set (i.e. add all signals).
  * 
  * @param set Pointer to the signal set.
@@ -180,5 +184,6 @@
 }
 
-/** Add a signal to the set.
+/**
+ * Add a signal to the set.
  * 
  * @param set Pointer to the signal set.
@@ -194,5 +199,6 @@
 }
 
-/** Delete a signal from the set.
+/**
+ * Delete a signal from the set.
  * 
  * @param set Pointer to the signal set.
@@ -208,5 +214,6 @@
 }
 
-/** Inclusion test for a signal set.
+/**
+ * Inclusion test for a signal set.
  * 
  * @param set Pointer to the signal set.
@@ -221,7 +228,8 @@
 }
 
-/** Unsafe variant of the sigaction() function.
- *  Doesn't do any checking of its arguments and
- *  does not deal with thread-safety.
+/**
+ * Unsafe variant of the sigaction() function.
+ * Doesn't do any checking of its arguments and
+ * does not deal with thread-safety.
  * 
  * @param sig
@@ -243,5 +251,6 @@
 }
 
-/** Sets a new action for the given signal number.
+/**
+ * Sets a new action for the given signal number.
  * 
  * @param sig Signal number to set action for.
@@ -276,5 +285,6 @@
 }
 
-/** Sets a new handler for the given signal number.
+/**
+ * Sets a new handler for the given signal number.
  * 
  * @param sig Signal number to set handler for.
@@ -304,5 +314,6 @@
 } signal_queue_item;
 
-/** Queue blocked signal.
+/**
+ * Queue blocked signal.
  *
  * @param signo Signal number.
@@ -322,5 +333,6 @@
 
 
-/** Executes an action associated with the given signal.
+/**
+ * Executes an action associated with the given signal.
  *
  * @param signo Signal number.
@@ -366,5 +378,6 @@
 }
 
-/** Raise all unblocked previously queued signals.
+/**
+ * Raise all unblocked previously queued signals.
  */
 static void _dequeue_unblocked_signals()
@@ -390,5 +403,6 @@
 }
 
-/** Raise a signal for the calling process.
+/**
+ * Raise a signal for the calling process.
  * 
  * @param sig Signal number.
@@ -409,5 +423,6 @@
 }
 
-/** Raises a signal for a selected process.
+/**
+ * Raises a signal for a selected process.
  * 
  * @param pid PID of the process for which the signal shall be raised.
@@ -446,6 +461,7 @@
 }
 
-/** Send a signal to a process group. Always fails at the moment because of
- *  lack of this functionality in HelenOS.
+/**
+ * Send a signal to a process group. Always fails at the moment because of
+ * lack of this functionality in HelenOS.
  * 
  * @param pid PID of the process group.
@@ -459,5 +475,6 @@
 }
 
-/** Outputs information about the signal to the standard error stream.
+/**
+ * Outputs information about the signal to the standard error stream.
  * 
  * @param pinfo SigInfo struct to write.
@@ -471,5 +488,6 @@
 }
 
-/** Outputs information about the signal to the standard error stream.
+/**
+ * Outputs information about the signal to the standard error stream.
  * 
  * @param signum Signal number.
@@ -486,5 +504,6 @@
 }
 
-/** Manipulate the signal mask of the calling thread.
+/**
+ * Manipulate the signal mask of the calling thread.
  * 
  * @param how What to do with the mask.
@@ -525,5 +544,6 @@
 }
 
-/** Manipulate the signal mask of the process.
+/**
+ * Manipulate the signal mask of the process.
  * 
  * @param how What to do with the mask.
Index: uspace/lib/posix/stdio.h
===================================================================
--- uspace/lib/posix/stdio.h	(revision e6165bed4794b3ee0af1ee32530fbf6bebde35bf)
+++ uspace/lib/posix/stdio.h	(revision 55b1efdf7543e6d4c2b3b3ddc286283113cfb605)
@@ -140,6 +140,4 @@
 
 	#define freopen posix_freopen
-	#define fmemopen posix_fmemopen
-	#define open_memstream posix_open_memstream
 
 	#define perror posix_perror
Index: uspace/lib/posix/time.c
===================================================================
--- uspace/lib/posix/time.c	(revision e6165bed4794b3ee0af1ee32530fbf6bebde35bf)
+++ uspace/lib/posix/time.c	(revision 55b1efdf7543e6d4c2b3b3ddc286283113cfb605)
@@ -51,5 +51,4 @@
 #include "libc/sys/time.h"
 
-// TODO: documentation
 // TODO: test everything in this file
 
@@ -72,5 +71,6 @@
 #define SECS_PER_DAY (SECS_PER_HOUR * HOURS_PER_DAY)
 
-/** Checks whether the year is a leap year.
+/**
+ * Checks whether the year is a leap year.
  *
  * @param year Year since 1900 (e.g. for 1970, the value is 70).
@@ -90,6 +90,7 @@
 }
 
-/** Returns how many days there are in the given month of the given year.
- *  Note that year is only taken into account if month is February.
+/**
+ * Returns how many days there are in the given month of the given year.
+ * Note that year is only taken into account if month is February.
  *
  * @param year Year since 1900 (can be negative).
@@ -113,6 +114,7 @@
 }
 
-/** For specified year, month and day of month, returns which day of that year
- *  it is.
+/**
+ * For specified year, month and day of month, returns which day of that year
+ * it is.
  *
  * For example, given date 2011-01-03, the corresponding expression is:
@@ -134,10 +136,11 @@
 }
 
-/** Integer division that rounds to negative infinity.
- *  Used by some functions in this file.
- *
- * @param op1
- * @param op2
- * @return
+/**
+ * Integer division that rounds to negative infinity.
+ * Used by some functions in this file.
+ *
+ * @param op1 Divident.
+ * @param op2 Divisor.
+ * @return Rounded quotient.
  */
 static time_t _floor_div(time_t op1, time_t op2)
@@ -150,10 +153,11 @@
 }
 
-/** Modulo that rounds to negative infinity.
- *  Used by some functions in this file.
- *
- * @param op1
- * @param op2
- * @return
+/**
+ * Modulo that rounds to negative infinity.
+ * Used by some functions in this file.
+ *
+ * @param op1 Divident.
+ * @param op2 Divisor.
+ * @return Remainder.
  */
 static time_t _floor_mod(time_t op1, time_t op2)
@@ -174,6 +178,7 @@
 }
 
-/** Number of days since the Epoch.
- *  Epoch is 1970-01-01, which is also equal to day 0.
+/**
+ * Number of days since the Epoch.
+ * Epoch is 1970-01-01, which is also equal to day 0.
  *
  * @param year Year (year 1900 = 0, may be negative).
@@ -189,5 +194,6 @@
 }
 
-/** Seconds since the Epoch. see also _days_since_epoch().
+/**
+ * Seconds since the Epoch. see also _days_since_epoch().
  * 
  * @param tm Normalized broken-down time.
@@ -201,5 +207,6 @@
 }
 
-/** Which day of week the specified date is.
+/**
+ * Which day of week the specified date is.
  * 
  * @param year Year (year 1900 = 0).
@@ -214,6 +221,7 @@
 }
 
-/** Normalizes the broken-down time and optionally adds specified amount of
- *  seconds.
+/**
+ * Normalizes the broken-down time and optionally adds specified amount of
+ * seconds.
  * 
  * @param tm Broken-down time to normalize.
@@ -297,6 +305,7 @@
 }
 
-/** Which day the week-based year starts on, relative to the first calendar day.
- *  E.g. if the year starts on December 31st, the return value is -1.
+/**
+ * Which day the week-based year starts on, relative to the first calendar day.
+ * E.g. if the year starts on December 31st, the return value is -1.
  *
  * @param Year since 1900.
@@ -309,5 +318,6 @@
 }
 
-/** Returns week-based year of the specified time.
+/**
+ * Returns week-based year of the specified time.
  *
  * @param tm Normalized broken-down time.
@@ -329,7 +339,8 @@
 }
 
-/** Week number of the year, assuming weeks start on sunday.
- *  The first Sunday of January is the first day of week 1;
- *  days in the new year before this are in week 0.
+/**
+ * Week number of the year, assuming weeks start on sunday.
+ * The first Sunday of January is the first day of week 1;
+ * days in the new year before this are in week 0.
  *
  * @param tm Normalized broken-down time.
@@ -342,9 +353,10 @@
 }
 
-/** Week number of the year, assuming weeks start on monday.
- *  If the week containing January 1st has four or more days in the new year,
- *  then it is considered week 1. Otherwise, it is the last week of the previous
- *  year, and the next week is week 1. Both January 4th and the first Thursday
- *  of January are always in week 1.
+/**
+ * Week number of the year, assuming weeks start on monday.
+ * If the week containing January 1st has four or more days in the new year,
+ * then it is considered week 1. Otherwise, it is the last week of the previous
+ * year, and the next week is week 1. Both January 4th and the first Thursday
+ * of January are always in week 1.
  *
  * @param tm Normalized broken-down time.
@@ -366,7 +378,8 @@
 }
 
-/** Week number of the year, assuming weeks start on monday.
- *  The first Monday of January is the first day of week 1;
- *  days in the new year before this are in week 0. 
+/**
+ * Week number of the year, assuming weeks start on monday.
+ * The first Monday of January is the first day of week 1;
+ * days in the new year before this are in week 0. 
  *
  * @param tm Normalized broken-down time.
@@ -385,6 +398,6 @@
 char *posix_tzname[2];
 
-/** Set timezone conversion information.
- * 
+/**
+ * Set timezone conversion information.
  */
 void posix_tzset(void)
@@ -397,8 +410,9 @@
 }
 
-/** Calculate the difference between two times, in seconds.
- * 
- * @param time1
- * @param time0
+/**
+ * Calculate the difference between two times, in seconds.
+ * 
+ * @param time1 First time.
+ * @param time0 Second time.
  * @return Time in seconds.
  */
@@ -408,10 +422,11 @@
 }
 
-/** This function first normalizes the provided broken-down time
- *  (moves all values to their proper bounds) and then tries to
- *  calculate the appropriate time_t representation.
+/**
+ * This function first normalizes the provided broken-down time
+ * (moves all values to their proper bounds) and then tries to
+ * calculate the appropriate time_t representation.
  *
  * @param tm Broken-down time.
- * @return time_t representation of the time, undefined value on overflow
+ * @return time_t representation of the time, undefined value on overflow.
  */
 time_t posix_mktime(struct posix_tm *tm)
@@ -424,5 +439,6 @@
 }
 
-/** Converts a time value to a broken-down UTC time.
+/**
+ * Converts a time value to a broken-down UTC time.
  *
  * @param timer Time to convert.
@@ -437,5 +453,6 @@
 }
 
-/** Converts a time value to a broken-down UTC time.
+/**
+ * Converts a time value to a broken-down UTC time.
  * 
  * @param timer Time to convert.
@@ -465,5 +482,6 @@
 }
 
-/** Converts a time value to a broken-down local time.
+/**
+ * Converts a time value to a broken-down local time.
  *
  * @param timer Time to convert.
@@ -476,5 +494,6 @@
 }
 
-/** Converts a time value to a broken-down local time.
+/**
+ * Converts a time value to a broken-down local time.
  * 
  * @param timer Time to convert.
@@ -490,6 +509,7 @@
 }
 
-/** Converts broken-down time to a string in format
- *  "Sun Jan 1 00:00:00 1970\n". (Obsolete)
+/**
+ * Converts broken-down time to a string in format
+ * "Sun Jan 1 00:00:00 1970\n". (Obsolete)
  *
  * @param timeptr Broken-down time structure.
@@ -502,6 +522,7 @@
 }
 
-/** Converts broken-down time to a string in format
- *  "Sun Jan 1 00:00:00 1970\n". (Obsolete)
+/**
+ * Converts broken-down time to a string in format
+ * "Sun Jan 1 00:00:00 1970\n". (Obsolete)
  *
  * @param timeptr Broken-down time structure.
@@ -534,5 +555,6 @@
 }
 
-/** Equivalent to asctime(localtime(clock)).
+/**
+ * Equivalent to asctime(localtime(clock)).
  * 
  * @param timer Time to convert.
@@ -548,5 +570,6 @@
 }
 
-/** Reentrant variant of ctime().
+/**
+ * Reentrant variant of ctime().
  * 
  * @param timer Time to convert.
@@ -564,6 +587,7 @@
 }
 
-/** Convert time and date to a string, based on a specified format and
- *  current locale.
+/**
+ * Convert time and date to a string, based on a specified format and
+ * current locale.
  * 
  * @param s Buffer to write string to.
@@ -755,5 +779,6 @@
 }
 
-/** Get clock resolution. Only CLOCK_REALTIME is supported.
+/**
+ * Get clock resolution. Only CLOCK_REALTIME is supported.
  *
  * @param clock_id Clock ID.
@@ -776,9 +801,10 @@
 }
 
-/** Get time. Only CLOCK_REALTIME is supported.
+/**
+ * Get time. Only CLOCK_REALTIME is supported.
  * 
  * @param clock_id ID of the clock to query.
  * @param tp Pointer to the variable where the time is to be written.
- * @return
+ * @return 0 on success, -1 with errno on failure.
  */
 int posix_clock_gettime(posix_clockid_t clock_id, struct posix_timespec *tp)
@@ -800,6 +826,7 @@
 }
 
-/** Set time on a specified clock. As HelenOS doesn't support this yet,
- *  this function always fails.
+/**
+ * Set time on a specified clock. As HelenOS doesn't support this yet,
+ * this function always fails.
  * 
  * @param clock_id ID of the clock to set.
@@ -825,5 +852,6 @@
 }
 
-/** Sleep on a specified clock.
+/**
+ * Sleep on a specified clock.
  * 
  * @param clock_id ID of the clock to sleep on (only CLOCK_REALTIME supported).
@@ -855,5 +883,6 @@
 }
 
-/** Get CPU time used since the process invocation.
+/**
+ * Get CPU time used since the process invocation.
  *
  * @return Consumed CPU cycles by this process or -1 if not available.
Index: uspace/lib/posix/time.h
===================================================================
--- uspace/lib/posix/time.h	(revision e6165bed4794b3ee0af1ee32530fbf6bebde35bf)
+++ uspace/lib/posix/time.h	(revision 55b1efdf7543e6d4c2b3b3ddc286283113cfb605)
@@ -162,11 +162,5 @@
 	#define clock_settime posix_clock_settime
 	#define clock_nanosleep posix_clock_nanosleep
-	
-	#define timer_create posix_timer_create
-	#define timer_delete posix_timer_delete
-	#define timer_getoverrun posix_timer_getoverrun
-	#define timer_gettime posix_timer_gettime
-	#define timer_settime posix_timer_settime
-	
+
 	#define clock posix_clock
 #endif
