2 #define _ATALK_UTIL_H 1
7 #include <netatalk/at.h>
9 extern unsigned const char _diacasemap[], _dialowermap[];
11 extern char **getifacelist(void);
12 extern void freeifacelist(char **);
15 #define diatolower(x) _dialowermap[(x)]
16 #define diatoupper(x) _diacasemap[(x)]
17 extern int atalk_aton __P((char *, struct at_addr *));
18 extern void bprint __P((char *, int));
19 extern int strdiacasecmp __P((const unsigned char *, const unsigned char *));
20 extern int strndiacasecmp __P((const unsigned char *, const unsigned char *,
22 extern pid_t server_lock __P((char * /*program*/, char * /*file*/,
24 #define server_unlock(x) (unlink(x))
27 extern void *mod_open __P((const char *));
28 extern void *mod_symbol __P((void *, const char *));
29 extern void mod_close __P((void *));
30 #define mod_error() ""
36 #define mod_open(a) dlopen(a, RTLD_NOW)
37 #ifndef DLSYM_PREPEND_UNDERSCORE
38 #define mod_symbol(a, b) dlsym(a, b)
40 extern void *mod_symbol __P((void *, const char *));
42 #define mod_error() dlerror()
43 #define mod_close(a) dlclose(a)