]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - include/input.h
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
11 #include <sys/types.h>
16 extern char **breakline(char *input
, int *count
);
17 extern void doneline(char *input
, char **vec
);
18 extern char *fetchline(void);
20 extern size_t numlen(uint64_t val
, size_t base
);
22 extern struct timeval
tadd(struct timeval t1
, struct timeval t2
);
23 extern struct timeval
tsub(struct timeval t1
, struct timeval t2
);
24 extern double tdiv(double value
, struct timeval tv
);
28 TERSE_FIXED_TIME
= 0x1,
29 VERBOSE_FIXED_TIME
= 0x2
32 extern void timestr(struct timeval
*tv
, char *str
, size_t sz
, int flags
);
34 extern bool isdigits_only(const char *str
);
35 extern int timespec_from_string(const char *sec
, const char *nsec
, struct timespec
*ts
);
37 #define HAVE_FTW_H 1 /* TODO: configure me */
46 int (*fn
)(const char *, const struct stat
*, int, struct FTW
*),
51 #endif /* __INPUT_H__ */