[Dhcp-agent-commits] CVS: dhcp-agent dhcp-util.h,NONE,1.1 config.h.in,1.9,1.10
Status: Alpha
Brought to you by:
actmodern
From: Thamer Al-H. <act...@us...> - 2002-06-07 00:04:40
|
Update of /cvsroot/dhcp-agent/dhcp-agent In directory usw-pr-cvs1:/tmp/cvs-serv30399 Modified Files: config.h.in Added Files: dhcp-util.h Log Message: added dhcp-util.h --- NEW FILE: dhcp-util.h --- /* Utility functions. */ /* in case strdup is not available. */ # ifndef HAVE_STRDUP extern char *strdup(char *s); # endif /* HAVE_STRDUP */ extern void error_message(char *fmt, ...); extern void fatal_error(char *fmt, ...); extern void warn_message(char *fmt, ...); extern void debug_message(char *fmt, ...); extern int get_verbosity_level(void); extern int set_verbosity_level(int verbosity_level_to_set); extern void *xmalloc(size_t size); extern void *xcalloc(size_t size); extern void xfree(void *p); extern int check_for_interrupts(void); extern void suspend_for_interrupts(void); extern void block_interrupts(void); extern void add_interrupt_handler(int sigtype, void (*sighandler)(int)); extern void info_message(char *fmt, ...); extern char *splice_string(const char *s1, const char *s2); extern char *splice_many_strings(int num, char *s, ...); extern void trim_string(char *s); extern int string_matches(const char *s1, const char *s2); extern int hex_string_to_value(char *string, unsigned char *dst); extern int is_string(const char *string, int len); extern uint16_t get_random_uint16(void); extern uint32_t get_random_uint32(void); extern struct timeval timeval_diff(struct timeval begin, struct timeval end); extern const char *getprogname(void); Index: config.h.in =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/config.h.in,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** config.h.in 6 Jun 2002 23:59:00 -0000 1.9 --- config.h.in 7 Jun 2002 00:04:37 -0000 1.10 *************** *** 3,6 **** --- 3,10 ---- * our own pri macros. */ + /* have __progname var */ + #undef HAVE_PROGNAME + + /* have PRI* marcos */ #undef HAVE_PRIMACROS_H |