1997-11-06 05:38:25 +08:00
|
|
|
#ifndef MISC_UTILS_H
|
|
|
|
#define MISC_UTILS_H
|
|
|
|
|
1998-02-26 12:46:47 +08:00
|
|
|
int query_limit(int limit);
|
|
|
|
int backend_pid(void);
|
|
|
|
int unlisten(char *relname);
|
|
|
|
int max(int x, int y);
|
|
|
|
int min(int x, int y);
|
2000-02-14 02:59:53 +08:00
|
|
|
int active_listeners(text *relname);
|
1999-05-26 00:15:34 +08:00
|
|
|
|
2000-02-14 02:59:53 +08:00
|
|
|
#ifdef USE_ASSERT_CHECKING
|
|
|
|
int assert_enable(int val);
|
2000-04-13 01:17:23 +08:00
|
|
|
|
1998-08-31 03:37:51 +08:00
|
|
|
#ifdef ASSERT_CHECKING_TEST
|
|
|
|
int assert_test(int val);
|
2000-04-13 01:17:23 +08:00
|
|
|
|
1998-08-31 03:37:51 +08:00
|
|
|
#endif
|
2000-02-14 02:59:53 +08:00
|
|
|
#endif
|
1997-11-06 05:38:25 +08:00
|
|
|
|
|
|
|
#endif
|
1998-08-31 03:37:51 +08:00
|
|
|
|
|
|
|
/*
|
1999-06-06 03:09:48 +08:00
|
|
|
* Local Variables:
|
2000-04-13 01:17:23 +08:00
|
|
|
* tab-width: 4
|
|
|
|
* c-indent-level: 4
|
|
|
|
* c-basic-offset: 4
|
1998-08-31 03:37:51 +08:00
|
|
|
* End:
|
|
|
|
*/
|