]>
Commit | Line | Data |
---|---|---|
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 | ||
21 | extern int64_t cvt_s64(char *s, int base); | |
22 | extern int32_t cvt_s32(char *s, int base); | |
23 | extern int16_t cvt_s16(char *s, int base); | |
24 | ||
25 | extern uint64_t cvt_u64(char *s, int base); | |
26 | extern uint32_t cvt_u32(char *s, int base); | |
27 | extern uint16_t cvt_u16(char *s, int base); | |
28 | ||
29 | extern long long cvtnum(size_t blocksize, size_t sectorsize, char *s); | |
30 | extern void cvtstr(double value, char *str, size_t sz); | |
31 | extern unsigned long cvttime(char *s); | |
32 | ||
33 | extern uid_t uid_from_string(char *user); | |
34 | extern gid_t gid_from_string(char *group); | |
35 | extern prid_t prid_from_string(char *project); | |
36 | ||
37 | #endif /* __CONVERT_H__ */ |