/***************************************************************************
                          misc_sys.h  -  description
                             -------------------
    begin                : Fri Jan 17 2003
    copyright            : (C) 2003 by Tim-Philipp Müller
    email                : t.i.m@orange.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef _ED2K_GUI_MISC_SYS_H_INCLUDED_
#define _ED2K_GUI_MISC_SYS_H_INCLUDED_

#include <glib.h>
#include <time.h>

time_t     misc_sys_get_uptime_in_secs (void);

gboolean   misc_sys_get_max_open_files (glong *max_open);

gboolean   misc_sys_get_pid_open_files (gulong pid, glong *num_open);

void       misc_sys_set_rlimit_to_max_open_fd_possible (void);

glong      misc_sys_stat_file_size(const gchar *filename);

#endif



