-/* This file defines the query dispatch table for version 2 of the protocol
+/* $Id$
*
- * $Header$
+ * This file defines the query dispatch table for version 2 of the protocol
*
- * Copyright 1987, 1988 by the Massachusetts Institute of Technology.
+ * Copyright (C) 1987-1998 by the Massachusetts Institute of Technology.
* For copying and distribution information, please see the file
* <mit-copyright.h>.
*/
#undef ACE_NAME
#undef NAME
#include "query.h"
-#include "mr_et.h"
-
-/* Specialized Support Query Routines */
-
-/* Special Access Check Routines */
-int access_user();
-int access_login();
-int access_list();
-int access_visible_list();
-int access_vis_list_by_name();
-int access_member();
-int access_qgli();
-int access_service();
-int access_filesys();
-int access_host();
-int access_ahal();
-int access_snt();
-
-/* Query Setup Routines */
-int prefetch_value();
-int prefetch_filesys();
-int setup_ausr();
-int setup_dusr();
-int setup_spop();
-int setup_dpob();
-int setup_dmac();
-int setup_dsnet();
-int setup_dclu();
-int setup_alis();
-int setup_dlis();
-int setup_dsin();
-int setup_dshi();
-int setup_afil();
-int setup_ufil();
-int setup_dfil();
-int setup_aftg();
-int setup_dnfp();
-int setup_dqot();
-int setup_akum();
-int setup_dsnt();
-int setup_ahst();
-int setup_ahal();
-
-/* Query Followup Routines */
-int followup_fix_modby();
-int followup_ausr();
-int followup_gpob();
-int followup_glin();
-int followup_aqot();
-int followup_dqot();
-int followup_gzcl();
-int followup_gsha();
-int followup_gqot();
-int followup_gpce();
-int followup_guax();
-int followup_uuac();
-int followup_gsnt();
-int followup_ghst();
-
-int set_modtime();
-int set_modtime_by_id();
-int set_finger_modtime();
-int set_pobox_modtime();
-int set_uppercase_modtime();
-int set_mach_modtime_by_id();
-int set_cluster_modtime_by_id();
-int set_serverhost_modtime();
-int set_nfsphys_modtime();
-int set_filesys_modtime();
-int set_zephyr_modtime();
-
-/* Special Queries */
-int set_pobox();
-int get_list_info();
-int add_member_to_list();
-int delete_member_from_list();
-int get_ace_use();
-int qualified_get_lists();
-int get_members_of_list();
-int get_end_members_of_list();
-int qualified_get_server();
-int qualified_get_serverhost();
-int trigger_dcm();
-int count_members_of_list();
-int get_lists_of_member();
-int register_user();
-int _sdl_followup();
+#include "mr_et.h"
-\f
/* String compression
* These are commonly used strings in the table, defined here so that
* they can be shared.
{
0,
0,
- (char *)0,
- (char *)0,
+ NULL,
+ NULL,
0,
0,
0,
"INTO users (login, unix_uid, shell, last, first, middle, status, clearid, type, comments, signature, secure, users_id) VALUES ('%s', %s, '%s', NVL('%s', CHR(0)), NVL('%s', CHR(0)), NVL('%s', CHR(0)), %s, NVL('%s', CHR(0)), '%s', %d, LENGTH(NVL('%s', CHR(0))), %s, %s)", /* followup_ausr fixes signature field */
auac_fields,
12,
- (char *)0,
+ NULL,
0,
&auac_validate,
},
DELETE,
"u",
USERS_TABLE,
- (char *)0,
+ NULL,
dusr_fields,
0,
"users_id = %d",
DELETE,
"u",
USERS_TABLE,
- (char *)0,
+ NULL,
dubu_fields,
0,
"users_id = %d",
0,
spob_fields,
3,
- (char *)0,
+ NULL,
0,
&spob_validate,
},
DELETE,
"m",
MACHINE_TABLE,
- (char *)0,
+ NULL,
dhst_fields,
0,
"mach_id = %d",
DELETE,
"a",
HOSTALIAS_TABLE,
- (char *)0,
+ NULL,
ghal_fields,
0,
"name = UPPER('%s') AND mach_id = %d",
DELETE,
"s",
SUBNET_TABLE,
- (char *)0,
+ NULL,
dsnt_fields,
0,
"snet_id = %d",
DELETE,
"c",
CLUSTER_TABLE,
- (char *)0,
+ NULL,
dclu_fields,
0,
"clu_id = %d",
"INTO svc (clu_id, serv_label, serv_cluster) VALUES (%d, '%s', '%s')",
acld_fields,
3,
- (char *)0,
+ NULL,
0,
&acld_validate,
},
DELETE,
"svc",
SVC_TABLE,
- (char *)0,
+ NULL,
acld_fields,
0,
"clu_id = %d AND serv_label = '%s' AND serv_cluster = '%s'",
DELETE,
"l",
LIST_TABLE,
- (char *)0,
+ NULL,
dlis_fields,
0,
"list_id = %d",
0,
amtl_fields,
3,
- (char *)0,
+ NULL,
0,
&amtl_validate,
},
DELETE,
0,
IMEMBERS_TABLE,
- (char *)0,
+ NULL,
amtl_fields,
0,
0,
"get_members_of_list",
"gmol",
RETRIEVE,
- (char *)0,
+ NULL,
IMEMBERS_TABLE,
- (char *)0,
+ NULL,
gmol_fields,
2,
- (char *)0,
+ NULL,
1,
&gmol_validate,
},
"get_end_members_of_list",
"geml",
RETRIEVE,
- (char *)0,
+ NULL,
IMEMBERS_TABLE,
- (char *)0,
+ NULL,
gmol_fields,
2,
- (char *)0,
+ NULL,
1,
&geml_validate,
},
"INTO servers (name, update_int, target_file, script, type, enable, acl_type, acl_id) VALUES (UPPER('%s'), %s, '%s', '%s', '%s', %s, '%s', %d)",
asin_fields,
8,
- (char *)0,
+ NULL,
0,
&asin_validate,
},
DELETE,
"s",
SERVERS_TABLE,
- (char *)0,
+ NULL,
dsin_fields,
0,
"name = UPPER('%s')",
"INTO serverhosts (service, mach_id, enable, value1, value2, value3) VALUES (UPPER('%s'), %d, %s, %s, %s, NVL('%s', CHR(0)))",
ashi_fields,
6,
- (char *)0,
+ NULL,
0,
&ashi_validate,
},
DELETE,
"sh",
SERVERHOSTS_TABLE,
- (char *)0,
+ NULL,
dshi_fields,
0,
"service = UPPER('%s') AND mach_id = %d",
DELETE,
"fs",
FILESYS_TABLE,
- (char *)0,
+ NULL,
dfil_fields,
0,
"filsys_id = %d",
"INTO fsgroup (group_id, filsys_id, key) VALUES (%d, %d, '%s')",
gfgm_fields,
3,
- (char *)0,
+ NULL,
0,
&aftg_validate,
},
DELETE,
"fg",
FSGROUP_TABLE,
- (char *)0,
+ NULL,
gfgm_fields,
0,
"group_id = %d AND filsys_id = %d",
DELETE,
"np",
NFSPHYS_TABLE,
- (char *)0,
+ NULL,
dnfp_fields,
0,
"mach_id = %d AND dir = '%s'",
"INTO quota (filsys_id, type, entity_id, quota, phys_id) VALUES ('%s', %d, %d, %s, %s)",
aqot_fields,
4,
- (char *)0,
+ NULL,
0,
&aqot_validate,
},
DELETE,
0,
QUOTA_TABLE,
- (char *)0,
+ NULL,
aqot_fields,
0,
0,
"INTO quota (type, filsys_id, entity_id, quota, phys_id ) VALUES ('USER', %d, %d, %s, %s)",
anfq_fields,
3,
- (char *)0,
+ NULL,
0,
&anfq_validate,
},
DELETE,
0,
QUOTA_TABLE,
- (char *)0,
+ NULL,
anfq_fields,
0,
0,
"INTO services (name, protocol, port, description) VALUES ('%s', '%s', %s, NVL('%s', CHR(0)))",
asvc_fields,
4,
- (char *)0,
+ NULL,
0,
&asvc_validate,
},
"INTO alias (name, type, trans) VALUES ('%s', '%s', '%s')",
aali_fields,
3,
- (char *)0,
+ NULL,
0,
&aali_validate,
},
DELETE,
"a",
ALIAS_TABLE,
- (char *)0,
+ NULL,
aali_fields,
0,
"name = '%s' AND type = '%s' AND trans = '%s'",
"INTO numvalues (name, value) VALUES ('%s', %s)",
aval_fields,
2,
- (char *)0,
+ NULL,
0,
&aval_validate,
},
DELETE,
"val",
NUMVALUES_TABLE,
- (char *)0,
+ NULL,
dval_fields,
0,
"name = '%s'",
"table_name, appends, updates, deletes, TO_CHAR(modtime, 'DD-mon-YYYY HH24:MI:SS') FROM tblstats",
gats_fields,
5,
- (char *)0,
+ NULL,
0,
0,
},
"_set_debug_level",
"_sdl",
UPDATE,
- (char *)0,
+ NULL,
0,
- (char *)0,
+ NULL,
_sdl_fields,
1,
- (char *)0,
+ NULL,
0,
&_sdl_validate,
},