-char *silc_file_readfile(const char *filename, SilcUInt32 *return_len);
-int silc_file_writefile(const char *filename, const char *buffer, SilcUInt32 len);
-int silc_file_writefile_mode(const char *filename, const char *buffer,
+
+/****f* silcutil/SilcFileUtilAPI/silc_file_set_nonblock
+ *
+ * SYNOPSIS
+ *
+ * int silc_file_set_nonblock(int fd);
+ *
+ * DESCRIPTION
+ *
+ * Sets the file descriptor to non-blocking mode.
+ *
+ ***/
+int silc_file_set_nonblock(int fd);
+
+/****f* silcutil/SilcFileUtilAPI/silc_file_readfile
+ *
+ * SYNOPSIS
+ *
+ * char *silc_file_readfile(const char *filename, SilcUInt32 *return_len,
+ * SilcStack stack);
+ *
+ * DESCRIPTION
+ *
+ * Reads the content of `filename' to a buffer. The allocated buffer is
+ * returned. This does not NULL terminate the buffer but EOF terminate
+ * it. The caller must replace the EOF with NULL if the buffer must be
+ * NULL terminated.
+ *
+ * If the `return_len' pointer is not NULL, it's filled with the length of
+ * the file.
+ *
+ * If `stack' is non-NULL the returned buffer is allocated from `stack'.
+ * The allocation consumes `stack' so caller should push the stack before
+ * calling this function and pop it later.
+ *
+ ***/
+char *silc_file_readfile(const char *filename, SilcUInt32 *return_len,
+ SilcStack stack);
+
+/****f* silcutil/SilcFileUtilAPI/silc_file_writefile
+ *
+ * SYNOPSIS
+ *
+ * int silc_file_writefile(const char *filename, const char *buffer,
+ * SilcUInt32 len);
+ *
+ * DESCRIPTION
+ *
+ * Writes a buffer to the file. If the file is created specific mode is
+ * set to the file.
+ *
+ ***/
+int silc_file_writefile(const char *filename, const char *buffer,
+ SilcUInt32 len);
+
+/****f* silcutil/SilcFileUtilAPI/silc_file_writefile_mode
+ *
+ * SYNOPSIS
+ *
+ * int silc_file_writefile_mode(const char *filename, const char *buffer,
+ * SilcUInt32 len, int mode);
+ *
+ * DESCRIPTION
+ *
+ * Writes a buffer to the file. If the file is created the specified `mode'
+ * is set to the file.
+ *
+ ***/
+int silc_file_writefile_mode(const char *filename, const char *buffer,