2001-11-25 01:41:16 +01:00
|
|
|
/*
|
2002-03-06 18:05:05 +01:00
|
|
|
* @(#) $Header: /tmp/cvs/mysql-admutils/mysql-admutils.h,v 1.3 2002-03-06 17:05:05 tlan Exp $
|
2001-11-25 01:41:16 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MYSQL_ADMUTILS_H
|
|
|
|
#define MYSQL_ADMUTILS_H
|
|
|
|
|
|
|
|
extern char *program_name;
|
|
|
|
|
|
|
|
/* defined in pwfile.c */
|
|
|
|
extern const char *db_server;
|
|
|
|
extern const char *db_user;
|
|
|
|
extern const char *db_passwd;
|
|
|
|
extern const char *db_name;
|
|
|
|
|
|
|
|
extern int
|
|
|
|
wrong_use(char *format, ...);
|
|
|
|
|
|
|
|
extern int
|
|
|
|
fatal_error(char *format, ...);
|
|
|
|
|
|
|
|
extern int
|
|
|
|
owner(char *name);
|
|
|
|
|
2002-03-06 18:05:05 +01:00
|
|
|
extern int member(char *gr);
|
|
|
|
|
|
|
|
extern char **get_group_names(int *numgroups);
|
|
|
|
|
2001-11-25 01:41:16 +01:00
|
|
|
extern int
|
|
|
|
version(void);
|
|
|
|
|
|
|
|
extern int
|
|
|
|
read_config_file(void);
|
|
|
|
|
2012-12-03 13:20:20 +01:00
|
|
|
/* same as strcpy, but returns a pointer to the end of dest instead of start */
|
|
|
|
extern char *strmov(char *, const char *);
|
|
|
|
|
2012-12-11 15:24:07 +01:00
|
|
|
extern int name_isclean(char*);
|
2001-11-25 01:41:16 +01:00
|
|
|
|
|
|
|
#ifdef _mysql_h
|
|
|
|
|
|
|
|
extern int
|
|
|
|
dberror(MYSQL *pmysql, char *format, ...);
|
|
|
|
|
|
|
|
extern int
|
|
|
|
reload(MYSQL *pmysql);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* MYSQL_ADMUTILS_H */
|