1 /* $OpenBSD: funcs.h,v 1.3 2001/02/20 02:03:19 millert Exp $ */ 2 3 /* 4 * Copyright (c) 1997,2000 by Internet Software Consortium, Inc. 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS 11 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 12 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE 13 * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 16 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 17 * SOFTWARE. 18 */ 19 20 /* Notes: 21 * This file has to be included by cron.h after data structure defs. 22 * We should reorg this into sections by module. 23 */ 24 25 void set_cron_uid(void), 26 set_cron_cwd(void), 27 load_database(cron_db *), 28 open_logfile(void), 29 sigpipe_func(void), 30 job_add(entry *, user *), 31 do_command(entry *, user *), 32 link_user(cron_db *, user *), 33 unlink_user(cron_db *, user *), 34 free_user(user *), 35 env_free(char **), 36 unget_char(int, FILE *), 37 free_entry(entry *), 38 acquire_daemonlock(int), 39 skip_comments(FILE *), 40 log_it(const char *, int, const char *, const char *), 41 log_close(void); 42 43 int job_runqueue(void), 44 set_debug_flags(char *), 45 get_char(FILE *), 46 get_string(char *, int, FILE *, char *), 47 swap_uids(void), 48 swap_uids_back __P((void)), 49 load_env(char *, FILE *), 50 cron_pclose(FILE *), 51 glue_strings(char *, int, char *, char *, int), 52 strcmp_until(const char *, const char *, int), 53 allowed(char *), 54 strdtb(char *); 55 56 char *env_get(char *, char **), 57 *arpadate(time_t *), 58 *mkprints(unsigned char *, unsigned int), 59 *first_word(char *, char *), 60 **env_init(void), 61 **env_copy(char **), 62 **env_set(char **, char *); 63 64 user *load_user(int, struct passwd *, const char *), 65 *find_user(cron_db *, const char *); 66 67 entry *load_entry(FILE *, void (*)(), 68 struct passwd *, char **); 69 70 FILE *cron_popen(char *, char *, entry *); 71 72 #ifndef HAVE_TM_GMTOFF 73 long get_gmtoff(time_t *, struct tm *); 74 #endif 75