int64.h
上传用户:wxp200602
上传日期:2007-10-30
资源大小:4028k
文件大小:1k
源码类别:

SNMP编程

开发平台:

Unix_Linux

  1. #ifndef INT64_INCLUDED
  2. #define INT64_INCLUDED
  3. #ifdef __cplusplus
  4. extern          "C" {
  5. #endif
  6.     typedef struct counter64 U64;
  7. #define I64CHARSZ 21
  8.     void            divBy10(U64, U64 *, unsigned int *);
  9.     void            multBy10(U64, U64 *);
  10.     void            incrByU16(U64 *, unsigned int);
  11.     void            incrByU32(U64 *, unsigned int);
  12.     void            zeroU64(U64 *);
  13.     int             isZeroU64(const U64 *);
  14.     void            printU64(char *, const U64 *);
  15.     void            printI64(char *, const U64 *);
  16.     int             read64(U64 *, const char *);
  17.     void            u64Subtract(const U64 * pu64one, const U64 * pu64two,
  18.                                 U64 * pu64out);
  19.     void            u64Incr(U64 * pu64out, const U64 * pu64one);
  20.     void            u64UpdateCounter(U64 * pu64out, const U64 * pu64one,
  21.                                      const U64 * pu64two);
  22.     void            u64Copy(U64 * pu64one, const U64 * pu64two);
  23.     int             netsnmp_c64_check_for_32bit_wrap(U64 *old_val, U64 *new_val,
  24.                                                      int adjust);
  25.     int             netsnmp_c64_check32_and_update(struct counter64 *prev_val,
  26.                                                    struct counter64 *new_val,
  27.                                                    struct counter64 *old_prev_val,
  28.                                                    int *need_wrap_check);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif