diff options
| author | manuel <manuel@mausz.at> | 2013-02-04 02:48:34 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2013-02-04 02:48:34 +0100 |
| commit | 5d47a7101a2394c7f7bb288585464fa293a2ad33 (patch) | |
| tree | 0c371687c8791b2278c5b8049bbd64a7de1d0863 /numlib.h | |
| parent | 86d5a6ec30ceea44e9459394d2e6403642cdd158 (diff) | |
| download | qmail-5d47a7101a2394c7f7bb288585464fa293a2ad33.tar.gz qmail-5d47a7101a2394c7f7bb288585464fa293a2ad33.tar.bz2 qmail-5d47a7101a2394c7f7bb288585464fa293a2ad33.zip | |
[PATCH] maildir++ for qmail-local and qmail-pop3d
Patch to make qmail-local and qmail-pop3d compatible with the maildir++ quota
system that is used by vpopmail and courier-imap
qmail-maildir++
Diffstat (limited to 'numlib.h')
| -rw-r--r-- | numlib.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/numlib.h b/numlib.h new file mode 100644 index 0000000..d36a791 --- /dev/null +++ b/numlib.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | #ifndef numlib_h | ||
| 2 | #define numlib_h | ||
| 3 | |||
| 4 | /* | ||
| 5 | ** Copyright 1998 - 1999 Double Precision, Inc. | ||
| 6 | ** See COPYING for distribution information. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifdef __cplusplus | ||
| 10 | extern "C" { | ||
| 11 | #endif | ||
| 12 | |||
| 13 | static const char numlib_h_rcsid[]="$Id: numlib.h,v 1.3 2001/08/12 15:46:40 mrsam Exp $"; | ||
| 14 | |||
| 15 | #if HAVE_CONFIG_H | ||
| 16 | #include "config.h" | ||
| 17 | #endif | ||
| 18 | |||
| 19 | #include <sys/types.h> | ||
| 20 | #include <time.h> | ||
| 21 | |||
| 22 | #define NUMBUFSIZE 60 | ||
| 23 | |||
| 24 | /* Convert various system types to decimal */ | ||
| 25 | |||
| 26 | char *str_time_t(time_t, char *); | ||
| 27 | char *str_off_t(off_t, char *); | ||
| 28 | char *str_pid_t(pid_t, char *); | ||
| 29 | char *str_ino_t(ino_t, char *); | ||
| 30 | char *str_uid_t(uid_t, char *); | ||
| 31 | char *str_gid_t(gid_t, char *); | ||
| 32 | char *str_size_t(size_t, char *); | ||
| 33 | |||
| 34 | char *str_sizekb(unsigned long, char *); /* X Kb or X Mb */ | ||
| 35 | |||
| 36 | /* Convert selected system types to hex */ | ||
| 37 | |||
| 38 | char *strh_time_t(time_t, char *); | ||
| 39 | char *strh_pid_t(pid_t, char *); | ||
| 40 | char *strh_ino_t(ino_t, char *); | ||
| 41 | |||
| 42 | #ifdef __cplusplus | ||
| 43 | } | ||
| 44 | #endif | ||
| 45 | #endif | ||
