]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - include/input.h
2 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #include <sys/types.h>
28 extern char **breakline(char *input
, int *count
);
29 extern void doneline(char *input
, char **vec
);
30 extern char *fetchline(void);
32 extern size_t numlen(uint64_t val
, size_t base
);
34 extern struct timeval
tadd(struct timeval t1
, struct timeval t2
);
35 extern struct timeval
tsub(struct timeval t1
, struct timeval t2
);
36 extern double tdiv(double value
, struct timeval tv
);
40 TERSE_FIXED_TIME
= 0x1,
41 VERBOSE_FIXED_TIME
= 0x2
44 extern void timestr(struct timeval
*tv
, char *str
, size_t sz
, int flags
);
46 extern bool isdigits_only(const char *str
);
47 extern int timespec_from_string(const char *sec
, const char *nsec
, struct timespec
*ts
);
49 #define HAVE_FTW_H 1 /* TODO: configure me */
58 int (*fn
)(const char *, const struct stat
*, int, struct FTW
*),
63 #endif /* __INPUT_H__ */