summaryrefslogtreecommitdiff
path: root/lib/util.h (plain)
blob: f964dcc9d49560e24691332fcda7ef1c908d6d7e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* util.h
 *
 * Copyright (C) 2007-2009 Tillmann Werner <tillmann.werner@gmx.de>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License Version 2 as
 * published by the Free Software Foundation.  You may not use, modify or
 * distribute this program under any other version of the GNU General
 * Public License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 *
 * $Id$
 */

#ifndef __NEBULA_CLIENT_UTIL_H
#define __NEBULA_CLIENT_UTIL_H 1

#if HAVE_CONFIG_H
# include <config.h>
#endif

#include <dirent.h>
#include <sys/types.h>

int nebula_read_line(int fd, char *line, ssize_t len);

int regular_file(struct dirent *e);

int timesort(const void *a, const void *b);

#endif