]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/convert.h
xfs_repair: don't fail directory repairs when grabbing inodes
[thirdparty/xfsprogs-dev.git] / include / convert.h
CommitLineData
b95410da
DW
1/*
2 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
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.
8 *
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.
13 *
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.
17 */
18#ifndef __CONVERT_H__
19#define __CONVERT_H__
20
21extern int64_t cvt_s64(char *s, int base);
22extern int32_t cvt_s32(char *s, int base);
23extern int16_t cvt_s16(char *s, int base);
24
25extern uint64_t cvt_u64(char *s, int base);
26extern uint32_t cvt_u32(char *s, int base);
27extern uint16_t cvt_u16(char *s, int base);
28
29extern long long cvtnum(size_t blocksize, size_t sectorsize, char *s);
30extern void cvtstr(double value, char *str, size_t sz);
31extern unsigned long cvttime(char *s);
32
33extern uid_t uid_from_string(char *user);
34extern gid_t gid_from_string(char *group);
35extern prid_t prid_from_string(char *project);
36
37#endif /* __CONVERT_H__ */