blob: d36a7916d9be6d768858b4371bf085531a120a2f (
plain)
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
41
42
43
44
45
|
#ifndef numlib_h
#define numlib_h
/*
** Copyright 1998 - 1999 Double Precision, Inc.
** See COPYING for distribution information.
*/
#ifdef __cplusplus
extern "C" {
#endif
static const char numlib_h_rcsid[]="$Id: numlib.h,v 1.3 2001/08/12 15:46:40 mrsam Exp $";
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <sys/types.h>
#include <time.h>
#define NUMBUFSIZE 60
/* Convert various system types to decimal */
char *str_time_t(time_t, char *);
char *str_off_t(off_t, char *);
char *str_pid_t(pid_t, char *);
char *str_ino_t(ino_t, char *);
char *str_uid_t(uid_t, char *);
char *str_gid_t(gid_t, char *);
char *str_size_t(size_t, char *);
char *str_sizekb(unsigned long, char *); /* X Kb or X Mb */
/* Convert selected system types to hex */
char *strh_time_t(time_t, char *);
char *strh_pid_t(pid_t, char *);
char *strh_ino_t(ino_t, char *);
#ifdef __cplusplus
}
#endif
#endif
|