#include "license_pbs.h" /* See here for the software license */ #include #include /* fprintf */ #include /* passwd */ #include "pbs_job.h" /* job */ #include "attribute.h" /* attribute_def, pbs_attribute */ #include "server.h" /* server */ attribute_def job_attr_def[10]; struct server server; char *server_host; int LOGLEVEL; char *site_map_user(char *uname, char *host) { fprintf(stderr, "The call to site_map_user needs to be mocked!!\n"); exit(1); } char *get_variable(job *pjob, const char *variable) { fprintf(stderr, "The call to get_variable needs to be mocked!!\n"); exit(1); } struct passwd * getpwnam_ext(char * user_name) { fprintf(stderr, "The call to getpwnam_ext needs to be mocked!!\n"); exit(1); } int site_check_user_map(job *pjob, char *luser, char *EMsg, int logging) { fprintf(stderr, "The call to site_check_user_map needs to be mocked!!\n"); exit(1); } struct group * getgrnam_ext(char * grp_name) { fprintf(stderr, "The call to getgrnam_ext needs to be mocked!!\n"); exit(1); } int acl_check(pbs_attribute *pattr, char *name, int type) { fprintf(stderr, "The call to acl_check needs to be mocked!!\n"); exit(1); } void get_jobowner(char *from, char *to) { fprintf(stderr, "The call to get_jobowner needs to be mocked!!\n"); exit(1); } int get_svr_attr_arst(int attr_index, struct array_strings **arst) { return(0); } int get_svr_attr_l(int attr_index, long *l) { return(0); } int acl_check_my_array_string(struct array_strings *pas, char *name, int type) { return(0); } int svr_get_privilege( char *user, /* I */ char *host) /* I */ { return(0); } void log_err(int errnum, const char *routine, const char *text) {} void log_record(int eventtype, int objclass, const char *objname, const char *text) {} void log_event(int eventtype, int objclass, const char *objname, const char *text) {}